Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Second Perl Install Using Libraries from System Perl

by MikeDacre (Initiate)
on Dec 06, 2012 at 07:12 UTC ( #1007493=perlquestion: print w/replies, xml ) Need Help??
MikeDacre has asked for the wisdom of the Perl Monks concerning the following question:

Hi Everyone,

I am having a really silly problem with Perl. I have a CentOS 6.2 system with perl 5.10.1 installed by default. I want to install the latest, 5.16.2. I have tried a number of different approaches: running ./Configure with all defaults, installing to /usr/local, installing to /opt/perl, and installing with perlbrew (using perlbrew install perl-5.16.2). All seem to work fine, but then I get problems when I run perl or cpan. It looks like the new perl is linking to the libraries of the old perl. I get errors like this one:

/root/perl5/perlbrew/perls/perl-5.16.2/bin/perl: symbol lookup error: +/usr/lib64/perl5/vendor_perl/auto/Compress/Raw/Zlib/ undefine +d symbol: Perl_Gthr_key_ptr

Removing Zlib doesn't help, I just get an error from a different shared library. Any idea what I can do to prevent this cross linking?

Thank you!


Replies are listed 'Best First'.
Re: Second Perl Install Using Libraries from System Perl
by tobyink (Abbot) on Dec 06, 2012 at 07:54 UTC

    I'd suggest deleting your 5.16, then install perlbrew onto your system Perl. Perlbrew can be used to install as many other Perls as you like quite easily.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

      Yes, please use perlbrew. It is perfect for exactly your situation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1007493]
Approved by bitingduck
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-07-21 02:20 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (443 votes). Check out past polls.