Ndoutils需要用到mysql,然而前段时间很多问题出现在对mysql本身的使用上,我自己也在这儿跌了不少跟斗。
屡次碰到类似于”Support for the specified database server is either not yet supported, or was not found on your system.”是由于mysql的库不全或者路径不对,而导致ndoutils找不到mysql相应的头文件和库造成。
解决办法就是上来把mysql和perl的库装上。
libmysql++-dev - mysql C++ library bindings (development)
libmysql++2c2a - mysql C++ library bindings (runtime)
libmysqlclient15-dev - mysql database development files
libmysqlclient15off - mysql database client library
libclass-dbi-mysql-perl -Class::DBI::mysql-Extensions to Class::DBI for MySQL
libdatetime-format-mysql-perl - Parse and format MySQL dates and times
libdbd-mysql-perl -A Perl5 database interface to the MySQL database
libtime-piece-mysql-perl -Time::Piece::MySQL - Adds MySQL-specific methods to Time::Piece
libpam-mysql -PAM module allowing authentication from a MySQL server
libpam-modules - Pluggable Authentication Modules for PAM
libpam-runtime - Runtime support for the PAM library
libpam0g - Pluggable Authentication Modules library
libpam0g-dev - Development files for PAM
kaffe-pthreads - A POSIX threads enabled version of the Kaffe VM
另外,在ndoutils编译的时候,如果./configure这步提示找不到mysql.h,在前面这些都已正确安装之后,可以从别处将libmysql的库和头文件目录考来,并指定为./configure –with-mysql-lib和—with-mysql-lib的目录即可。
注意:在重新./configure之后,在make之前千万记住要先make clean,否则最后会发生让你郁闷好几天的事情!