gpt4 book ai didi

Ubuntu 13.04 : how to build Monodevelop 4. 0.1?

转载 作者:IT老高 更新时间:2023-10-28 11:22:46 27 4
gpt4 key购买 nike

我从 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,版本=2.12.0.0,文化=中性,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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com