I am trying to install the nmap-3.48-with-sql-0.0.3.tar.gz setup and I have made all the changes as described in the Readme.sql file. I also already have mysql installed (version 4.0.2), since this box is running Snort. I just wanted to add the port scanning functionality to this box as well. After I run ./configure and then I run 'make' I get the following error.
------------------error--------------------
common.cc:10:25: mysql/mysql.h: No such file or directory
In file included from common.cc:11:
common.h:11: syntax error before `*' token
common.h:14: `MYSQL' was not declared in this scope
common.h:14: `conn' was not declared in this scope
common.h:14: variable or field `db_disconnect' declared void
common.cc:14: syntax error before `*' token
common.cc:18: ISO C++ forbids declaration of `conn' with no type
common.cc:18: `mysql_init' was not declared in this scope
common.cc:20: syntax error before `if'
common.cc:33: `MYSQL' was not declared in this scope
common.cc:34: variable or field `db_disconnect' declared void
common.cc:34: redefinition of `int db_disconnect'
common.h:14: `int db_disconnect' previously defined here
common.cc:34: syntax error before `{' token
make: *** [common.o] Error 1
----------------end of error------------------
can anyone assist me in getting this installed, I would greatly appriciate it and would be glad to make a donation.
Thanks,
Ryan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to install the nmap-3.48-with-sql-0.0.3.tar.gz setup and I have made all the changes as described in the Readme.sql file. I also already have mysql installed (version 4.0.2), since this box is running Snort. I just wanted to add the port scanning functionality to this box as well. After I run ./configure and then I run 'make' I get the following error.
------------------error--------------------
common.cc:10:25: mysql/mysql.h: No such file or directory
In file included from common.cc:11:
common.h:11: syntax error before `*' token
common.h:14: `MYSQL' was not declared in this scope
common.h:14: `conn' was not declared in this scope
common.h:14: variable or field `db_disconnect' declared void
common.cc:14: syntax error before `*' token
common.cc:18: ISO C++ forbids declaration of `conn' with no type
common.cc:18: `mysql_init' was not declared in this scope
common.cc:20: syntax error before `if'
common.cc:33: `MYSQL' was not declared in this scope
common.cc:34: variable or field `db_disconnect' declared void
common.cc:34: redefinition of `int db_disconnect'
common.h:14: `int db_disconnect' previously defined here
common.cc:34: syntax error before `{' token
make: *** [common.o] Error 1
----------------end of error------------------
can anyone assist me in getting this installed, I would greatly appriciate it and would be glad to make a donation.
Thanks,
Ryan
Make sure you have the mysql dev libraries installed. and available in your LD_LIBRARY_PATH environment variable.
Paul