简体   繁体   English

./configure && make install失败

[英]./configure && make install failed

Good Morning While i'm installing RabbitMQ libraries, I found a problem: 早安我正在安装RabbitMQ库时发现了一个问题:

autoreconf -i && ./configure && make && sudo make install

But ./configure stop at this position: 但是./configure停在这个位置:

checking for gcc option to accept ISO C99... -std=gnu99
./configure: line 11104: syntax error near unexpected token `0.17'
./configure: line 11104: `PKG_PROG_PKG_CONFIG(0.17)'

your autotools project uses pkg-config , but it seems that you either don't have that installed at all or you are lacking the "pkg-config <-> autotools" glue ( pkg.m4 ), which provides the PKG_PROG_PKG_CONFIG macro. 您的autotools项目使用pkg-config ,但似乎您根本没有安装或者缺少“pkg-config < - > autotools” pkg.m4pkg.m4 ),它提供了PKG_PROG_PKG_CONFIG宏。

if this is true, then the autoreconf -i should have complained when recreating configure (though probably only as a non-fatal warning) -> check your build-logs. 如果这是真的,那么autoreconf -i应该在重新创建configure时抱怨(尽管可能仅作为非致命警告) - >检查你的构建日志。

you should be able to fix this by installing pkg-config 你应该能够通过安装pkg-config来解决这个问题

NOTE : generally, if you get an error it's good to break down the problem into sub-problems. 注意 :通常,如果出现错误,最好将问题分解为子问题。 since you are really calling four different tasks ( autoreconf , ./configure and make and sudo make install ), you might want to execute them one by one and see where it actually fails (in your case: the 2nd tasks), and what the prior steps indicated (the autoreconf-call). 因为你真的在调用四个不同的任务( autoreconf./configuremake以及sudo make install ),你可能希望逐个执行它们并查看它实际失败的位置(在你的情况下:第二个任务),以及指示前面的步骤(autoreconf-call)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM