Mono和MonoDevelop源码编译安装(3)

====================================================================/usr/lib64/libglib-2.0.so.0: could not read symbols: Invalid operationcollect2: error: ld returned 1 exit statusmake[2]: *** [testgdi] Error 1make[2]: Leaving directory `/usr/local/src/libgdiplus-2.10.9/tests'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/usr/local/src/libgdiplus-2.10.9'make: *** [all] Error 2====================================================================

解决办法如下:
1. 运行./configure --prefix=/usr/local 之后,编辑 tests/Makefile 文件
2. 在Makefile文件130行位置,将   LIBS = -lpthread -lfontconfig
                            改为 LIBS = -lpthread -lfontconfig -lglib-2.0 -lX11
3. 再次运行 make 即可

# make # make install

接着安装monodevelop  

# cd ../monodevelop-3.1.0 # ./configure --prefix=`pkg-config --variable=prefix mono`

仍然是错误:找不到 glade-sharp-2.0
利用yum 安装libglade2-devel,mono源码中没找到这个包

# yum search libglade2 # yum install libglade2-devel.x86_64

知道这个包的名称,也可以找相应的rpm来安装。

安装完libglade2后,重新安装 gtk-sharp2,安装方法上面已有。
接着,再次尝试安装 monodevelop:

# ./configure --prefix=`pkg-config --variable=prefix mono`

此时报了一个错误如下:未安装gnome-sharp-2.0

====================================================================[root@localhost monodevelop-3.1.0]# ./configure --prefix=`pkg-config --variable=prefix mono`checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking how to create a ustar tar archive... gnutarchecking whether to enable maintainer-specific portions of Makefiles... nochecking for mono... /usr/local/bin/monochecking for gmcs... /usr/local/bin/gmcschecking for update-mime-database... /usr/bin/update-mime-databasechecking for pkg-config... /usr/bin/pkg-configchecking for msgfmt... /usr/bin/msgfmtchecking for msgmerge... /usr/bin/msgmergechecking pkg-config is at least version 0.9.0... yeschecking for UNMANAGED_DEPENDENCIES_MONO... yeschecking for mono... /usr/local/bin/monochecking for dmcs... /usr/local/bin/dmcschecking for MONO_ADDINS... yeschecking for MONO_ADDINS_SETUP... yeschecking for MONO_ADDINS_GUI... yeschecking for GLIB_SHARP... yeschecking for GTK_SHARP... yeschecking for GLADE_SHARP... yeschecking for MONODOC... yeschecking for GNOME_SHARP... nochecking for GNOME_VFS_SHARP... nochecking for GCONF_SHARP... noconfigure: error: Cannot enable GNOME platform without gnome-sharp-2.0====================================================================

下载 gnome-sharp-2.0 并安装
下载地址:

# tar jxvf gnome-sharp-2.20.1.tar.bz2 # cd gnome-sharp-2.20.1 # ./configure --prefix=/usr/local

虽然没有报错,但是提示缺少3个assmely: art-sharp.dll,gnomevfs-sharp.dll,gnome-sharp.dll

====================================================================Configuration summary  * Installation prefix = /usr/local * C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16 -define:GNOME_SHARP_2_20  Optional assemblies included in the build:  * art-sharp.dll: no * gnomevfs-sharp.dll: no * gnome-sharp.dll: no  NOTE: if any of the above say 'no' you may install the corresponding development packages for them, rerun autogen.sh to include them in the build.  gnome-sharp.dll requires libgnomecanvas, libgnome, libgnomeui, libgnomeprint, libgnomeprintui, and libpanelapplet.====================================================================

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21218.html