我需要用c写一个连接mysql的cgi程序,cgi程序放在“/var/www/cgi/”目录,mysql客户机库放在“/usr/local/lib/mysql”下,如果我的cgi程序编译的时候不连接客户机库,就可以正常执行,当编译的时候加
“-L/usr/local/lib/mysql/ -lmysqlclient -lz -lm”的时候就出错,错误如下
[code:1]Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.