Welcome! Log In Create A New Profile

Advanced

Compile MySql with Nginx

April 28, 2011 06:52AM
Hello Everyone,

Tough I have moderate C programming skills, I.m kindy new to linux&nginx development, so please excuse any nub questions...

Im having a problem linking mysql client libraries with nginx, libraries are there and were installed with yum on my centos 5.0

my config line looks like that
CORE_LIBS="$CORE_LIBS -L/usr/lib/mysql -lmysqlclient"

all libs looks fine on the path

[root@localhost mysql]# cd /usr/lib/mysql
[root@localhost mysql]# ll
total 8268
-rw-r--r-- 1 root root 1498 Mar 30 19:13 libdbug.a
-rw-r--r-- 1 root root 50704 Mar 30 19:13 libheap.a
-rw-r--r-- 1 root root 378224 Mar 30 19:13 libmyisam.a
-rw-r--r-- 1 root root 30730 Mar 30 19:13 libmyisammrg.a
-rw-r--r-- 1 root root 1640064 Mar 30 19:13 libmysqlclient.a
-rw-r--r-- 1 root root 1652652 Mar 30 19:13 libmysqlclient_r.a
lrwxrwxrwx 1 root root 26 Apr 27 11:21 libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Apr 15 14:20 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
-rwxr-xr-x 1 root root 1462820 Mar 30 19:13 libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 24 Apr 27 11:21 libmysqlclient.so -> libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 Apr 15 14:20 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
-rwxr-xr-x 1 root root 1451932 Mar 30 19:13 libmysqlclient.so.15.0.0
-rw-r--r-- 1 root root 1368506 Mar 30 19:13 libmystrings.a
-rw-r--r-- 1 root root 330274 Mar 30 19:13 libmysys.a
-rw-r--r-- 1 root root 14312 Mar 30 19:13 libvio.a
-rwxr-xr-x 1 root root 13169 Mar 30 19:01 mysqlbug
-rwxr-xr-x 1 root root 6215 Mar 30 19:01 mysql_config

but when I try to compile nginx with my module I get the following error
...
objs/ngx_modules.o \
-lpcre -lssl -lcrypto -ldl -lzl -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/opt/nginx-1.0.0'
make: *** [build] Error 2


Any ideas whats going on here?

cheers,
Arley
Subject Author Posted

Compile MySql with Nginx

arleybls April 28, 2011 06:52AM

Re: Compile MySql with Nginx

jdm April 29, 2011 05:04AM

Re: Compile MySql with Nginx

arleybls April 29, 2011 05:59AM

Re: Compile MySql with Nginx

jdm April 29, 2011 06:50AM

Re: Compile MySql with Nginx

arleybls April 29, 2011 07:05AM

Re: Compile MySql with Nginx

arleybls April 29, 2011 01:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready