> -----Original Message----- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 1:53 AM > To: [EMAIL PROTECTED] > Subject: Upgrade to Perl > > > Hi List, > I have been running Perl 5.6.0 for a while now, and today I decide to > upgrade to 5.6.1! > Everything works very good, but after the upgrade I can't see > any changes to > the system! > I installed the upgrade in the same directory as Perl 5.6.0 > Now, here are my problems, if anyone can please help me: > 1. Perl still reports to be Version 5.6.0 > > 2. I see so many Perl executables, and don't know which one > the latest one > is, or what I should do at this point to get the server to > report Perl to be > 5.6.1 > > /usr/bin/perl Created: 12/25/2000 > /usr/bin/perl5 Created: 11/20/2000 > /usr/bin/perl5.00503 Created: 11/20/2000 > /usr/bin/perl5.6.0 Created: 12/25/2000 > > /usr/local/bin/perl Created: 07/24/2002 > /usr/local/bin/perl5.6.0 Created: 12/22/2000 > /usr/local/bin/perl5.6.1 Created: 07/24/2002 > > 3. Is there a configuration somewhere I need to change? > > > When I run perl -V, here is what I get: > perl -V > Summary of my perl5 (revision 5.0 version 6 subversion 0) > configuration: > Platform: > osname=freebsd, osvers=4.2-release, archname=i386-freebsd > uname='freebsd www.domain.com 4.2-release freebsd > 4.2-release #0: mon > nov 20 13:02:55 gmt 2000 > [EMAIL PROTECTED]:usrsrcsyscompilegeneric i386 > ' > config_args='' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef > useperlio=undef d_sfio=undef uselargefiles=define > use64bitint=undef use64bitall=undef uselongdouble=undef > usesocks=undef > Compiler: > cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release) > cppflags='-fno-strict-aliasing -I/usr/local/include' > ccflags ='-fno-strict-aliasing -I/usr/local/include' > stdchar='char', d_stdstdio=undef, usevfork=true > intsize=4, longsize=4, ptrsize=4, doublesize=8 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=12 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, usemymalloc=n, prototype=define > Linker and Libraries: > ld='gcc', ldflags ='-Wl,-E -L/usr/local/lib' > libpth=/usr/lib /usr/local/lib > libs=-lm -lc -lcrypt > libc=, so=so, useshrplib=false, libperl=libperl.a > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' > cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: USE_LARGE_FILES > Built under freebsd > Compiled at Dec 25 2000 02:07:40 > @INC: > /usr/lib/perl5/5.6.0/i386-freebsd > /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i386-freebsd > /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl
Since you're on FreeBSD, here's the "correct" way to do it: FreeBSD comes with Perl 5.005 in the base installation. To install and use Perl 5.6.1, you (as root): # cd /usr/ports/lang/perl5 # make install clean # use.perl port (Be sure to update your ports collection if you haven't done so recently.) The "use.perl" script is provided to switch between the "system" 5.005 version and the "port" 5.6.1 version. It adjusts the link in /usr/bin/perl to point to the correct version and also makes changes in your /etc/make.conf, so future ports you build for perl modules will install them to the correct location. If you already installed 5.6.1 using the port, just type "use.perl port" as root and you're all set. If not, I would suggest you go ahead and reinstall via the port and then do the "use.perl port". That will make everything "just work". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]