[SOLVED] Solaris 10 spine compiling issues - mysql librarie

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

[SOLVED] Solaris 10 spine compiling issues - mysql librarie

Post by stucole »

Hi,

As i have been having issues with the cmd.php poller I decided it was time to use the spine poller instead.

I have cacti running in a solaris 10 zone and all is dandy, however when I try to compile the cacti-spine-0.8.7.e poller I am running into issues.

checking priv.h presence... yes
checking for priv.h... yes
checking whether we are using Solaris privileges... no
checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found


I have installed the mysql community package direct from mysql and updated my LD_LIBRARY_PATH to include the new /opt/mysql/mysql/lib directory but I am still having issues when running ./configure from the cacti-spine source directory.

Are there any specfic libraries , headers etc that I need to specify in environment vars before I can get configure to run correctly.

Many thanks

Stu.
Last edited by stucole on Fri Jun 04, 2010 8:53 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Code: Select all

./configure --with-net-snmp=/path-to-net-snmp
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?
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

Post by stucole »

./confugure --with-net-snmp is not a vallid option. Tried with --with-snmp="path/to/snmpd" but getting the same issue.

Looked through config.log but cannot see where the issue is or what files configure is looking for.



checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for malloc... yes
checking for calloc... yes
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking priv.h usability... yes
checking priv.h presence... yes
checking for priv.h... yes
checking whether we are using Solaris privileges... no
checking for mysql_init in -lmysqlclient_r... no
configure: error: MySQL libraries not found
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

Post by stucole »

does anyone have the spine poller compiled and working on solaris 10 x86 or know where I can get the binaries ???

Many thanks

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

Post by TheWitness »

Your mysql client libBs are not compiled thread safe then. Look for the file thats missing.
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?
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

Post by stucole »

Hi,

My issue is that I dont really know which library files I am missing so not really sure which libraries to add or add to my LD_LIBRARY_PATH !!!

Any help in finding out which libraries I am missing would be most grateful please. ie which log files can I look in etc.

Many thanks in anticipation.

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

Post by TheWitness »

Issue the following command:

Code: Select all

find / -name libmysqlclient_r.a -print
If it comes back with no matches, you have found your problem. You must have a "Thread Safe" version of MySQL Client Libraries installed to compile.

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?
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

Post by stucole »

thanks, didn't realise the library was called that. Will try.

Thanks
stucole
Posts: 15
Joined: Thu Apr 01, 2010 5:49 am

[SOLVED] Solaris 10 spine compiling issues - mysql libraries

Post by stucole »

Library found and referenced correctly with LD_LIBRART_PATH and confgure work as does make and make install.

Many thanks.

now got issue with mysql-client connections !!!! Pah !
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest