使用AUTOGEN生成应用程序遇到问题及解决方法

  从github上下载的代码,运行autogen.sh的时候,上报错误:

$ ./autogen.sh --prefix=/usr
./autogen.sh: 10: ./autogen.sh: autoreconf: not found

  资料搜索,结果是我的ubuntu系统缺少相应的安装包,解决方式如下:

sudo apt-get install autoconf autogen

  上面问题解决后,接下来上报错误:

configure.ac:163: error: possibly undefined macro: AC_PROG_LIBTOOL

原因也是缺少相应安装包,具体解决思路如下所示:

For centos required to install

yum install libtool

and for ubuntu

apt-get install libtool

猜你喜欢

转载自www.cnblogs.com/yanglang/p/9482430.html