On Mon, 24 Jan 2005 10:33:49 -0500, Jay <[EMAIL PROTECTED]> wrote: > On Mon, 24 Jan 2005 09:53:38 -0500, Lola Lee <[EMAIL PROTECTED]> wrote: > > Following the instructions that Apple had put up at > > http://developer.apple.com/internet/opensource/perl.html, I downloaded > > the latest version from perl.org. I choose the default option which > > installs into /usr/local. > > > > When I did "perl -V", this is what I have still: > > > > Summary of my perl5 (revision 5 version 8 subversion 4) configuration: > > Platform: > > osname=darwin, osvers=7.3.0, archname=darwin-thread-multi-2level > > uname='darwin sherm-pendleys-computer.local 7.3.0 darwin kernel > > version 7.3.0: fri mar 5 14:22:55 pst 2004; > > root:xnuxnu-517.3.15.obj~4release_ppc power macintosh powerpc ' > > config_args='-Dprefix=/usr/local/cb/perl5.8.4 -Dusethreads > > -Duseshrplib [EMAIL PROTECTED] -des' > > hint=recommended, useposix=true, d_sigaction=define > > usethreads=define use5005threads=undef useithreads=define > > usemultiplicity=define > > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > > use64bitint=undef use64bitall=undef uselongdouble=undef > > usemymalloc=n, bincompat5005=undef > > Compiler: > > cc='cc', ccflags ='-pipe -fno-common -DPERL_DARWIN -no-cpp-precomp > > -fno-strict-aliasing -I/usr/local/include', > > optimize='-Os', > > cppflags='-no-cpp-precomp -pipe -fno-common -DPERL_DARWIN > > -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include' > > ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build > > 1495)', gccosandvers='' > > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > > d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 > > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > > lseeksize=8 > > alignbytes=8, prototype=define > > Linker and Libraries: > > ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib' > > libpth=/usr/local/lib /usr/lib > > libs=-ldbm -ldl -lm -lc > > perllibs=-ldl -lm -lc > > libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, > > libperl=libperl.dylib > > gnulibc_version='' > > Dynamic Linking: > > dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' > > cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup > > -L/usr/local/lib' > > > > Characteristics of this binary (from libperl): > > Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES > > PERL_IMPLICIT_CONTEXT > > Built under darwin > > Compiled at Apr 24 2004 12:38:13 > > @INC: > > /usr/local/cb/perl5.8.4/lib/5.8.4/darwin-thread-multi-2level > > /usr/local/cb/perl5.8.4/lib/5.8.4 > > /usr/local/cb/perl5.8.4/lib/site_perl/5.8.4/darwin-thread-multi-2level > > /usr/local/cb/perl5.8.4/lib/site_perl/5.8.4 > > /usr/local/cb/perl5.8.4/lib/site_perl > > > > So I'm guessing that I need to somehow set the link to the 5.8.6 > > version, but I'm not sure how to do that. Looking in /usr/bin I'm seeing > > perl5.8.1 and perl5.8.4 but not perl5.8.6. Looking in darwin.sh, I see > > that did follow the instructions to install into /usr/local/bin the file > > perl5.8.6, so I guess I need to set a link to this . . . how? > > > > Also, how can I safely remove the 5.8.6 installation? Seems there isn't > > an uninstall script that I can run, far as I can tell. >
Meant this to go to the list. One other note, though: "Learning Unix for Mac OS X" seems to be available to read online: http://safari.oreilly.com/?XmlId=0-596-00617-9. > Sounds like the install did exactly what you asked it to: installed > perl 5.8.6 to /usr/local/bin. when you call 'perl', though, you're > still calling the old version. Typing 'which perl' will tell you > which binary is actually being called, but it's probably > /usr/bin/perl, which is prbably a soft link to /usr/bin/perl5.8.4. > > you have a couple of options here. If you want to test drive 5.8.6 > for a while, just start putting '#!/usr/local/bin/perl5.8.6' at the > top of your programs, or type' /usr/local/bin/perl5.8.6 file.pl' on > the command line instead of 'perl script.pl'. > '/usr/local/bin/perl5.8.6 -V' , for example, should return the version > info for your new 5.8.6 install. > > Once you're sure that it compiled correctly and everything looks good, > delete yourcurrent /usr/bin/perl and add a new /usr/bin/perl that is a > link to /usr/local/bin/perl5.8.6 instead of /usr/bin/perl5.8.4. > > If this doesn't sound familiar, you'll really want to look into a > basic primer on unix shells and systems (Any good BSD or OS X > reference will do; O'Reilly's "Learning Unix for Mac OS X is a good > place for newbies to start), but the commands to do it are: > > sudo rm /usr/bin/perl > sudo ln -s /usr/local/bin/perl5.8.6 /usr/bin/perl HTH, --jay