求助!cgi连接mysql的问题。
我需要用c写一个连接mysql的cgi程序,cgi程序放在“/var/www/cgi/”目录,mysql客户机库放在“/usr/local/lib/mysql”下,如果我的cgi程序编译的时候不连接客户机库,就可以正常执行,当编译的时候加“-L/usr/local/lib/mysql/ -lmysqlclient -lz-lm”的时候就出错,错误如下
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.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at localhost Port 1354
请大家帮忙看看是什么原因? 已经解决,多谢关注! 说出你的解决方法。
以防以后大家出现这种问题不知如何解决。 把客户机库拷贝到‘/usr/lib’目录就可以了。
页:
[1]