Gaius-Augustus / Augustus

Genome annotation with AUGUSTUS
http://bioinf.uni-greifswald.de/webaugustus/
287 stars 109 forks source link

mysqlclient #108

Open jdmontenegro opened 4 years ago

jdmontenegro commented 4 years ago

Hello everyone, Thank you for such a useful tool. I have been using it for years, however I recently ran into a compilation problem that I cannot sort out. I am trying to compile on centos7. I have yum installed all dependencies and developmental libraries prior to compilation. However, I get the following error:

g++  -Wall -Wno-sign-compare -pedantic -g -ggdb -O3  -DZIPINPUT -std=c++11 -DCOMPGENEPRED -L/usr/local/lib64 -o augustus augustus.cc genbank.o properties.o pp_profile.o pp_hitseq.o pp_scoring.o statemodel.o namgene.o types.o gene.o evaluation.o motif.o geneticcode.o hints.o extrinsicinfo.o projectio.o intronmodel.o exonmodel.o igenicmodel.o utrmodel.o merkmal.o vitmatrix.o lldouble.o mea.o graph.o meaPath.o exoncand.o randseqaccess.o fasta.o ncmodel.o parser/parse.o scanner/lex.o genomicMSA.o geneMSA.o contTimeMC.o compgenepred.o phylotree.o orthograph.o orthoexon.o alignment.o speciesgraph.o codonMSA.o train_logReg_param.o sqliteDB.o dummy.o -I../include -I/usr/include/lpsolve -I/usr/include/mysql -I/usr/include/mysql++  -lboost_iostreams -lgsl -lgslcblas  -llpsolve55 -lcolamd -ldl  -lmysqlclient -lmysqlpp -L/usr/lib64  -lsqlite3
/usr/bin/ld: no se puede encontrar -lmysqlclient
collect2: error: ld devolvió el estado de salida 1

I look into my LD_LIBRARY_PATH and find: /usr/lib64 and the I can find:

libmysqlclient.so.18.0.0
libmysqlclient.so.18 -> libmysqlclient.so.18.0.0
libmysqlclient.so -> libmysqlclient.so.18
libmysqlclient_r.so -> libmysqlclient.so

All the links are in the correct path, so I do not understand why the compiler is not finding it. Any suggestion would be more than welcome. All the best, Juan Montenegro

chrisreidy commented 4 years ago

I had the same problem and had to tell make to look in lib64. LDFLAGS=-L/usr/lib64/mysql make I also have centos7