Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Perl version issue?

by farang (Chaplain)
on Oct 27, 2014 at 03:38 UTC ( #1105076=note: print w/replies, xml ) Need Help??

in reply to Re^2: Perl version issue?
in thread Perl version issue?

'perl -v' shows version 5.18. So would the 'recommended' fix here be to run 'perl install perl-5.20.1' followed by 'perl switch 5.20.1' to install and then use the latest version?
Yes, except that's perlbrew install ... and perlbrew switch .... You have to make sure you still have perlbrew after the upgrade to Yosemite, otherwise re-install it. The command perlbrew list should show you which perls are installed under perlbrew, and just perlbrew by itself shows a help screen when it's installed.

Replies are listed 'Best First'.
Re^4: Perl version issue?
by T-Fen (Acolyte) on Oct 27, 2014 at 11:26 UTC

    Thanks. I ran the commands above to install the latest stable version of perl and now 'perl -v' shows:

    $ perl -v This is perl 5, version 20, subversion 1 (v5.20.1) built for darwin-2l +evel

    However, when I still see the following when I attempt to use t-prot with mutt to view a message:

    'Can't locate Locale/ in @INC (you may need to install the Locale::gettext module) (@INC contains: /Library/Perl/5.12 /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /usr/local/bin/t-prot line 1147.

    Looks as though it's still looking at perl version 5.18.

      The Perl you run does not seem to be the Perl you want.

      You need to find out which Perl version t-prot invokes, and how. A most likely candidate is to look at the first line of t-prot. If it starts with something like #!/System/bin/perl (or whatever OSX uses as path names), you could try to change that to point to the Perl you want to use. I recommend making a backup first.

Re^4: Perl version issue?
by T-Fen (Acolyte) on Oct 27, 2014 at 11:33 UTC

    Also, attempting to install Locale::gettext gives the following error (from the log):

    cpanm (App::cpanminus) 1.7014 on perl 5.020001 built for darwin-2level Work directory is /Users/trey/.cpanm/work/1414409291.13907 You have make /usr/bin/make You have /usr/local/bin/wget You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching Locale::gettext on cpanmetadb ... --> Working on Locale::gettext Fetching +gz -> OK Unpacking gettext-1.05.tar.gz Entering gettext-1.05 META.yml/json not found. Creating skeleton for it. Configuring gettext-1.05 Running Makefile.PL checking for gettext... no checking for gettext in -lintl...gettext function not found. Please in +stall libintl at Makefile.PL line 18. no -> N/A -> FAIL Configure failed for gettext-1.05. See /Users/trey/.cpanm/work +/1414409291.13907/build.log for details.

    How do I install the needed libintl?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2023-02-02 13:36 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (19 votes). Check out past polls.