Hi there - I'm trying to install ZM on my CentOS 3.5 PC. I got the c++ compiler sorted, and jpeglib, but I'm having some problems with libmysqlclient...
It looks to me like all of the MySQL packages are installed already - is there anything I can do to confirm that libmysqlclient is/isn't actually there, and if not (fairly good chance it's not), where can I get this item?
THe PC is also an Asterisk at Home Server, so not really looking to start chasing around updating packages if I can help it.
any help, gratefully appreciated!
Newbie install problems... (dependencies!)
FAQ! FAQ!! :-)
You need to install the -devel RPM that goes with your version of MySQL; that's where the library you need lives.
This is a common problem with all open source software that uses databases; the libraries they need are usually put in -devel packages by packagers.
It makes a certain amount of sense: you are *building* the package from source...
This is a common problem with all open source software that uses databases; the libraries they need are usually put in -devel packages by packagers.
It makes a certain amount of sense: you are *building* the package from source...
Thanks - I'm more confused now, though!
If I do: rpm-qa | grep mysql on my box, I get:
mysql-3.23.58-16.RHEL3.1
php-mysql-4.3.2-23.ent
mysql-devel-3.23.58-16.RHEL3.1
mysql-server-3.23.58-16.RHEL3.1
mysql-bench-3.23.58-16.RHEL3.1
Everything except mysql-bench-3.23.58-16.RHEL3.1 was installed already, I added this package, but it's not the one...
is it possible to have a mysql-devel package that doesn't include the libmysqlclient component?
If I do: rpm-qa | grep mysql on my box, I get:
mysql-3.23.58-16.RHEL3.1
php-mysql-4.3.2-23.ent
mysql-devel-3.23.58-16.RHEL3.1
mysql-server-3.23.58-16.RHEL3.1
mysql-bench-3.23.58-16.RHEL3.1
Everything except mysql-bench-3.23.58-16.RHEL3.1 was installed already, I added this package, but it's not the one...
is it possible to have a mysql-devel package that doesn't include the libmysqlclient component?
Well, I'm not at all sure...
that you should be trying to use MyS 3.anything; that's pretty dated.
But have you tried
locate libmy
?
The directory in which that file lives is the directory you need to specify to --with-mysql, which isn't all that clear in the doco...
But have you tried
locate libmy
?
The directory in which that file lives is the directory you need to specify to --with-mysql, which isn't all that clear in the doco...
Yeah, this is a "specific purpose" build, so the packages may be a bit dated - it's also the only linux box in the office, and I don't really have the kit free to build a new PC just for ZM!
That being said, something's not right here - locate libmy (cool command, btw, not seen locate before!) tells me that libmysqlclient.a is located in /usr/lib/mysql/
I am using this:
./configure --with-mysql=/usr/lib/mysql/ --with-webdir=/var/www/html/cctv/ --with-cgidir=/var/www/cgi-bin
as my configure string, but with no joy - it b0rks at:
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
in case it was an issue with the path, I also tried this:
./configure --with-mysql=/usr/lib/mysql --with-webdir=/var/www/html/cctv --with-cgidir=/var/www/cgi-bin
with the same result
That being said, something's not right here - locate libmy (cool command, btw, not seen locate before!) tells me that libmysqlclient.a is located in /usr/lib/mysql/
I am using this:
./configure --with-mysql=/usr/lib/mysql/ --with-webdir=/var/www/html/cctv/ --with-cgidir=/var/www/cgi-bin
as my configure string, but with no joy - it b0rks at:
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
in case it was an issue with the path, I also tried this:
./configure --with-mysql=/usr/lib/mysql --with-webdir=/var/www/html/cctv --with-cgidir=/var/www/cgi-bin
with the same result
Got it. (I think)
the config.log file contained this:
configure:5081: checking for mysql_init in -lmysqlclient
configure:5111: g++ -o conftest -g -O2 -L -L/lib -L/usr/lib/mysql//lib/mysql conftest.cc -l$
/usr/bin/ld: cannot find -lmysqlclient
so, I tried just using --with-mysql=/usr, and it completes with nothing but warnings
the config.log file contained this:
configure:5081: checking for mysql_init in -lmysqlclient
configure:5111: g++ -o conftest -g -O2 -L -L/lib -L/usr/lib/mysql//lib/mysql conftest.cc -l$
/usr/bin/ld: cannot find -lmysqlclient
so, I tried just using --with-mysql=/usr, and it completes with nothing but warnings