Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Installing modules on Mac OS X

by Xilman (Friar)
on Feb 26, 2009 at 08:42 UTC ( #746484=note: print w/replies, xml ) Need Help??


in reply to Installing modules on Mac OS X

I'm also a relative newbie at installing on MacOS and got into terrible troubles until I learned the magic incantation:

sudo perl -MCPAN -e shell
The sudo was the key requirement ...

Paul

(Fixed case of the -e switch. Doh!)

Replies are listed 'Best First'.
Re^2: Installing modules on Mac OS X
by larus (Acolyte) on Feb 26, 2009 at 13:40 UTC
    Oh boy, this is producing awful lot of pain. I did type
    ~ > which make /usr/bin/make ~ > which gcc /usr/bin/gcc
    and I used
    sudo rm -rf /Users/larus/.cpan/build/
    and I tried
    sudo perl -MCPAN -e 'install Bundle::CPAN'
    But all I got was errors. After all this hassle I found this
    http://www.mail-archive.com/macosx@perl.org/msg10184.html
    and tried installing manually. After all, I don't know if this procedure installs all the dependencies. Any glue? Thanks to all who gave a share of their mighty wisdom. Why this have to be so hard? We are programmers, we should make programs that flow like a river stream, eih?

      Check if you have cpan configured to use 'your' make.

      sudo perl -MCPAN -eshell ... cpan[1]> o conf

      and check if you have something like

      make               [/usr/bin/make]
        After a little bit goooogling I found this
        http://sial.org/howto/perl/life-with-cpan/
        and I wrote
        sudo perl -MCPAN -eshell cpan> o conf make /usr/bin/make cpan> o conf commit
        And after this EVERYTHING SEEMS TO WORK FINE, and cpan is also working!! Great! For example installing Getopt::Long works fine
        cpan> install Getop::Long ---snip--- /usr/bin/make test -- OK Running make install Manifying blib/man3/Getopt::Long.3pm Installing /System/Library/Perl/5.8.8/newgetopt.pl Installing /System/Library/Perl/5.8.8/Getopt/Long.pm Installing /usr/share/man/man3/Getopt::Long.3pm Writing /System/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/Get +opt/Long/.packlist Appending installation info to /System/Library/Perl/5.8.8/darwin-threa +d-multi-2level/perllocal.pod /usr/bin/make install -- OK
        Thanks!
        Thanks, it seems that there is no configuration for make
        ---snip--- keep_source_where /Users/larus/.cpan/sources lynx make make_arg make_install_arg makepl_arg ncftp ncftpget no_proxy pager /usr/bin/less prerequisites_policy ask scan_cache atstart shell /bin/bash tar /usr/bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist wget ---snip---
        How should I configure it? Thank you for your help.

      The problem is that something that works fine on one system breaks in another OS. It's pretty much like languages -- what's easy to write in Perl might not be so easy to write in Ruby, and visa-versa. The same with expressing ideas in French vs. English.

      With systems, it's one thing to deal with a fresh install, and yet another to deal with a system that'd been used for years, with whatever's been installed, a few major OS updates, etc. In theory with MacOSX, it should just be a matter of installing the dev tools, and issuing the command 'sudo cpan'.

      If you're manually installing the modules, it _will_not_ install dependancies, they might 'make' but they'll give errors when you 'make test'. (assuming the module author put in the appropriate tests).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://746484]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2020-06-07 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (42 votes). Check out past polls.

    Notices?