[JDEV] Building jabberd-2.0rc1: MySQL Path?

Paul Curtis pcurtis at terrapin.com
Wed Nov 26 20:20:56 CST 2003

On Wednesday, November 26, 2003, at 01:13 PM, Douglas Anarino wrote:

> Thanks for your help! I don't have a libmysqlclient.so file in my 
> MySQL installation, just libmysqlclient.a and libmysqlclient_r.a 
> files. I installed MySQL from a package file - maybe it didn't include 
> this file? Is there a way to build it from the files I have, or do I 
> need to build MySQL from source?

You probably have the same Solaris package of MySQL I have .... ;)

Here's exactly what I did:
Did a 'pkgadd' of the MySQL packages from www.sunfreeware.com
Created a temporary directory '/opt/mysql'
Symbolically linked '/usr/local/mysql/include/mysql' to 
Symbolically linked '/usr/local/mysql/lib/mysql' to /opt/mysql/lib'
Ran 'configure' with '--with-mysql=/opt/mysql' and the storage/auth 

> This all seems very complex to me - I would think jabberd would just 
> require some options in config.xml to use a database. Will I have to 
> rebuild jabberd each time I switch databases?

The issue is the Solaris packages for MySQL .... they install in 
"non-standard" locations compared to every other MySQL installation 
I've ever seen.

This could be a dynamically loaded mechanism for databases, but still 
would require source code specific to each database. Since you would 
have to have database specific code, it doesn't really make much 
difference whether you compile the libraries in or load them at runtime 
.... you would still need the MySQL include and library files available.



More information about the JDev mailing list