Hello

Please help! I've just upgraded my development machine but I'm having
problems with DBD-mysql after upgrading PERL from V5.6.0 to V5.8.0.
The database is running fine and DBI looks like it installed OK but when
I try and access it from a PERL program it says:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
contains: /usr/local/lib/perl5/5.8.0/i586-linux
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i586-linux
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .)
at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Proxy.
 at ./dbi_test.plx line 16

...It appears that the DBD mysql driver has not installed has not
properly so after trying to install it again the following messages come
up.

...Firstly typing:
perl Makefile.PL
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I'/usr/include'
  libs          (mysql_config) = -L/usr/lib/mysql -lmysqlclient -lz
-lcrypt -lnsl -lm
  nocatchstderr (default     ) = 0
  ssl           (guessed     ) = 0
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testuser      (default     ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Using DBI 1.32 installed in
/usr/local/lib/perl5/site_perl/5.8.0/i586-linux/auto/DBI
Writing Makefile for DBD::mysql

...this all looks OK so next step is to type:
make
cc -c  -I/usr/local/lib/perl5/site_perl/5.8.0/i586-linux/auto/DBI
-I'/usr/include' -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-DVERSION=\"2.1025\" -DXS_VERSION=\"2.1025\" -fpic
"-I/usr/local/lib/perl5/5.8.0/i586-linux/CORE"   dbdimp.c
In file included from dbdimp.c:29:
dbdimp.h:31:49: mysql.h: No such file or directory
dbdimp.h:32:49: errmsg.h: No such file or directory
make: *** [dbdimp.o] Error 1

...and this is where the problem is! I can not get any further. It looks
like some header files are missing / not being found. The whole setup
worked fine before upgrading to PERL V5.8.0.

Please help.

Regards

Richard

Richard Jelbert
Jelbert Consulting
www.jelbert.com 
Tel: +44 1730 817 956
Fax: +44 1730 815 538
Mobile / SMS: +44 7973 827788

Jelbert Consulting
PO Box 30
Midhurst
GU29 9WF




Reply via email to