
ronniehandover
New User
Jan 11, 2007, 6:58 PM
Post #1 of 1
(3095 views)
|
|
Problems installing DBD::mysql on OS X
|
Can't Post
|
|
Hi There From reading around the internet it seems that installing the perl module DBD::mysql is somewhat problematic and so there are a large number of threads concerning this and i have tried the many tips and solutions out there but to no avail... My Setup OSX:10.3.9 Perl: Self compiled version 5.8.8 (located on my machine at /usr/local/bin/perl) MySQL: pre compiled version from mysql site (mysql-standard-5.0.27-osx10.3-powerpc)(located on my machine at /usr/local/mysql) Apache: Self compiled version 1.3.37 with mod_perl1.29(located on my machine at /usr/local/apache) My Problem I'm trying to connect to mysql through the appache server but i get the error message ...Can't locate DBD/mysql.pm in @INC... So i have downloaded DBD-mysql-4.001.tar.gz from CPAN and have tried to compile the module with the standard make proccedure (perl Makefile.PL, make, install make) but on the make step i get this output... cc -c -I/usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/DBI -I/usr/local/mysql/include -fno-common -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Os -DVERSION=\"4.001\" -DXS_VERSION=\"4.001\" "-I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE" dbdimp.c dbdimp.c: In function `mysql_dr_connect': dbdimp.c:1677: error: `ulong' undeclared (first use in this function) dbdimp.c:1677: error: (Each undeclared identifier is reported only once dbdimp.c:1677: error: for each function it appears in.) dbdimp.c:1677: error: parse error before numeric constant make: *** [dbdimp.o] Error 1 and it all grinds to a frustrating halt. if anyone out there has any ideas they would be much appreciated Cheers
|