DelphiFAQ Home Search:

Problems installing DBD::mysql on Solaris 8

 

comments3 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.

Question:

I need to access a mysql database using perl on Solaris 8. I installed DBI already but fail to install DBD::mysql.

I get error messages that the gcc compiler does not understand certain options:
gcc: unrecognized option `-Xa'
gcc: language arch=v8 not recognized


If I just copy the DBD::mysql.pm to the target directory, I get error messages that the driver cannot be located in Mysql.pm

Answer:

I was in the same situation. After unpacking DBD-mysql-3.0006.tar I ran

perl Makefile.PL

Then when running make, those error messages showed up.
I looked at the options for gcc and found that I should remove them. I also found that the option for the include files (search path -I) specified a folder that did not exist in my system.
The original include file path was /usr/local/mysql/include/mysql but after installing the package on Solaris (all with the default values) it should have been /usr/local/mysql/include


So instead I created the makefile using:

perl Makefile.PL --cflags="-I/usr/local/mysql/include"

Then I issued a 'make', followed by 'make install', and everything worked fine.



Comments:

2006-09-29, 10:49:35
anonymous from India  
rating
Thanx man!
this made my day!
2006-11-22, 02:33:25
anonymous from Netherlands  
rating
Yep thank you very much for sharing your knowlegde. This saved me a lot of time.

Grtz
2006-11-29, 06:22:57
anonymous from United States  
Thanks a lot !

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.