安裝GD庫錯誤解決方法 configure.ac:64: error: possibly undefined macro: AM_ICONV
[root@xxt401 gd-2.0.35]# make install
cd . && /bin/sh /tmp/jpeg-6b/gd-2.0.35/config/missing –run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV’ not found in library
cd . && /bin/sh /tmp/jpeg-6b/gd-2.0.35/config/missing –run automake-1.9 –foreign
cd . && /bin/sh /tmp/jpeg-6b/gd-2.0.35/config/missing –run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] 錯誤 1
把報錯資訊“configure.ac:64: error: possibly undefined macro: AM_ICONV”拿到google裡搜尋,得到“But you need to have gettext”沒有gettext這個包。
到 http://www.gnu.org/software/gettext/下載下傳了gettext-0.17.tar.gz
cp /usr/lib/libattr.* /lib/ (這個在轉載的文章裡沒說,是因為make的時候報錯說沒有libattr.la這個檔案,是以要複制過去)
tar xzf gettext-0.17.tar.gz
cd gettext-0.17
./configure
make
make install
經過以上操作,回去安裝g d 就沒有問題了!
本文轉自 xinsir999 51CTO部落格,原文連結:http://blog.51cto.com/xinsir/1620018,如需轉載請自行聯系原作者