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

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/Zlib.so: 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!

Mike

Comment on Second Perl Install Using Libraries from System Perl
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-28 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls