所以我正在尝试构建这个 https://github.com/maxmind/geoip-api-c我用 git 克隆了它并按照说明进行操作,但在第一步它说要运行 ./configure,但我找不到配置。我已经尝试过 configure.am,但出现此错误。
root@------:/usr/share/nginx/www/Geo/geoip-api-c# ./configure.ac
./configure.ac: line 1: syntax error near unexpected token `('
./configure.ac: line 1: `dnl AM_CONFIG_HEADER(config.h)'
我错过了什么?
最后一个问题,不同的 make 文件扩展名/格式有什么用?像 .VC .in .am
编辑:
我运行了那个文件,然后得到了这个错误:
root@------:/usr/share/nginx/www/Geo/geoip-api-c# ./bootstrap
rm: cannot remove `ltmain.sh': No such file or directory
./bootstrap: 5: ./bootstrap: autoreconf: not found
root@------:/usr/share/nginx/www/Geo/geoip-api-c# ^C
root@------:/usr/share/nginx/www/Geo/geoip-api-c#
最佳答案
README.md
中的“安装”部分解释了如何构建软件。您错过了这一重要步骤:
If you are using a GitHub checkout, please run the
bootstrap
script first to set up the build environment.
关于linux - 我正在尝试在 linux 上构建一个程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18843069/