MySQL Forums
Forum List  »  Connector/ODBC

DBD:mysql module build on Solaris 11.2
Posted by: Michael Studer
Date: September 30, 2015 11:17AM

I have a new Solaris 11.2 installation in a SPARC LDOM. I used IPS and installed MySQL 5.5. And since I am runnning Perl 5.12 I installed database-512 also.
On Solaris Perl is 32 bit. MySQL is 64 bit. When you try to build the DBD::mysql module you get all sorts of build failures due to 32 vs 64 bit incompatibity.
Normal module install syntax gives you ELF problems:
perl Makefile.PL

So after a lot of frustation I finally found this to work:
perl Makefile.PL --mysql_config=/usr/mysql/5.5/bin/sparcv7/mysql_config

It uses 32 bit libraries and includes. The 'make' worked. I did see one error when I ran 'make test' but I think that was due to the virtual machine I am running in. I ran 'make install' and it installed fine. I have a working web page now.
I wanted to post this so I can find it when I forget what I did.

Options: ReplyQuote


Subject
Written By
Posted
DBD:mysql module build on Solaris 11.2
September 30, 2015 11:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.