Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Installing modules

by Chuma (Acolyte)
on Jan 28, 2012 at 17:46 UTC ( #950522=note: print w/ replies, xml ) Need Help??


in reply to Re: Installing modules
in thread Installing modules

So I need to reinstall Perl, or something?

Okay, I've downloaded and installed the latest Activeperl. It installed happily, but "perl -v" still says the version is 5.10.0. Do I have two different versions now, or what?


Comment on Re^2: Installing modules
Re^3: Installing modules
by mbethke (Hermit) on Jan 28, 2012 at 19:07 UTC

    Yes, I suppose so. That just calling "perl" still finds the old version is a path problem; ActivePerl probably adds its bin directory to the end of the $PATH variable, if at all.

    To make sure you don't break any system stuff, you could make yourself a $HOME/bin directory and add that to PATH in your .bashrc, then make a softlink in there to the ActivePerl binary.

      ...and how do I do all that?

      First, install Xcode. It must be installed for perl or for ActivePerl to be able to work. You'll find it on your OSX software DVD.

      Second, to get the current perl for OSX: open your Terminal.app and enter:
      curl -L http://xrl.us/installperlosx | bash
      In addition, to help manage your perl installations, you can use Perlbrew:
      curl -kL http://install.perlbrew.pl | bash
        Another one? Okay.

        Xcode I have already. I did what you said, and now "perl -v" says that the version has been upgraded. So yay for that! First progress in a long time. On the other hand, Bash now gives an error message in every new window:

        -bash: export: `PATH#': not a valid identifier -bash: export: `install_latest_perl_osx.pl': not a valid identifier
        So if you know what to do about that, that would also be great.

        Now the "make" runs, with only a couple of warnings. When I try "make test", I get a bunch of errors, see below. According to the guide, I should probably not install the module. Anything that can be done to fix this?

        If it means that the module is bad, I guess I could just try some other module. I'm guessing there are other modules that make pretty graphics things.
        PERL_DL_NONLAZY=1 /Users/Chuma/perl5/perlbrew/perls/perl-5.14.2/bin/pe +rl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/ +arch')" t/*.t t/GD.t ........ Can't load './blib/arch/auto/GD/GD.bundle' for module +GD: dlopen(./blib/arch/auto/GD/GD.bundle, 2): Symbol not found: _gdFo +ntGetGiant Referenced from: /Users/Chuma/Desktop/GD-2.46/blib/arch/auto/GD/GD.b +undle Expected in: dynamic lookup at t/GD.t line 14 Compilation failed in require at t/GD.t line 14. BEGIN failed--compilation aborted at t/GD.t line 14. t/GD.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 12/12 subtests t/Polyline.t .. Can't load '/Users/Chuma/Desktop/GD-2.46/blib/arch/aut +o/GD/GD.bundle' for module GD: dlopen(/Users/Chuma/Desktop/GD-2.46/bl +ib/arch/auto/GD/GD.bundle, 2): Symbol not found: _gdFontGetGiant Referenced from: /Users/Chuma/Desktop/GD-2.46/blib/arch/auto/GD/GD.b +undle Expected in: dynamic lookup at /Users/Chuma/Desktop/GD-2.46/blib/lib/GD/Polyline.pm line 45 Compilation failed in require at /Users/Chuma/Desktop/GD-2.46/blib/lib +/GD/Polyline.pm line 45. BEGIN failed--compilation aborted at /Users/Chuma/Desktop/GD-2.46/blib +/lib/GD/Polyline.pm line 45. Compilation failed in require at t/Polyline.t line 10. BEGIN failed--compilation aborted at t/Polyline.t line 10. t/Polyline.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 1/1 subtests Test Summary Report ------------------- t/GD.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: Bad plan. You planned 12 tests but ran 1. t/Polyline.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 1 tests but ran 0. Files=2, Tests=1, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.06 cusr + 0.01 csys = 0.11 CPU) Result: FAIL Failed 2/2 test programs. 1/1 subtests failed. make: *** [test_dynamic] Error 2

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (15)
As of 2014-09-19 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls