I'm trying to install DBD::mysql and get this:

---
Making and installing DBD::mysql ..

Untarring module file

Executing gunzip -c /tmp/.webmin/DBD-mysql-2.9002.tar.gz | tar xvf - ..
                                                                                       
             
DBD-mysql-2.9002/
DBD-mysql-2.9002/t/
..
lines skipped
..
DBD-mysql-2.9002/constants.h
DBD-mysql-2.9002/TODO


Compiling module

Executing /usr/bin/perl Makefile.PL  && make ..
                                                                                       
             
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
  nofoundrows   (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'.

Checking if your kit is complete...
Looks good
Using DBI 1.21 installed in /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI
Writing Makefile for DBD::mysql
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
gcc -c -I/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/DBI -I'/usr/include' 
-fno-strict-aliasing -I
/usr/local/include -O2 -march=i386 -mcpu=i686   -DVERSION=\"2.9002\" 
-DXS_VERSION=\"2.9002\" -fPIC -
I/usr/lib/perl5/5.6.1/i386-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

Installation of DBD::mysql failed. Check the output above and try installing manually.
You can also install the module from CPAN with the command perl -MCPAN -e shell 

-----

where am I going rwong, do I need mysql.h and errmsg.h ?



Voytek Eymont

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to