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

2008年5月5日 | 归档于 web构架
标签:
  1. 泛泛
    2011年3月4日 17:52 | #1

    顶!!!!!!

发表评论

XHTML: 您可以使用这些标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>