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
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”
Random thought:
What do you have in /etc/ld.so.conf.d/mysql-* ?
At the begging I was using the library directly from the mysql website,
for that matter I indeed created amysal-client.cong file on
etc/ld.so.conf.d/ and appended the /usr/local/lib to it (didnt work).
Couple of tries later, installed the package yum mysal-devel and it
created a sencond file point to its lib version, so basically right now
this is what I have:
[root@localhost ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[root@localhost ld.so.conf.d]# more mysql-client.conf
/usr/local/lib
each dir refers to a different version of the libs, I removed
mysql-client and gave it a shot, no dice, stills fail…
[root@localhost ld.so.conf.d]# more mysql-i386.conf
/usr/lib/mysql
[root@localhost ld.so.conf.d]# more mysql-client.conf
/usr/local/lib
each dir refers to a different version of the libs, I removed
mysql-client and gave it a shot, no dice, stills fail…
64bits machine by any chance…?
JD
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.