Prophidys / RTG2

Realtime Traffic Grapher 2
GNU General Public License v2.0
11 stars 9 forks source link

Compilation on 64bit RHEL/Fedora #15

Closed Prophidys closed 9 years ago

Prophidys commented 9 years ago

From mfaxf...@gmail.com on July 08, 2010 17:19:24

When compiling on 64bit RHEL and Fedora ./configure cannot find the mysql libraries.

Tested on 64bit systems running RHEL 5.5 and Fedora 8

Compiling from the current svn version

svn checkout http://rtg2.googlecode.com/svn/trunk/ rtg2-read-only

Run the boot strap script

./bootstrap.sh

Run Configure

./configure

This leads to an error looking for the MYSQL library. checking mysql... checking for my_thread_init in -lmysqlclient_r... no configure: WARNING: Cannot link with thread-safe MySQL lib (libmysqlclient_r)

If after checkout the following change is made to configure.in it works on both systems above. Find the section containing: MYSQL_LIB_CHK($i/lib) MYSQL_LIB_CHK($i/lib64) MYSQL_LIB_CHK($i/lib/mysql) and change to: MYSQL_LIB_CHK($i/lib64) MYSQL_LIB_CHK($i/lib) MYSQL_LIB_CHK($i/lib64/mysql) MYSQL_LIB_CHK($i/lib/mysql)

The lib64 needs to appear before lib as RHEL and Fedora can have 32bit versions of the library in lib which matches the filename test.

The changed configure.in has also been tested on ubuntu 8.04 and appears to work.

Original issue: http://code.google.com/p/rtg2/issues/detail?id=15

Prophidys commented 9 years ago

From adrian.c...@gmail.com on July 08, 2010 18:28:09

Fixed in r17 and r18 . Please test and get back to me.

Status: Fixed
Owner: adrian.chadd