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

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

Replies are listed 'Best First'.
Re^5: Uninstalling / installing perl
by marto (Cardinal) on Jun 20, 2008 at 12:12 UTC
    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
Re^5: Uninstalling / installing perl
by syphilis (Archbishop) on Jun 20, 2008 at 11:46 UTC
    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
      Here is /opt/perl/bin/perl -V
      Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.20-sabayon-r3, archname=i686-linux-thread +-multi uname='linux localhost 2.6.20-sabayon-r3 #1 smp sun mar 25 10:28:5 +4 utc 2007 i686 intel(r) pentium(r) 4 cpu 3.00ghz genuineintel gnulin +ux ' config_args='-Dprefix=/opt/perl' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS +-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local +/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-stri +ct-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.1.1 (Gentoo 4.1.1-r3)', gccosandvers=' +' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -l +c perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREAD +S USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jun 21 2008 21:26:26 @INC: /opt/perl/lib/5.8.8/i686-linux-thread-multi /opt/perl/lib/5.8.8 /opt/perl/lib/site_perl/5.8.8/i686-linux-thread-multi /opt/perl/lib/site_perl/5.8.8 /opt/perl/lib/site_perl
      and here is /usr/bin/perl -V
      Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.20-sabayon-r3, archname=i686-linux-thread +-multi uname='linux localhost 2.6.20-sabayon-r3 #1 smp sun mar 25 10:28:5 +4 utc 2007 i686 intel(r) pentium(r) 4 cpu 3.00ghz genuineintel gnulin +ux ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS +-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local +/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-stri +ct-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.1.1 (Gentoo 4.1.1-r3)', gccosandvers=' +' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -l +c perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fpic', lddlflags='/usr/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREAD +S USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Jun 21 2008 18:12:51 @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 .
        That all looks ok to me. I notice that /usr/bin/perl *does* support threads. What made you think it didn't ?

        The other problem you mentioned in your original post was that Config.pm could not be found. Has that now been resolved ? What is the output of:
        /usr/bin/perl -MConfig -e 'print $Config::VERSION'
        and of:
        /opt/perl/bin/perl -MConfig -e 'print $Config::VERSION'
        Cheers,
        Rob