Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello
I used Install parallel Perl on Debian to install perl5.8.1 in my "Debian woody, 2.4.21" untill the line "make install".
but when I go to
4.confirm new Perl 5.8.0 is user Perl
$perl -e 'print "$]\n";' #should tell you "5.008".
well, it shows 5.006
so I put back the symlink pointing to perl5.6.1:
rm /usr/bin/perl;
ln -s perl5.6.1 /usr/bin/perl
:/home/username/#/usr/bin/perl5.6.1
print 1\n;
1
Once things stabilized, I went back to perl-5.8.1 directory and start over but with a new reboot into a new root shell, no kde or x environment.
:/home/username/#tar -zxvf stable.tar.gz
:/home/username/#cd perl-5.8.1
:/home/username/perl-5.8.1#rm -f config.sh Policy.sh
:/home/username/perl-5.8.1#sh Configure -de
make

...whole bunch of lines

libperl.a(pp.o): In function `Perl_pp_pow': pp.o(.text+0x1e22): undefined reference to `pow' libperl.a(pp.o): In function `Perl_pp_sin': pp.o(.text+0x5b08): undefined reference to `sin' libperl.a(pp.o): In function `Perl_pp_cos': pp.o(.text+0x5c0c): undefined reference to `cos' libperl.a(pp.o): In function `Perl_pp_exp': pp.o(.text+0x5e0c): undefined reference to `exp' libperl.a(pp.o): In function `Perl_pp_log': pp.o(.text+0x5f4d): undefined reference to `log' libperl.a(pp.o): In function `Perl_pp_sqrt': pp.o(.text+0x60a3): undefined reference to `sqrt' collect2: ld returned 1 exit status make: *** [miniperl] Error 1 :/home/username/perl-5.8.1#
what about fixing this Error 1 thing?

thanks
Edit by castaway linked link, added code tags

Replies are listed 'Best First'.
Re: Install parallel Perl on Debian
by ptkdb (Monk) on Nov 11, 2003 at 12:40 UTC
    Did you do a 'make clean', or better still a 'make distclean' in perl-5.8.1 before you started configuring?

    I'd also recommend that you build 5.8.1 into an alternate installation directory before you overwrite the installed version.

    And learn to use the <code> tags

Re: Install parallel Perl on Debian
by TheHobbit (Pilgrim) on Nov 11, 2003 at 14:55 UTC

    Hi,
    To install a perl from scratch on a debian box is realy a Bad Thing© to do.

    Debian relays heavily on Perl for a lot of administrative tasks such as installing and configuring packets. Changing the perl version that the systems expects could (and almost certanly will) lead to disaster.

    If you realy need perl 5.8.1, then you should either upgrade to testing (sarge) or change your Linux distibution. IMHO, the former solution is the best one.

    Yet another possibility, is to dowload sarge's perl packages from debian home site and install them using dpkg. Doing so it's likely to start a cascade of required packages to install, which will fall very short of upgrading to sarge. I strongly advise you against upgrading just perl: upgrade your Debian box to sarge and let it be!

    Hoping that this helped


    Leo TheHobbit
      To install a perl from scratch on a debian box is realy a Bad Thing to do.
      Debian relays heavily on Perl for a lot of administrative tasks such as installing and configuring packets. Changing the perl version that the systems expects could (and almost certanly will) lead to disaster.

      I'm not an expert at all, but I'm not sure that it is quite that bad of an idea, if you keep the two Perls separate in a logical way. On my Debian box, I had to compile my own version of Perl in order to compile my own mod_perled Apache (a long story). I followed, more or less, the advice in the node the OP cited. I now have a homegrown Perl running in /opt/perl/bin, and the standard Debian perl still in /usr/perl/bin, with /usr/local/bin/perl symlinked to /opt/perl/bin/perl.

      I don't know enough about this to really give any solid advice, but so far, nothing horrible has happened, despite numerous very Debian-esque activities with apt-get and friends.

      Just my $0.015

      s-t


      Update Corrected some of my minor stupidities

      UPDATE 2: After a few weeks using this dual perl system, I still haven't had any system related problems. Debian seems to be doing just fine with its stock Debian perl.

      On the other hand, I have had some trouble installing certain modules with the new perl, in /opt, though I am not sure this is related to the dual install.

      Update 3 The problems installing modules were not the result of a conflict between the two perls, but just a demonstration that things are harder outside of Debian.