in reply to Uninstalling / installing perl

Hi sirsir,

Rather than remove the version of Perl that ships with an OS, I would have installed a new version of Perl (or perhaps not new, but with different configuration options) to a different path. Did you make after you ran ./configure? Did you read the INSTALL file?

Martin

Replies are listed 'Best First'.
Re^2: Uninstalling / installing perl
by sirsir (Initiate) on Jun 20, 2008 at 10:18 UTC
    I don't want multiple versions of perl on my system. I only want one. I don't have a system administrator, it's my computer, and I didn't think the Configure that was with it was the same as the usual 'configure;make;make install'.

      Believe me - you do not want "only one version of Perl".

      Your system vendor supplies one version of Perl with the system. This version of Perl is what your system utilities use. Replacing that version of Perl with another version of Perl not supplied by your vendor will break your system.

      Either you use whatever Perl your system vendor supplies you, or you create your own Perl, preferrably below /opt/perl.

      If you don't believe me on how to configure and install your own Perl, I already pointed you to a more authoritative source than I am, the install instructions that come with the Perl source distribution. Of course, you are free to ignore both, my advice and the advice in the official documentation.

      I don't want multiple versions of perl on my system.

      Ok ... that's your call. But the perl that came with the operating system is *needed* by the operating system, so be careful what you do with it. OTOH, if you install a perl into (say) /usr/local you can do pretty much whatever you want with it and not have to worry about breaking the OS.

      Cheers,
      Rob
      Hi sirsir,

      My advice was based on the fact that your OS may have dependancies on the version of Perl that it is installed as part of the OS distribution. Changing this version of Perl may result in some system tools failing to work properly.

      However I was not trying to tell you what to do, after all it is your system, you can obviously do with it what you wish. I was simply trying to point out a potential problem that may occur based on your course of action.

      Did the make install throw any errors/warnings? Out of interest, what does perl -V show.

      Martin
        make install worked fine I think, I ran it with the prefix as /opt/perl. perl -v looks like this: This is perl, v5.8.8 built for i686-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. @INC looks like this: @INC: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl

      Seeing as you're on Sabayon, a derivitive of Gentoo (which is on four of my four linux boxes here), all you actually needed to do is change your USE flag, and re-"emerge perl". (I had to do this to switch out threads to get apache and perl playing nice when I first moved to Gentoo back in 2005.) You may still be able to do that even now, since most of the package system is in python, though I'm not sure.

      If that doesn't work, perhaps someone can give you a binary package of their perl5.8.8 (are you running x86, x86_64, or other?) which you may be able to install that will work well enough for you to re-emerge it with the USE flags you really want. If you need that, perhaps one of my Gentoo boxes would work for that, and I can send you that somehow (that'd be co-ordinated over /msg's, not nodes).