Installing Perl 5.8.0 on Mac OS X 10.2

pudge on 2002-08-29T19:03:00

Morbus Iff writes "The newest release of Apple's operating system, Mac OS X v10.2 (Jaguar) comes with perl 5.6.0, surprisingly old for their latest offering. In an Internet Developer article, I walk the Mac OS X user through installing perl 5.8.0, and as well provide a brief introduction to CPAN."


For the impatient

ChrisDolan on 2002-08-29T20:31:16

A summary:

curl -O ftp://ftp.cpan.org/pub/CPAN/src/perl-5.8.0.tar.gz
tar -xzf perl-5.8.0.tar.gz
cd perl-5.8.0
sh Configure -des -Dprefix=/usr/local -Dinstallprefix=/usr/local -Dperladmin=none -Ui_db -Uinstallusrbinperl -Dman3ext=3pm

(optionally add fink libs:
      -Dccflags=-I/sw/include -Dldflags=-L/sw/lib
)

make
make test
sudo make install

(optionally make this the default
        cp /usr/local/bin/perl5.8.0 /usr/bin/perl
)

Re:For the impatient

xxxl on 2003-03-07T15:36:52

i get this during make: cc -o libperl.dylib -flat_namespace -L/usr/local/lib -dynamiclib -compatibility_version 5.8.0 -current_version 5.8.0 -install_name /System/Library/Perl/darwin/CORE/libperl.dylib perl.o gv.o toke.o perly.o op.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o ld: Undefined symbols: restFP saveFP ___fixdfdi ___floatdidf ___divdi3 /usr/bin/libtool: internal link edit command failed make: *** [libperl.dylib] Error 1

I have fink and gnu/darwin installed.

DBI?

kasei on 2002-08-30T04:23:35

Does anyone else get bus errors when trying to compile DBI after doing this? DBI works fine under my bleadperl installs (installed elsewhere), but after cleaning out the old 5.6 cruft, installing 5.8.0 into /usr, and trying to compile DBI, things go bad. Anyone else having this problem?

How's this compare to "Apple's" 5.8.0?

mrbbking on 2002-08-30T12:06:03

Apple has Perl 5.8.0 as a download from http://www.apple.com/downloads/macosx/unix_apps_utilities/perl.html.

I'm idly wondering what that one does, as compared to compiling your own. Certainly, you won't have the customization options, but on the other hand, would it increase compatibility with other Apple or third-party software to have the "Apple" binary?

Any lessons from experience?

It Ain't "Apple's"

mako132 on 2002-08-30T13:30:15

Apple provides a link to a third-party 5.8.0 install. At the bottom of the page it says,

Apple is providing links to these applications as a courtesy, and makes no representations regarding the applications or any information related thereto. Any questions, complaints or claims regarding the applications must be directed to the appropriate software vendor.


Check http://www.serverlogistics.com/downloads-osx.php for a wee-tiny bit of info on how this Perl was built.

Re:How's this compare to "Apple's" 5.8.0?

jonasbn on 2002-09-01T16:35:44

This is taken from the README file:

- This Perl distribution will install into /opt/perl. This means
      the Perl that comes bundled with Mac OS X will not be
      affected in any way by installing this package.

- This package includes only the standard Perl library.
      No extra modules were built and included.

So that is actually all it does...

What are we trying to accomplish?

mako132 on 2002-08-30T14:34:55

Wow. I would have never thought to do all that fancy configuring. I'd have just hit [return] after most question in Configure...

Is the objective...
A) Upgrading to Perl 5.8.0 with an installation most like the native 5.6.0? So that you can use the already installed Perl modules? Anything special about those?
B) Customizing the 5.8.0 install so that it runs the fastest or most efficient perl?
C) Getting 5.6.0 and 5.8.0 to coexist?
D) Purging 5.6.0 completely and installing an even better 5.8.0, configured "correctly" since we know better than Apple's engineers? :-)

Re:What are we trying to accomplish?

ChrisDolan on 2002-08-30T18:25:31

For me, the answer is C.

I can't speak for everyone else, but my goal was to get all of the 5.8.0 features and bug fixes without breaking the mod_perl that comes with OSX, which is tied to their 5.6.0 release.

The config options I added are to prevent 5.8.0 from overwriting 5.6.0 (which is the default). These wouldn't be needed if Apple had used a rational directory structure for their perl build.

Threaded perl

sky on 2002-08-30T16:35:10

Would be nice with a rundown on how to build ithreaded perl with reentrant libs on jaguar.