Jump to content
  • 0

compiling cannot find -lmysqlclient


Fluffle Puff

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  375
  • Reputation:   88
  • Joined:  12/30/11
  • Last Seen:  

Hello there,

 

I am wondering why I am getting this error while I am compiling: cannot find -lmysqlclient

 

 

I have installed:

yum install gcc make mysql mysql-devel mysql-server pcre-devel git zlib-devel
make[1]: Leaving directory `/home/emulator/RO/trunk/src/common'
make[1]: Entering directory `/home/emulator/RO/trunk/src/login_sql'
gcc  -L/usr/lib -o ../../login-server_sql obj_sql/login.o ../common/obj_all/core                                             .o ../common/obj_all/socket.o ../common/obj_all/timer.o ../common/obj_all/db.o .                                             ./common/obj_all/plugins.o ../common/obj_all/lock.o ../common/obj_all/malloc.o .                                             ./common/obj_all/showmsg.o ../common/obj_all/utils.o ../common/obj_all/strlib.o                                              ../common/obj_all/grfio.o ../common/obj_all/mapindex.o ../common/obj_all/ers.o .                                             ./common/obj_all/md5calc.o ../common/obj_sql/sql.o  -lrt -lm -lz  -ldl -L/usr/li                                             b/mysql -lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [login-server_sql] Error 1
make[1]: Leaving directory `/home/emulator/RO/trunk/src/login_sql'
make: *** [login_sql] Error 2

 

 

Edited by Fluffle Puff
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...