linux - 我正在尝试在 linux 上构建一个程序

标签 linux makefile geoip

所以我正在尝试构建这个 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/

相关文章:

c++ - 错误: ‘size_type’ is not a member of ‘boost::interprocess::message_queue’

php - 如何测试地理位置标识符功能?

nginx - 安装 GeoIP Nginx 模块 - Debian

elasticsearch - Logstash Geoip无法正常工作

linux - NOHZ=ON 如何影响 Linux 内核中的 do_timer()?

regex - 如何获取包含特定短语的 XML 文件的数量?

linux - 本地P2P库/协议(protocol)

linux - 链接器不使用库,但我要求这样做

c++ - cmake - 何时在 CMakeLists.txt 文件中包含 include_directories

linux - libgc 似乎丢失(安装支持 Mono 的 Virtuoso-Opensource)