View Single Post
kretara
Cynical Old Bastard
 
Join Date: May 2004
Location: The Hot, Hazey, Humid South
Send a message via AIM to kretara Send a message via Yahoo to kretara  
2004-07-12, 09:16

I wonder why Apple can't let CPAN work correctly on their OS.

I have a dual 2ghz G5 running 10.3.4.
I am trying to install Perls DBI and DBD modules.
I am unable to get DBI to install at all (source or DBI). Questions at the bottom.
My PB 1.33 12" is also giving my fits about installing DBI.
My PB Ti500 has no issues with it at all (other than the usual hoops that Apple makes you jump through).

CPAN won't install them (no big new here).

I do have the developer tools installed.

I can get DBI and DBD to install on my Ti500 running 10.3.4 with a few "tricks".

Here is what I have done so far: (maybe these steps will help someone in the future)
0. verified that the developer tools are installed
1. in "/System -> Library -> Perl -> 5.8.1 -> darwin-thread-multi-2level -> Config.pm"
replace
ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc'

with

ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc'




macoshints.com

2. I have tried installing DBI via CPAN and source on the G5 -- no luck on either. I was able to install DBI via CPAN on the Ti500.
sudo perl -MCPAN -e shell
invokes the CPAN shell
install DBI
will install DBI

3. I was only able to do this for my Ti500, NOT the G5
download the source of the DBD-mysql module: CPAN--DBD-MYSQL
unzip and untar the module.
cd into the module and run this from the command line:
perl Makefile.PL --cflags=-I'/usr/local/mysql/include' \
--libs=-L"/usr/local/mysql/lib -lmysqlclient -lz -lm"

This should install DBD::mysql


So, has anyone been able to install either DBI or DBD on 10.3.4 (non-server version) on a G5?

I'm pulling out my hair. I've Googled to hell and gone and am not much closer to the solution.

Here is the last part of the install "logs" of the DBI install via CPAN:

Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib DBI.o -o blib/arch/auto/DBI/DBI.bundle
ld: warning -L: directory name (/usr/local/lib) does not exist
ld: can't locate file for: -lbundle1.o
make: *** [blib/arch/auto/DBI/DBI.bundle] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Any help would be well received.

david
  quote