cactid mysql error on 64bit

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

Moderators: Developers, Moderators

phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

cactid mysql error on 64bit

Post by phpgold »

Hi all,

I'm trying to configure cactid on fedora core 5 64 bit but when I go to execute: ./configure

it gives me the following error:

checking for mysql_init in -lmysqlclient... no
configure: error: MySQL libraries not found.


even though I have the following rpms installed:

[root@box1 cacti-cactid-0.8.6g]# rpm -qa | grep mysql
mysql-server-5.0.22-1.FC5.1
mysqlclient14-4.1.14-4.2
mysql-5.0.22-1.FC5.1
mysqlclient14-devel-4.1.14-4.2
mysqlclient10-devel-3.23.58-9.2
mysql-devel-5.0.22-1.FC5.1
php-mysql-5.1.4-1
mysqlclient10-3.23.58-9.2


Does anyone have any idea why this isn't working? Is this not compatible with 64 bit?

Thanks...

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

Post by TheWitness »

What version?
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?
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

version

Post by phpgold »

The version of cactid that I'm using is the latest on the site (0.8.6g).

Later...
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

I have the same issue. Looks like it affects all versions of cactid.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Have either of you build BRANCH_0_8_6 of Cacti SVN? I specifically addressed this issue. I have to get to Ian to get the release done.

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?
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

More info here...

It looks like the configure script was simply never designed to look for 64-bit libraries. They're under /usr/lib64/{libdir} on RHEL, which I think is the typical location for Linux.

I added the following block under the "for i in $MYSQL_DIR...." loop:

Code: Select all

        str="$i/lib64/mysql/libmysqlclient.*"
        for j in `echo $str`; do
                if test -r $j; then
                MYSQL_LIB_DIR=$i/lib64/mysql
                break 2
        fi
        done
... which lets it find the MySQL libraries. Of course, now it can't find libcrypto, and I assume it will have a similar issue with net-snmp. I'm guessing it will at least compile once similar additions are done for those libraries.

(This was for cactid-0.8.6e; I am looking to migrate an existing installation to a 64-bit machine, and then upgrade cacti/cactid afterwards)
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

TheWitness wrote:Have either of you build BRANCH_0_8_6 of Cacti SVN? I specifically addressed this issue. I have to get to Ian to get the release done.

TheWitness
Sorry, I was typing my previous message while you were typing this one. :-)

I am not sure if I can just take the database install from my 32-bit cactid-0.8.6e/cacti-0.8.6f installation and drop it into a 64-bit version running the current versions of these. I am guessing this would skip crucial upgrade scripts. I was planning to first migrate to the same version on 64-bit, and then upgrade afterwards.

Perhaps I could just check out the SVN configure script and use it to compile cactid-0.8.6e, and then run SVN cactid once the migration is done? That might work better.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

At least test it.

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?
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

TheWitness wrote:At least test it.

TheWitness
I'm sorry, I'll try to be more clear on my issue.

I need more information such that I COULD test it. I'd LIKE to test it, because I have to migrate the 32-bit setup to a 64-bit machine ASAP.

I have cacti data from a slightly older 32-bit installation. If I were to get a copy of the database, and then import it onto a 64-bit machine running SVN cactid and recent cacti, should this work, yes or no? Will I be skipping some critical upgrade scripts?

So if this won't work, how about checking the SVN configure script out, and configuring the older cactid against it? Should this work instead? If not that, any other suggestions?

I can't upgrade the current machine. It's working, people are using it, and I can't risk another problem with upgrading it.
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

Here are the results from simply trying to compile it (obtained from SVN around the time of my last post):

Code: Select all

gcc  -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2  -L/usr/lib64 -L/usr/lib64/mysql  -o cactid  sql.o cactid.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o  -lnetsnmp -lmysqlclient -lmysqlclient -lcrypto -lz -lpthread -lm -lnsl
cactid.o(.text+0x7d): In function `main':
/home/dgamble/cactid/cactid.c:150: undefined reference to `install_cactid_signal_handler'
cactid.o(.text+0x841):/home/dgamble/cactid/cactid.c:602: undefined reference to `uninstall_cactid_signal_handler'
collect2: ld returned 1 exit status
make: *** [cactid] Error 1
At least it knows where to look for the libraries now. This is after an "autoconf", "./configure" and then "make" (autoconf 2.59, gcc 3.4.5, on RHEL, 64-bit). I don't actually know if this is the expected way to build this, since the files in SVN don't appear to contain any instructions whatsoever on how to build it...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, you must have taken some of the cactid source as well. You need the Makefile.am, and then run automake. You will also need the error.c and error.h that I introduced in this new version.

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?
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

TheWitness wrote:Well, you must have taken some of the cactid source as well. You need the Makefile.am, and then run automake. You will also need the error.c and error.h that I introduced in this new version.

TheWitness
Thanks for your reply.

I am a bit confused here. Yes, of course I did take the cactid source... that's what I need to compile, after all. These commands were run in the "cactid" directory, which is what I checked out. Your error.c and error.h are in there. I must be missing something here.

I'll poke at it a bit early next week. I was able to get the cactid-0-8-6e working earlier today on 64-bit by adding the appropriate entries to the configure file.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Talked with Ian again today. I'm pushing for the release...

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?
fla_roadkill
Posts: 31
Joined: Wed Jan 19, 2005 2:34 pm

Post by fla_roadkill »

Hello, is there any update on this? I am having the same issue with compiling on a 64Bit platform. Thanks much for all the hard work.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you attempting to build 0.8.6i or some other release?

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 1 guest