gowthaman ramasamy wrote:

Dear list,
I have a problem with installing DBD::mysql module. I could install DBI
successfully, but not the driver for mysql. Initially i was not able to
find the "mysql_config" file. But when i set bin dir into path it
worked. But when i make it exits with error 1.

can anyone help me to get out of this. Many Thanks in advance ...
withlove
gowtham

Error starts like this .....

gcc -c -I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/
-I'/usr/local/mysql/include/mysql' -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -DVERSION=\"2.9004\"
-DXS_VERSION=\"2.9004\" -fpic
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" dbdimp.c
In file included from dbdimp.c:19:
dbdimp.h:21:49: mysql.h: No such file or directory
dbdimp.h:22:49: errmsg.h: No such file or directory
In file included from dbdimp.c:19:
dbdimp.h:106: parse error before "MYSQL"
dbdimp.h:106: warning: no semicolon at end of struct or union
dbdimp.h:117: parse error before '}' token
dbdimp.h:146: parse error before "MYSQL_RES"
dbdimp.h:146: warning: no semicolon at end of struct or union
dbdimp.h:159: parse error before '}' token
In file included from dbdimp.c:19:
dbdimp.h:195: parse error before '*' token
dbdimp.h:198: parse error before "MYSQL_RES"
dbdimp.h:202: parse error before '*' token
dbdimp.h:202: parse error before '*' token
dbdimp.h:203: warning: data definition has no type or storage class
dbdimp.c:122: parse error before '*' token
dbdimp.c: In function `ParseParam':



OK firstly take this advice with a grain of salt as I can't program in C, but ...
It looks like you are missing your MySQL header files ( mysql.h errmsg.h ).
If you installed MySQL via an RPM or something, check where you got it from to see if there are any optional packages. I don't know what they'd be called - development tools, header files, something ...


Otherwise consider uninstalling MySQL and reinstalling from either source or binaries from MySQL. Of course there are a few things to consider before doing this, such as backing up your data and figuring out how to restore from the backup *before* uninstalling.

You also *might* be OK just downloading the source from MySQL and grabbing whatever header files DBD::MySQL complains about and chucking them in /usr/local/mysql/include/mysql ( see your text above for where I got this path from ) or whereever else they go on your system. See my first comment regarding this. I'm not sure what effect this would have if the header files are more recent than the server on your system ... assuming there is a server on your system.

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to