LIBTOOL is undefined 解決方案

來源:互聯網
上載者:User

LIBTOOL is undefined 解決方案 - 張立坤的部落格 - 我的搜狐

LIBTOOL is undefined 解決方案 收藏到手機    轉寄   評論 2010-01-28 05:16

最近老是發生這個問題, 終於知道發生的根本原因, 特定記下來,以便後來方便

Libtool library used but `LIBTOOL' is undefined
The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
to `configure.ac' and run `aclocal' and `autoconf' again.
If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
its definition is in aclocal's search path.

原因分析
aclocal是個掃描程式, 負責掃描configure.ac中所有的宏定義並展開,
上面產生的原因就是找不到LIBTOOL宏的定義之處造成的.

原因就是aclocal與libtool沒有安裝在一個相同目錄下面

aclocal是去預設 安裝目錄 /usr/share/aclocal下面搜尋所有的.m4檔案找所定義的宏,

但是由於安裝了多個aclocal,可能aclocal目錄不存在,實際目錄為/usr/share/aclocal1.10等,
這就造成了aclocal找不到m4檔案的情況, 解決辦法就是將檔案夾aclocal1.10重新命名為aclocal.

或者顯示指定路徑 aclocal -I /usr/share/aclocal1.10 -I /usr/share/libtool/m4 --install

或者把/usr/share/libtool/m4下面的檔案都copy至/usr/share/aclocal1.10中.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.