in reply to Re: Uninstalling / installing perl
in thread Uninstalling / installing perl

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'.

Replies are listed 'Best First'.
Re^3: Uninstalling / installing perl
by Corion (Patriarch) on Jun 20, 2008 at 10:25 UTC

    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.

Re^3: Uninstalling / installing perl
by syphilis (Archbishop) on Jun 20, 2008 at 10:39 UTC
    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
Re^3: Uninstalling / installing perl
by marto (Cardinal) on Jun 20, 2008 at 10:39 UTC
    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
        Hi sirsir,

        To answer your question 'so am I screwed' (which I noticed you have replaced with the information above), you can simply restore what you have deleted from your last good system backup.

        Annoying isn't it? At my first computer programming job, I realised that I had made a mistake and deleted a file I had been working on (some Allaire ColdFusion nonsense I believe:). I wasted no time in telling my co workers of my mistake, at which point one of them replied:

        "Thats ok, just restore it from backup"

        I had no backup to restore from. Lesson learned.

        On a serious note, is the current state of play that you do not have /usr/bin/perl (and /usr/lib/perl5/). If so I would be concerned about system stability.

        Martin
        I think marto was asking for perl -V. You've provided perl -v which is not quite as informative. Also, note that the @INC you provided (and possibly the perl -v also) is for the perl in /usr, not the perl in /opt.

        Anyway, I think it's a good idea to have installed the second build, and you should use it for your personal stuff, rather than the perl that's in /usr. Are there now any problems with the perl that's in /opt ?

        Cheers,
        Rob
Re^3: Uninstalling / installing perl
by Tanktalus (Canon) on Jun 20, 2008 at 19:50 UTC

    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).