1. 程式人生 > >使用autogen生成應用程序遇到問題及解決方法

使用autogen生成應用程序遇到問題及解決方法

上下 結果 red 安裝 entos conf apt 運行 def

  從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

使用autogen生成應用程序遇到問題及解決方法