【问题标题】:"fatal error: mysql.h: No such file or directory" Compiling mod_auth_mysql-3.0.0“致命错误:mysql.h:没有这样的文件或目录”编译 mod_auth_mysql-3.0.0
【发布时间】:2014-01-04 14:52:58
【问题描述】:

我尝试在我的 debian Wheezy 上构建 mod_auth_mysql,但总是出现这个错误:

mod_auth_mysql.c:269:19: fatal error: mysql.h: No such file or directory

我以前从未构建过软件包/模组,我不明白我做错了什么。我关注了this documentation 并使用了这个命令行:

apxs2 -c -lmysqlclient -lm -lz mod_auth_mysql.c

【问题讨论】:

    标签: mysql apache debian


    【解决方案1】:

    你有没有试过用-I"/usr/include/mysql"编译,那里可能有mysql.h。

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-06
    • 2022-06-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多