Spine Compile Issues Here

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
xphone
Posts: 4
Joined: Thu Jan 08, 2009 8:18 pm

Post by xphone »

OS=SunOS 5.10 Generic_137137-09 sun4u sparc SUNW,Ultra-5_10

i have installed cacti-0.8.7b, but when i try to install cacti-spine-0.8.7a, error is below.

Code: Select all

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
witness saids: must configure mysql with thread-safe option, i did it without any errors.

HOW can i fix the make error?

Code: Select all

./configure --prefix=/usr/local/mysql --enable-thread-safe-client
...
...
OK

make
...
...
checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
i cant make mysql, need helps, thx
==============================================
TheWitness wrote:
YoMarK wrote:I get the "MySQL libraries not found" error when ./configure-ing spine(In windows 2003/cygwin).

Code: Select all

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
I've compiled en installed MySQL client as mentioned here: http://www.cacti.net/spine_install_wincyg.php

It is also working, and can connect to the mysql server without problems:

Code: Select all

administrator@srvman /src/cacti-spine-0.8.7
$ mysql --version
mysql  Ver 14.12 Distrib 5.0.41, for pc-cygwin (i686) using  EditLine wrapper
Libraries MySQL(don't know if that are the correct files though):

Code: Select all

administrator@srvman /usr/local/lib/mysql
$ ls
libmysqlclient.a  libmysqlclient.la  libmystrings.a  libmysys.a

administrator@srvman /usr/local/lib/mysql
$
I've even tried to specify the MySQL library path and binary(same problem):

Code: Select all

./configure --with-mysql=/usr/local/bin/mysql --with-mysql-lib=/usr/local/lib/mysql/
Any ideas?
Thanks!
YoMark,

You must use the thread safe version of MySQL client. It would appear that you do not have it installed. What is your OSNAME and OSVERSION? Did you install MySQL from Source? If so, you must use other config options to enable thread safe client.

TheWitness
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

When you are compiling mysql for saris, you need to use the enable-threadsafe-client configure switch. ./configure -help should help
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
ScottE
Posts: 1
Joined: Tue Apr 07, 2009 1:58 pm
Location: Victoria, BC

Post by ScottE »

I was having the same problem:
(RedHat Enterprise 5) spine-0.8.7c

Code: Select all

checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
My problem was that the mysql install was built with ssl but the ssl library is not part of the spine build (configure).

Fix for me was:

Code: Select all

export LDFLAGS="-lssl"
Then I ran ./configure and it validated the mysql library.

Just in case someone else runs into this

Remember to check your config.log file

ScottE
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Scott,

Can you please open a bug on this (bugs.cacti.net)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests