Re: Install and use module
by BrowserUk (Patriarch) on Aug 09, 2010 at 16:29 UTC
|
What do I do next?
- Open a console session and cd into the Module-Refresh-0.13 folder.
- Type: perl Makefile.pl
- Type: make
- Type: make test
- 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.
| [reply] [d/l] [select] |
|
|
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.)
| [reply] |
|
|
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.
| [reply] |
|
|
|
|
|
|
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'?
| [reply] |
|
|
| [reply] |
|
|
|
|
Re: Install and use module
by Fletch (Bishop) on Aug 09, 2010 at 16:52 UTC
|
Read perlmodinstall.
The cake is a lie.
The cake is a lie.
The cake is a lie.
| [reply] |
Re: Install and use module
by Your Mother (Archbishop) on Aug 09, 2010 at 16:53 UTC
|
And you will probably, depending on how you set-up your box, need to alter step five slightly.
5) Type: sudo make install
| [reply] |