Given all the time I spent looking through mailing list archives and
re-Configure-ing, recompiling, reinstalling, etc ... I thought I'd
share what worked for me (borrowing from previous posts on the list)
...
(1) Install the Developer Tools for 10.1 if you haven't already (a
free download from http://developer.apple.com/ with a free membership
sign-up).
(2) Unpack with tar, not via StuffIt Expander or anything
tar zxvf perl-5.6.1.tar.gz
(3) Configure, build, and test it ...
cd perl-5.6.1
# set locale stuff
setenv LC_ALL C
setenv LANG "en_US"
# fix sitelib in hints
perl -i.bak -p -e 's|Local/Library|Library|g' hints/darwin.sh
sh Configure -des -Dfirstmakefile=GNUmakefile -Dldflags="-flat_namespace"
make
make test
(4) Install it ...
mv INSTALL INSTALL.txt # so 'make install' won't try to 'make INSTALL'
sudo make install
For me the above procedure yields all tests passed except ...
pragma/warnings
lib/db-btree
lib/db-recno
lib/posix
... where the output for these four is listed below:
pragma/warnings......PROG:
# pp_hot.c [pp_print]
use warnings 'io' ;
print STDIN "anc";
print <STDOUT>;
print <STDERR>;
open(FOO, ">&STDOUT") and print <FOO>;
print getc(STDERR);
print getc(FOO);
####################################################################
# The next test is known to fail on some systems (Linux+old glibc, #
# old *BSDs, and NeXT, among others. #
# We skip it for now (on the grounds that it is "just" a warning). #
####################################################################
#read(FOO,$_,1);
no warnings 'io' ;
print STDIN "anc";
EXPECTED:
Filehandle STDIN opened only for input at - line 3.
Filehandle STDOUT opened only for output at - line 4.
Filehandle STDERR opened only for output at - line 5.
Filehandle FOO opened only for output at - line 6.
Filehandle STDERR opened only for output at - line 7.
Filehandle FOO opened only for output at - line 8.
GOT:
Filehandle STDIN opened only for input at - line 3.
Filehandle STDOUT opened only for output at - line 4.
Filehandle STDERR opened only for output at - line 5.
Filehandle STDERR opened only for output at - line 7.
FAILED at test 303
lib/db-btree.........FAILED at test 0
lib/db-recno.........#
# Some older versions of Berkeley DB version 1 will fail tests 51,
# 53 and 55.
#
# You can safely ignore the errors if you're never going to use the
# broken functionality (recno databases with a modified bval).
# Otherwise you'll have to upgrade your DB library.
#
# If you want to use Berkeley DB version 1, then 1.85 and 1.86 are the
# last versions that were released. Berkeley DB version 2 is continually
# being updated -- Check out http://www.sleepycat.com/ for more details.
#
FAILED at test 51
lib/posix............FAILED at test 11
Failed 4 test scripts out of 251, 98.41% okay.
I hope this is helpful to others. Has anyone tried building a more
recent development version of perl on 10.1?
--
Ray Zimmerman / e-mail: rz10@cornell.edu / 428-B Phillips Hall
Sr Research / phone: (607) 255-9645 / Cornell University
Associate / FAX: (815) 377-3932 / Ithaca, NY 14853