[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: fc8 mysql libs brocken ??

On Tue, Oct 21, 2008 at 11:40:06AM +0200, Gregory Machin wrote:
> They are installed ...
> [root gregory-workstation pmacct-0.11.5]# rpm -qa --qf
> "%{name}-%{version}-%{release}.%{arch} \n" | grep mysql
> mysql-libs-5.0.45-6.fc8.i386
> mysql-connector-java-3.1.12-3.fc6.x86_64
> mysql-devel-5.0.45-6.fc8.i386
> mysql-5.0.45-6.fc8.x86_64
> mysql-libs-5.0.45-6.fc8.x86_64

Others already pointed out that there is no mysql-devel.x86_64 in this
list. To install:
  yum install mysql-devel.x86_64
> with both libs installed configure is happy
> PLATFORM ..... : x86_64
> OS ........... : Linux (gregory-workstation.techconcepts.co.za)
> COMPILER ..... : gcc
> CFLAGS ....... : -O2
> LIBS ......... : -lpcap  -L/usr/lib/mysql -lmysqlclient -lsqlite3 -lm
> -lz -lpthread -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin
> -Lsfprobe_plugin/
> LDFLAGS ...... : -Wl,--export-dynamic

Probably due to the missing mysql-devel.x86_64 , the configure script
finds the library in /usr/lib/mysql instead of /usr/lib64/mysql . But
there is of course a chance that the /usr/lib is hardcoded in the

> Now type 'make' to compile the source code.
> but make dies

Basically, the configure script just looked for filenames and was
satisfied with /usr/lib/mysql/libmysqlclient.so . But the linker
actually looks at the files, and noticed it was a 32-bit version and not
a native 64-bit library required for the compilation.

To summarize: yum install mysql-devel.x86_64 and check the configure
script for hardcoded references to /usr/lib (still all too common,

David Jansen

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]