Re: fc8 mysql libs brocken ??

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

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux