2012-03-11 95 views
5

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]# 
+0

我已經放棄了贊成CentOS 6,認爲它在CentOS 5上無法正常工作。 – 2012-03-14 15:34:13

回答

0

遇到同樣的問題並在論壇中找到解決方案。請嘗試從源目錄中的shell運行autoconfig fi(例如'/usr/local/src/libgdiplus-2.10.9')。 據我瞭解這是'libtool'的問題,libgdiplus應該在運行此命令後編譯。

3

嘗試安裝的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 
32

export echo=echo

this nabble

對於由AUTOGEN正在生成的libtool腳本某種原因,包含參照「$回聲線消息「而不是」回聲消息「。

導出echo = echo工作,儘管是完全奇怪的。

+2

這對我有用。 – FlappySocks 2012-12-11 02:11:41

+0

你是我的英雄 – yonexbat 2013-03-03 07:10:32

+0

太棒了!它拯救了我的一天 – 2013-06-03 05:50:45

0

在安裝所需的軟件包後,我成功地在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 
4

這是我的解決方案:

[[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 

它的工作原理!

1

我剛在RHEL 4上編譯了libgdiplus-2.10.9!使用這兩種修復:

export echo=echo 

mv pixman/libtool pixman/libtool.old 
cp libtool pixman/libtool 

謝謝你們這一切。你爲我節省了一些時間:)