libmysqlclient-dev for CentOS?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

libmysqlclient-dev for CentOS?

Jerry Richards
I am using CentOS 5.7 and it appears there is no package named libmysqlclient-dev.  I already have MySQL-devel installed, but I get a OpenSIPS 1.8 build error (below).  Is MySQL-devel not an equivalent package?

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

Thanks,
Jerry



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

Ali Pey
Make sure you have these packages installed:  mysql-client mysql-devel 

Regards,
Ali Pey

On Wed, Jun 13, 2012 at 12:48 PM, Jerry Richards <[hidden email]> wrote:
I am using CentOS 5.7 and it appears there is no package named libmysqlclient-dev.  I already have MySQL-devel installed, but I get a OpenSIPS 1.8 build error (below).  Is MySQL-devel not an equivalent package?

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

Thanks,
Jerry



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

Jerry Richards

Ali,

 

Yes, I have both MySQL-client and MySQL-devel installed, but I still get the same linker error.  Has anyone successfully built OpenSIPS 1.8 with CentOS 5.7?

 

Thanks,

Jerry

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Ali Pey
Sent: Wednesday, June 13, 2012 10:38 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] libmysqlclient-dev for CentOS?

 

Make sure you have these packages installed:  mysql-client mysql-devel 

 

Regards,

Ali Pey

On Wed, Jun 13, 2012 at 12:48 PM, Jerry Richards <[hidden email]> wrote:

I am using CentOS 5.7 and it appears there is no package named libmysqlclient-dev.  I already have MySQL-devel installed, but I get a OpenSIPS 1.8 build error (below).  Is MySQL-devel not an equivalent package?

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

Thanks,
Jerry



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

Ali Pey
Yes, I have. I am using OpenSIPS 1.8 with mysql on Centos 5.7 and didn't have any problems. The packages below are what I have. 

# yum list installed |grep mysql
mysql.i386                             5.0.95-1.el5_7.1                installed
mysql.x86_64                           5.0.95-1.el5_7.1                installed
mysql-devel.i386                       5.0.95-1.el5_7.1                installed
mysql-devel.x86_64                     5.0.95-1.el5_7.1                installed
mysql-server.x86_64                    5.0.95-1.el5_7.1                installed
php-mysql.x86_64                       5.1.6-34.el5_8                  installed
php-pear-MDB2-Driver-mysql.noarch      1.4.1-3.el5.centos              installed

I am also running mysql server here for testing.

Regards,
Ali Pey


On Mon, Jun 25, 2012 at 3:26 PM, Jerry Richards <[hidden email]> wrote:

Ali,

 

Yes, I have both MySQL-client and MySQL-devel installed, but I still get the same linker error.  Has anyone successfully built OpenSIPS 1.8 with CentOS 5.7?

 

Thanks,

Jerry

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Ali Pey
Sent: Wednesday, June 13, 2012 10:38 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] libmysqlclient-dev for CentOS?

 

Make sure you have these packages installed:  mysql-client mysql-devel 

 

Regards,

Ali Pey

On Wed, Jun 13, 2012 at 12:48 PM, Jerry Richards <[hidden email]> wrote:

I am using CentOS 5.7 and it appears there is no package named libmysqlclient-dev.  I already have MySQL-devel installed, but I get a OpenSIPS 1.8 build error (below).  Is MySQL-devel not an equivalent package?

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

Thanks,
Jerry



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

Jerry Richards

Perhaps it just doesn't work with the newer mysql version.  Also, by the way, you do not have mysql-client installed?

 

Thanks,

Jerry

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Ali Pey
Sent: Monday, June 25, 2012 1:39 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] libmysqlclient-dev for CentOS?

 

Yes, I have. I am using OpenSIPS 1.8 with mysql on Centos 5.7 and didn't have any problems. The packages below are what I have. 

 

# yum list installed |grep mysql

mysql.i386                             5.0.95-1.el5_7.1                installed

mysql.x86_64                           5.0.95-1.el5_7.1                installed

mysql-devel.i386                       5.0.95-1.el5_7.1                installed

mysql-devel.x86_64                     5.0.95-1.el5_7.1                installed

mysql-server.x86_64                    5.0.95-1.el5_7.1                installed

php-mysql.x86_64                       5.1.6-34.el5_8                  installed

php-pear-MDB2-Driver-mysql.noarch      1.4.1-3.el5.centos              installed

 

I am also running mysql server here for testing.

 

Regards,

Ali Pey

 

On Mon, Jun 25, 2012 at 3:26 PM, Jerry Richards <[hidden email]> wrote:

Ali,

 

Yes, I have both MySQL-client and MySQL-devel installed, but I still get the same linker error.  Has anyone successfully built OpenSIPS 1.8 with CentOS 5.7?

 

Thanks,

Jerry

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Ali Pey
Sent: Wednesday, June 13, 2012 10:38 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] libmysqlclient-dev for CentOS?

 

Make sure you have these packages installed:  mysql-client mysql-devel 

 

Regards,

Ali Pey

On Wed, Jun 13, 2012 at 12:48 PM, Jerry Richards <[hidden email]> wrote:

I am using CentOS 5.7 and it appears there is no package named libmysqlclient-dev.  I already have MySQL-devel installed, but I get a OpenSIPS 1.8 build error (below).  Is MySQL-devel not an equivalent package?

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

Thanks,
Jerry



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

k1028
In reply to this post by Jerry Richards
You need mysql-libs.x86_64.

This is what i have in my Centos to install OpenSIPS with MySQL
mysql.x86_64                        
mysql-devel.x86_64                
mysql-libs.x86_64                  
Reply | Threaded
Open this post in threaded view
|

Re: libmysqlclient-dev for CentOS?

Jerry Richards
Okay, just for the record, 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
 
 
 
-----Original Message-----
From: [hidden email] [[hidden email]] On Behalf Of k1028
Sent: Wednesday, June 27, 2012 2:56 PM
To: [hidden email]
Subject: Re: [OpenSIPS-Users] libmysqlclient-dev for CentOS?
 
You need mysql-libs.x86_64.
 
This is what i have in my Centos to install OpenSIPS with MySQL
mysql.x86_64                       
mysql-devel.x86_64               
mysql-libs.x86_64                  
 
 
--
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
 
_______________________________________________
Users mailing list
 
 

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users