Re: DBD::Informix -- Error Installing On Mac OSX
Posted in 2008
Clive Eisen wrote: > Jonathan Leffler wrote: > > <snip> > >> Download Perl 5.10.0 from www.perl.com or any other appropriate >> source. Compile with the Apple version of GCC - you could set the C >> compiler to 'cc -m64' to ensure that Perl is built as a 64-bit system. >> You'll also need to reinstall DBI - and any other modules that you >> need. And don't install it in the system locations. (I keep my copy >> under $HOME/perl/ -- but since I have a 32-bit PPC Mac, I don't get to >> play with CSDK or IDS on it.) >> >> >> > 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. > 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