[mapserver-users] Is mysqlclient a dependency to compile mapserver?

Luigi Castro Cardeles luigi.cardeles at gmail.com
Fri Jan 8 13:16:44 EST 2010


Hi list,

another question :D

even if i don't want compile mapserver with mysql suport (i don't put
--with-mygis at configure) when i run make it throws a error about
mysqlclient


the full message:

g++ -O2 -fPIC -W -Wall -Wcast-align -Wmissing-prototypes -Wstrict-prototypes
-Wpointer-arith -Wreturn-type -Wmissing-declarations   -DUSE_POINT_Z_M
-DHAVE_VSNPRINTF -DNEED_STRLCAT -DNEED_STRRSTR    -DUSE_POINT_Z_M
-DUSE_FASTCGI -DUSE_CAIRO -DUSE_FRIBIDI -DUSE_FRIBIDI2 -DUSE_WMS_LYR
-DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR
-DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS -DUSE_TIFF -DUSE_GDAL -DUSE_OGR
-DUSE_GEOS -DGEOS_HAS_SIMPLIFY  -DUSE_THREAD -DUSE_PROJ -DUSE_EPPL
-DUSE_AGG  -DUSE_FTGL -DUSE_PDF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG
-DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB  -DUSE_FRIBIDI
-DUSE_FRIBIDI2   -I/usr/include -I/usr/include/freetype2
-I/usr/include/FTGL/       -I/usr/include/gdal/ -I/usr/include
-I/usr/include    -I/usr/include/libxml2 -I/usr/include/fribidi
-I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng12   shp2img.o  -L. -lmapserver -lgd -L/usr/lib64 -lgd
-ljpeg -lfreetype -lpng -lz -lXpm -lX11    -L/usr/lib64 -lftgl -lpdf -ltiff
-ljpeg -lfreetype -lpng -lz -lXpm -lX11  -lproj -ljpeg -lpng  -lgdal
-L/usr/lib64 -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst -L/usr/lib
-lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -lhdf5 -L/usr/lib64/hdf
-lmfhdf -ldf -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lnetcdf -lcfitsio
-lpq -L/usr/lib64 -lpq -lz -lpthread -lm -lrt -ldl -ldap -ldapclient
-ldapserver -lpthread -lrx -lcurl -lxml2 -lz -lm -lcurl -rdynamic
-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto
-L/usr/lib64 -lpq -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5
-lz -lreadline -lcrypt -ldl -lm   -lcurl    -L/usr/lib64 -lgeos_c -lpthread
-L -lc -lfcgi -lz -lxml2 -lz -lm -lfribidi   -lm -lstdc++  -lfreetype
-lfontconfig -lz -lcairo -lpng12    -o shp2img
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: ** [shp2img] Error 1

and here is the configure i use:
./configure  --enable-point-z-m --with-freetype --with-zlib --with-png
--with-jpeg --with-xpm --with-libiconv --with-gd --with-pdf --with-ftgl
--with-agg=/usr --with-eppl --with-proj --with-threads --with-geos
--with-ogr --with-gdal --with-tiff --with-postgis --with-wfs --with-wcs
--with-wmsclient --with-wfsclient --with-sos --with-curl-config
--with-xml2-config --with-fribidi-config --with-cairo --with-fastcgi
--with-php=/usr/include/php --with-warnings

Best Regard's and sorry for the poor english

Luigi Castro Cardeles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100108/2f2a6342/attachment.html


More information about the mapserver-users mailing list