我从git下载源:

git clone git://github.com/mono/monodevelop.git

和依赖项:
cd monodevelop && git submodule init && git submodule update

我设置了单声道3.0.11(因为
“您需要单声道2.10.9或更高版本”
且默认版本为2.10.8.1)

我添加了存储库:
cat «deb http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main» >> /etc/apt/sources.list

我安装了软件包:
apt-get install libglib2.0-cil gnome-sharp2 gtk-sharp2 libmono-addins-cil-dev libmono-addins-gui-cil-dev libmono-addins-msbuild-cil-dev

。/配置
给我
Configuration Summary
---------------------

MonoDevelop has been configured with
    prefix = /usr/local
    profile = default

Packages included in the build:
    main
    extras/JavaBinding
    extras/ValaBinding
    extras/MonoDevelop.Database
    extras/MonoDevelop.Debugger.Gdb
    extras/PyBinding
    extras/MonoDevelop.MeeGo


make | grep "not resolved"

给我错误:

/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'glib-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'pango-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'atk-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'gdk-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'gtk-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:引用'glade-sharp,Version = 2.12.0.0,Culture = neutral,PublicKeyToken = 35e10195dab3c99f'未解决

在此页面中-http://article.gmane.org/gmane.comp.gnome.mono.monodevelop.general/14338
建议«看起来您需要安装gtk-sharp 2.12.x»

但是我已经安装了它们:

找到/usr/lib/mono/gac -xdev -iname“* Sharp.dll” | grep“3c99f” | grep -v“策略”
/usr/lib/mono/gac/pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll
/usr/lib/mono/gac/gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll
/usr/lib/mono/gac/gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll
/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll
/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll
/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll
/usr/lib/mono/gac/art-sharp/2.24.0.0__35e10195dab3c99f/art-sharp.dll
/usr/lib/mono/gac/gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll
/usr/lib/mono/gac/glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll
/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll

我也尝试过以下建议:

http://www.mono-project.com/Parallel_Mono_Environments#Tip:_MONO_GAC_PREFIX

并将MONO_GAC_PREFIX添加到〜/.bashrc中
回声$ MONO_GAC_PREFIX
/usr

但是仍然存在编译错误。我该做什么?

最佳答案

这是我的工作:

sudo apt-get install libglade2.0-cil-dev
sudo apt-get install gnome-sharp2

cd /usr/lib/mono/gac/

sudo gacutil -i glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll &&
sudo gacutil -i atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll &&
sudo gacutil -i gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll &&
sudo gacutil -i gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll &&
sudo gacutil -i glade-sharp/2.12.0.0__35e10195dab3c99f/glade-sharp.dll &&
sudo gacutil -i pango-sharp/2.12.0.0__35e10195dab3c99f/pango-sharp.dll &&
sudo gacutil -i gnome-sharp/2.24.0.0__35e10195dab3c99f/gnome-sharp.dll &&
sudo gacutil -i gconf-sharp/2.24.0.0__35e10195dab3c99f/gconf-sharp.dll &&
sudo gacutil -i gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll

显然,mono的GAC看不到您从软件包安装的那些库。好吧,以上命令对我有用:-D

关于Ubuntu 13.04 : how to build Monodevelop 4. 0.1?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16485826/

10-10 08:31