Prophidys / RTG2

Realtime Traffic Grapher 2
GNU General Public License v2.0
11 stars 9 forks source link

make error on Ubuntu 12.04 LTS: „librtgmysql.c:8:19: fatal error: mysql.h: No such file or directory“ #41

Closed Prophidys closed 9 years ago

Prophidys commented 9 years ago

From sven.eh...@gmail.com on April 07, 2014 06:14:42

What steps will reproduce the problem? 1. ./configure

  1. (create symlinks to work around libltdl issues)
  2. (add other packages: libmysqlclient-dev, libsnmp-dev, bison)
  3. make

~/tmp/rtg2/rtg2-0.9.1-1$ make Making all in cgilib-0.4 make[1]: Entering directory /home/comdok/tmp/rtg2/rtg2-0.9.1-1/cgilib-0.4' make[1]: Nothing to be done forall'. make[1]: Leaving directory /home/comdok/tmp/rtg2/rtg2-0.9.1-1/cgilib-0.4' Making all in src make[1]: Entering directory/home/comdok/tmp/rtg2/rtg2-0.9.1-1/src' make all-am make[2]: Entering directory /home/comdok/tmp/rtg2/rtg2-0.9.1-1/src' /bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -I/usr/include -I/usr/include -I -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -g -O2 -MT librtgmysql.lo -MD -MP -MF .deps/librtgmysql.Tpo -c -o librtgmysql.lo librtgmysql.c gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -I/usr/include -I/usr/include -I -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -g -O2 -MT librtgmysql.lo -MD -MP -MF .deps/librtgmysql.Tpo -c librtgmysql.c -fPIC -DPIC -o librtgmysql.lo librtgmysql.c:8:19: fatal error: mysql.h: No such file or directory compilation terminated. make[2]: *** [librtgmysql.lo] Error 1 make[2]: Leaving directory/home/comdok/tmp/rtg2/rtg2-0.9.1-1/src' make[1]: * [all] Error 2 make[1]: Leaving directory `/home/comdok/tmp/rtg2/rtg2-0.9.1-1/src' make: * [all-recursive] Error 1

Original issue: http://code.google.com/p/rtg2/issues/detail?id=44

Prophidys commented 9 years ago

Fix in https://github.com/Prophidys/RTG2/commit/44a774f0959f1e317393b045f9fcf569c63e63dd.