libmysqlclient.a is not found

Asked by Lax

HI
I am running "2.6.24-19-generic" and have installed all the packages that are associated with "mysql". Still, I am missing libmysqlclient.a.
One of my compilations throws up the error:
gcc -O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_x86_64 -Wall -Werror -Wformat -Wimplicit -Wreturn-type -Wuninitialized -I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -o tracks.o -c tracks.c
gcc tracks.o ../lib/x86_64/jkweb.a /usr/lib/mysql/libmysqlclient.a -lz
gcc: /usr/lib/mysql/libmysqlclient.a: No such file or directory
make[1]: *** [compile] Error 1

How do I get libmysqlclient.a installed?
-Best
-Lax

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Lax
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please install libmysqlclient15-dev it will install: /usr/lib/libmysqlclient.a

hope this helps

Revision history for this message
Lax (liyer01) said :
#2

I had the wrong pointer for gcc, it has to look at /usr/lib and not /usr/lib/mysql.
I set it up properly and it works fine.
-Thanks
-Lax