Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'HOW TO: building/upgrading Perl 5.8.0 & CPAN from scratch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
HOW TO: building/upgrading Perl 5.8.0 & CPAN from scratch
Authored by: blakers on May 23, '03 03:29:50PM

previous comment is correct --> differences bet 5.6.0 and 5.8.0 are not insignificant, and can be troublesome ....

my suggestion? "clean house" ....

this works flawlessly for me ....

CLEAN INSTALL: perl-5.8.0

# personally i recommend upgrading BerkeleyDB before Perl, but it's optional ....

in shell (tcsh here ...), login as ROOT

mkdir /usr/ports
cd /usr/ports

curl -O ftp://ftp.cpan.org/pub/CPAN/src/perl-5.8.0.tar.gz

unsetenv CFLAGS CPPFLAGS CXX CXXFLAGS LDFLAGS LDDLFLAGS
unsetenv LC_ALL LANG LINGUAS
setenv DYLD_LIBRARY_PATH /usr/ports/perl-5.8.0

gnutar zxf perl-5.8.0.tar.gz
cd /usr/ports/perl-5.8.0


# clear out existing Perl & cpan before new build ...
rm -rf \
/System/Library/Perl \
/Library/Perl \
/usr/bin/perl* \
/usr/bin/find2perl \
/usr/docs/ref/perl \
/usr/libexec/httpd/libperl.so \
/var/root/.cpan


./Configure -Dfirstmakefile=GNUmakefile -Duseperlio -Dusethreads -Dprefix=/usr -Dperladmin=yourname@yourdomain.com -Dcf_email=yourname@yourdomain.com -Dperllibs='-lc' -Dlibs='-lc'


# ENTER the configuration dialogue .....
# accept defaults by entering "& -d", i.e.:
Which of these apply, if any? [darwin] "& -d"
(OK, I'll run with -d after this question.)
Which of these apply, if any? [darwin] "RETURN"
.....


make
make test
make install

unsetenv DYLD_LIBRARY_PATH

# now update CPAN
perl -MCPAN -e shell

# ENTER the configuration dialogue .....
# accept defaults, except:

CPAN build and cache directory? [/usr/ports/cpan_build]
Policy on building prerequisites (follow, ask or ignore)? [follow]
Parameters for the 'perl Makefile.PL' command? Your choice: [LINKTYPE=dynamic]
Parameters for the 'make install' command? Your choice: [UNINST=1]
.....

cpan> install Bundle::CPAN
cpan> reload cpan
cpan> install Bundle::libnet MD5 DB_File
# install/update any/all other modules you need ...
cpan>q

and you're finished!



[ Reply to This | # ]
HOW TO: building/upgrading Perl 5.8.0 & CPAN from scratch
Authored by: ld50 on Nov 03, '03 07:33:36AM

i found another easy way.

if you have fink installed first you have to update your fink then install the fink update for perl 5.8.0

apt-get update
apt-get install system-perl580

now finks perl is 5.8

then the perl installer seems to leave some of the old files around from the previous version of 5.6
so just move or remove /System/Library/Perl , /Library/Perl and /Network/Library/Perl (if you have it)

now when make install runs it'll install all the new perl files.
i worked for me. os x 10.2

mich



[ Reply to This | # ]