Clive Eisen wrote:
Has anyone successfully built a 64 bit perl on OSX? I've tried and I get just over 1000 errors on make test -
all relate to loading XS stuff and getting a wrong architecture error.

All I did (to be fair) was ./Configure -Dcc='cc -m64' -des

make && make test

If anyone has the magic incantation to build a 64bit perl so I can build DBD::Informix against the 64bit SDK that would be great.


TIA

--
Clive

Sorry to reply to my own post, but I have solved the problem - so for anyone else here goes

#First download perl source - I used 5.10.0
#untar or unzip as required
#cd into the perlsourcedir/hints and
rm -f darwin.sh
#then
rsync  rsync://ftp.linux.activestate.com/perl-current/hints/darwin.sh .
#This gets the bleeding edge darwin hints file that finally supports a 64 bit build on OSX
cd ..
./Configure -Dcc='cc -m64' -Duse64bitall -des
make && make test && make install

#Now you have a 64bit perl in /usr/local/bin that you can link with the 64bit SDK

#Only other thing to note is that on OSX LD_LIBRARY_PATH is called
# DYLD_LIBRARY_PATH
#so you will need to do the following
export DYLD_LIBRARY_PATH=$INFORMIXDIR/lib/esql/:$INFORMIXDIR/lib/
#before running
/usr/local/bin/perl Makefile.PL
#in the DBD::Informix source dir

--
Clive

Reply via email to