Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2018-03-18 21:49 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.