fc8 mysql libs brocken ??
David Jansen
jansen at strw.leidenuniv.nl
Tue Oct 21 14:02:18 UTC 2008
On Tue, Oct 21, 2008 at 11:40:06AM +0200, Gregory Machin wrote:
> They are installed ...
>
> [root at 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 2.6.25.14-69.fc8 (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
configuration.
>
> 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,
unfortunately).
David Jansen
More information about the fedora-list
mailing list