安装libconfig时出现./configure: No such file or directory解决方案
由于最近复现部分代码时需要安装libconfig ,就分别在windows和ubuntu下配置了一下,发现ubuntu配置时出现了./configure: No such file or directory,查询博客解决方案发现大部分都是复制粘贴的安装过程,并没有人指出此问题。
后来查看文件中的install安装说明,发现此文件夹确实缺少configure文件,这里需要用GNU的autotools生成,解决方案如下:
cd libconfig-1.7.2;
aclocal
autoconf
automake --add-missing
./configure
生成makefile,但是一输入make,就发生错误:WARNING: makeinfo’ is missing on your system. You should only need it if you modified a .texi’ or .texinfo’ file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy make’ (AIX,
DU, IRIX). You might want to install the Texinfo’ package or the GNU make’ package. Grab either from any GNU archive site.
说我缺少makeinfo,这玩意在texinfo肚子里
于是我给它装上吧!!!淦!!!
sudo apt-get install texinfo
然后就是make check ,sudo make install ,OK!
在Ubuntu上安装libconfig时遇到错误‘./configure: No such file or directory’。通过查看安装说明,发现缺少configure文件,需要使用GNU autotools生成。通过执行aclocal、autoconf、automake --add-missing和./configure命令生成makefile。接着因缺少makeinfo,安装了texinfo。最后执行make、make check和sudo make install完成安装。
1万+

被折叠的 条评论
为什么被折叠?



