[OpenSIPS-Users] /usr/bin/ld: cannot find -lmysqlclient

Jerry Richards jerry.richards at teotech.com
Thu Jun 28 01:08:06 CEST 2012


Just to also button up this Email trail (which is really the same issue as another one... sorry).  I got it working.  Here is what I had to do to make OpenSIPS 1.8 successfully build on CentOS 5.7 with MySQL version 5.5.25-1 (not sure why this was necessary):



yum install lynx

ln -s /usr/lib64/mysql/libmysqlclient.a /usr/lib64/libmysqlclient.a



Also, I edited Makefile.defs as follows:

Index: Makefile.defs

===================================================================

--- Makefile.defs    (revision 9124)

+++ Makefile.defs    (working copy)

@@ -180,7 +180,7 @@

      doc-dir = share/doc/$(MAIN_NAME)/

      man-dir = share/man/

      data-dir = share/$(MAIN_NAME)/

-      LOCALBASE ?= $(SYSBASE)/local

+      LOCALBASE ?= $(SYSBASE)

else

ifeq ($(OS), freebsd)

      doc-dir = share/doc/$(MAIN_NAME)/



Thanks,

Jerry






From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Jerry Richards
Sent: Thursday, June 21, 2012 1:22 PM
To: users at lists.opensips.org
Subject: [OpenSIPS-Users] /usr/bin/ld: cannot find -lmysqlclient

Do you know why I'm getting a build error using 64-bit CentOS 5.7 and OpenSIPS 1.8 using the following command line?
make prefix=/opt/opensips all include_modules="db_mysql presence presence_xml presence_mwi presence_dialoginfo"

Here's the error:
Linking db_mysql.so
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [db_mysql.so] Error 1
make[1]: Leaving directory `/home/TeoUser/work/opensips.org/opensips_1_8/modules/db_mysql'
make: *** [modules] Error 2

Here's the mysql packages installed:
MySQL-Cluster-shared-compat-gpl.i386   7.2.5-1.rhel5  installed
MySQL-Cluster-shared-compat-gpl.x86_64 7.2.5-1.rhel5  installed
MySQL-client.i386                      5.5.22-1.rhel5 installed
MySQL-client.x86_64                    5.5.22-1.rhel5 installed
MySQL-devel.i386                       5.5.22-1.rhel5 installed
MySQL-devel.x86_64                     5.5.22-1.rhel5 installed
MySQL-server.i386                      5.5.22-1.rhel5 installed
MySQL-server.x86_64                    5.5.22-1.rhel5 installed
MySQL-shared-compat.i386               5.5.22-2.rhel5 installed
MySQL-shared-compat.x86_64             5.5.22-2.rhel5 installed
MySQL-test.i386                        5.5.22-1.rhel5 installed
MySQL-test.x86_64                      5.5.22-1.rhel5 installed

Thanks,
Jerry


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120627/f7c25fc5/attachment-0001.htm>


More information about the Users mailing list