问题描述
我从网上下载的git来源:
混帐混帐克隆://github.com/mono/monodevelop.git
和依赖:
CD MonoDevelop的&放大器;&安培; git的子模块初始化和放大器;&安培;混帐子模块更新
I downloaded sources from git:
git clone git://github.com/mono/monodevelop.git
and dependencies:
cd monodevelop && git submodule init && git submodule update
我设置单3.0.11(因为
你需要单声道2.10.9或更新版本
和默认版本是2.10.8.1)
I setup mono 3.0.11 (because"You need mono 2.10.9 or newer"and default version was 2.10.8.1)
我添加库:
猫«DEB H T T P上://ubuntu.mirror.cambrium.nl/ubuntu/清醒主要»>>的/etc/apt/sources.list
I added repository:cat «deb h t t p://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main» >> /etc/apt/sources.list
我安装的软件包:
易于得到安装libglib2.0-CIL的gnome-sharp2 GTK的sharp2 libmono-加载项-CIL-dev的libmono - 加载项的GUI-CIL-dev的libmono - 加载项-的MSBuild-CIL-dev的
I installed packages:
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
gives me
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
不过,
让| grep的未解决
给我的错误:
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考巧舌如簧锐利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考攀高锐利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考ATK-锐利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考GDK-锐利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考GTK锋利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决
/usr/local/lib/mono/4.0/Microsoft.Common.targets:警告:参考林间空地锐利,版本= 2.12.0.0,文化=中性公钥= 35e10195dab3c99f'没有解决。
But
make | grep "not resolved"
gives me errors:
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
/usr/local/lib/mono/4.0/Microsoft.Common.targets: warning : Reference 'glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' not resolved
在这个页面 - http://article.gmane.org/gmane.comp.gnome.mono.monodevelop.general/14338
建议«看起来你需要安装GTK锋利2.12.x»
In this page - http://article.gmane.org/gmane.comp.gnome.mono.monodevelop.general/14338it is recommended «It looks like you need to install gtk-sharp 2.12.x»
但我安装它们:
查找/ usr / lib目录/单声道/ 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
find /usr/lib/mono/gac -xdev -iname "*Sharp.dll" | grep "3c99f" | grep -v "policy"
/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
我也试过这样的建议:
<一href=\"http://www.mono-project.com/Parallel_Mono_Environments#Tip:_MONO_GAC_$p$pFIX\">http://www.mono-project.com/Parallel_Mono_Environments#Tip:_MONO_GAC_$p$pFIX
并添加MONO_GAC_ preFIX到的〜/ .bashrc
回声$ MONO_GAC_ preFIX
的/ usr
I also tried this advice:
http://www.mono-project.com/Parallel_Mono_Environments#Tip:_MONO_GAC_PREFIX
and add MONO_GAC_PREFIX into ~/.bashrc
echo $MONO_GAC_PREFIX
/usr
但编译错误还在这里。我应该怎么办?
But compiling errors are still here. What I should do?
(一些链接被故意损坏,因为你至少需要10声誉后2个以上环节。)
(some links was intentionally damaged, because "You need at least 10 reputation to post more than 2 links.")
推荐答案
下面是我做的:
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
显然,单声道的GAC没有看到那些你从包安装库。那么,上述工作命令我:-D
Apparently, mono's GAC does not see those libs you install from packages. Well, commands above work for me :-D
这篇关于Ubuntu的13.04:如何建立MonoDevelop的4.0.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!