我从 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
./configure
给了我
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,版本=2.12.0.0,Culture=neutral,PublicKeyToken=35e10195dab3c99f'未解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考'gdk-尖锐,版本=2.12.0.0,文化=中性,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,版本=2.12.0.0,文化=中性,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
echo $MONO_GAC_PREFIX
/usr
但是编译错误仍然存在。我该做什么?