Linux下编译安装GD2(LIBTOOL错误解决)
Linux下编译安装GD2
所需软件包:
automake,libjpeg-devel,libpng-devel,freetype-devel,libtiff-devel,autoconf
# cd /usr/local/src
# tar xzvf gd-2.0.35.tar.gz
# cd gd-2.0.35
# aclocal
…warning: macro `AM_ICONV’ not found in library
通过Google得知需要gettext-devel软件包,安装后正常生成。
# ./configure –prefix=/usr/local/gd2 –mandir=/usr/share/man
# make
Makefile.am:18: Libtool library used but `LIBTOOL’ is undefined
Makefile.am:18:
Makefile.am:18: The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’
Makefile.am:18: to `configure.ac’ and run `aclocal’ and `autoconf’ again.
make: *** [Makefile.in] Error 1
# rpm -ivh libtool*
安装libtool软件包后重新运行编译安装成功。
# aclocal
# ./configure –prefix=/usr/local/gd2 –mandir=/usr/share/man
# make
# make install
顶!!!!!!