in reply to Install and use module

What do I do next?
  1. Open a console session and cd into the Module-Refresh-0.13 folder.
  2. Type: perl Makefile.pl
  3. Type: make
  4. Type: make test
  5. Type: make install

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^2: Install and use module
by DStaal (Chaplain) on Aug 09, 2010 at 18:14 UTC

    Note there are two situations where the above will not work:

    First one, if it's a Module::Build module, in which case you need 'Build.pl' instead of 'Makefile' and './Build' instead of 'make'.

    Second one: If you have yet to install the Developer Tools from Apple, you won't have 'make'. (Or a compiler, or several other very useful things for developing software.)

      First one, if it's a Module::Build module, in which case you need 'Build.pl' instead of 'Makefile' and './Build' instead of 'make'.

      In that case, I generally just wipe the module directory and ditch the .tar. 9 times out of 10, it won't build on my system anyway.

      In several cases, if I hand compile&link any XS code, and then install manually, the modules work fine.

      But Module::Build is so broken, and such a convoluted morass of O'Woe's OO-spaghetti, that life is just too short. It's usually quicker to write my own.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        Never had any trouble with it myself, and it definitely makes my life as a module-builder easier...

        (And the maintainer of ExtUtils::MakeMaker recommends using Module::Build at this point...)

Re^2: Install and use module
by johnrdixon (Initiate) on Aug 10, 2010 at 20:37 UTC
    The first four steps from BrowserUK worked well, thank you! Kit complete, tests successful, etc. Took some time for me to find the Apple Dev Tools (my problem). However, step 5 reports: "ERROR: Can't create '/usr/local/share/man/man3: Permission denied at /System/Library/Perl/5.10.0/ExtUtils/Install.pm line 479." And adds "Error 13". I've looked at, and tried to change(!), some Permissions on my Mac. And I've looked for help on the web. But I really don't know what I'm doing so, of course, nothing tried so far has worked. So now, how do I get permission for 'make install'?
        The Warning that appeared with Sudo make install frightened me but I finally got up nerve to try. Its bark was worse than its bite, and it seems to have worked. You, Your Mother, and Fletch were all right on. Many thanks. Unfortunately, I still have a question: Now that I have Module::Refresh, how do I actully use it in my script to refresh files created and written to (and added to) from the script? I printed out @INC and got frightened again. Do I want to mess around with all that directory stuff? The documentation with the modules is minimal (some better info with the one review, but). Sorry, but I now don't even know if this modules refreshes 'modules' (like itself) or files! My questions are; ! What does Module Refresh refresh, and 2. How do I use Module::Refresh to refresh files that were created and written to, and written to again, from my Perl script without closing and reopening the file window manually with my mouse?