上Centos5编译libgdiplus-2.10.9为单声道
Centos5 32 & 64的在VMware VPS新鲜安装...上Centos5编译libgdiplus-2.10.9为单声道
yum install gcc glib2-devel bison libX11-devel freetype-devel fontconfig-devel gcc-c++ libpng-devel
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
tar jxfv libgdiplus-2.10.9.tar.bz2
cd libgdiplus-2.10.9
./configure --prefix=/opt/mono
make && make install
这里是输出:
[[email protected] libgdiplus-2.10.9]# make
make all-recursive
make[1]: Entering directory `/usr/local/src/libgdiplus-2.10.9'
Making all in pixman
make[2]: Entering directory `/usr/local/src/libgdiplus-2.10.9/pixman'
make all-recursive
make[3]: Entering directory `/usr/local/src/libgdiplus-2.10.9/pixman'
Making all in pixman
make[4]: Entering directory `/usr/local/src/libgdiplus-2.10.9/pixman/pixman'
source='pixman-access.c' object='pixman-access.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wall -fvisibility=hidden -c -o pixman-access.lo pixman-access.c
../libtool: line 852: X--tag=CC: command not found
../libtool: line 885: libtool: ignoring unknown tag : command not found
../libtool: line 852: X--mode=compile: command not found
../libtool: line 1018: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1019: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1162: Xgcc: command not found
../libtool: line 1162: X-DHAVE_CONFIG_H: command not found
../libtool: line 1162: X-I.: command not found
../libtool: line 1162: X-I..: command not found
../libtool: line 1162: X-g: command not found
../libtool: line 1162: X-O2: command not found
../libtool: line 1162: X-Wall: command not found
../libtool: line 1162: X-fvisibility=hidden: command not found
../libtool: line 1162: X-c: command not found
../libtool: line 1214: Xpixman-access.lo: command not found
../libtool: line 1219: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [pixman-access.lo] Error 1
make[4]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/pixman/pixman'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/pixman'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/pixman'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9'
make: *** [all] Error 2
[[email protected] libgdiplus-2.10.9]#
遇到同样的问题并在论坛中找到解决方案。请尝试从源目录中的shell运行autoconfig fi
(例如'/usr/local/src/libgdiplus-2.10.9')。 据我了解这是'libtool'的问题,libgdiplus应该在运行此命令后编译。
尝试安装的autoconf> = 2.68,并使用
yum install autoconf-2.68 gcc glib2-devel bison libX11-devel freetype-devel fontconfig-devel gcc-c++ libpng-devel
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
tar jxfv libgdiplus-2.10.9.tar.bz2
cd libgdiplus-2.10.9
autoreconf -fiv
./configure --prefix=/opt/mono
make && make install
export echo=echo
对于由AUTOGEN正在生成的libtool脚本某种原因,包含参照“$回声线消息“而不是”回声消息“。
导出echo = echo工作,尽管是完全奇怪的。
这对我有用。 – FlappySocks 2012-12-11 02:11:41
你是我的英雄 – yonexbat 2013-03-03 07:10:32
太棒了!它拯救了我的一天 – 2013-06-03 05:50:45
在安装所需的软件包后,我成功地在CentOS 5(x86-64)上编译了libgdiplus-2.10.9。有必要使用autoconf,automake和libtool来更新配置脚本。
yum install autoconf.noarch automake libtool.x86_64
yum install fontconfig-devel.x86_64 freetype-devel.x86_64 glib2-devel.x86_64
autoreconf -fiv
./configure --prefix=/usr/local/mono
make
make install
这是我的解决方案:
[[email protected] libgdiplus-2.10.9]# pwd
/root/libgdi/libgdiplus-2.10.9
[[email protected] libgdiplus-2.10.9]# ls -la libtool
-rwxr-xr-x 1 root root 292559 Jul 8 14:12 libtool
[[email protected] libgdiplus-2.10.9]# ls -la pixman/libtool
-rwxr-xr-x 1 root root 211592 Jul 8 14:12 pixman/libtool
You can see that the two files "libtool" are different:
mv pixman/libtool pixman/libtool.old
cp libtool pixman/libtool
它的工作原理!
我刚在RHEL 4上编译了libgdiplus-2.10.9!使用这两种修复:
export echo=echo
和
mv pixman/libtool pixman/libtool.old
cp libtool pixman/libtool
谢谢你们这一切。你为我节省了一些时间:)
我已经放弃了赞成CentOS 6,认为它在CentOS 5上无法正常工作。 – 2012-03-14 15:34:13