为什么 Monodevelop 没有运行?mscorlib.dll

为什么 Monodevelop 没有运行?mscorlib.dll

我最近从 Ubuntu 14.04 软件中心安装了 mono 3.2.8 和 monodevelop 4。但是,当我尝试从 dash 菜单运行 monodevelop 时,什么也没发生 - 因此,我尝试从终端运行它,它显示“未找到或无法加载程序集 mscorlib.dll。它应该安装在目录中/usr/lib/mono/4.5/mscorlib.dll。”我该如何解决这个问题?我已经尝试了各种方法,但都不起作用。我已经尝试运行以下命令:

sudo apt-get install mono-complete
sudo apt-get install mono-devel
sudo apt-get install mono-gmcs
sudo apt-get install mono-dmcs
sudo apt-get install libmono-system.data2.0-cil
sudo apt-get install libmono-system2.0-cil
sudo apt-get install libmono2.0-cil
sudo apt-get install --reinstall monodevelop
sudo apt-get install --reinstall mono-runtime

这些都不起作用。我该怎么办?

编辑

现在,我安装了 libmono-corlib4.0-cil 和 libmono-corlib4.5-cil,这个问题已经解决了。但是,现在又出现了一条新消息:

Missing method .ctor in assembly /usr/lib/monodevelop/bin/MonoDevelop.Ide.dll, type     System.Runtime.CompilerServices.ExtensionAttribute
Can't find custom attr constructor image: /usr/lib/monodevelop/bin/MonoDevelop.Ide.dll         mtoken: 0x0a000910
* Assertion at class.c:5597, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) <IL 0x00001, 0x00013>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object     (object,intptr,intptr,intptr) <IL 0x0005c, 0xffffffff>

Native stacktrace:

monodevelop() [0x8105b4a]
[0xb76f340c]
[0xb76f3424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x47) [0xb74de937]
/lib/i386-linux-gnu/libc.so.6(abort+0x143) [0xb74e1d63]
monodevelop() [0x8288b23]
monodevelop() [0x8288bb3]
monodevelop() [0x816b4d1]
monodevelop(mono_class_get_full+0xff) [0x816bdff]
monodevelop(mono_class_from_name+0x107) [0x816c237]
monodevelop(mono_class_from_typeref+0x190) [0x816b9a0]
monodevelop(mono_class_get_full+0x164) [0x816be64]
monodevelop(mono_class_get+0x1f) [0x816bf4f]
monodevelop(mono_metadata_parse_mh_full+0x45c) [0x81b29fc]
monodevelop(mono_method_get_header+0xbf) [0x819130f]
monodevelop() [0x807ff7c]
monodevelop() [0x8066ccc]
monodevelop() [0x8068de4]
monodevelop() [0x8069aee]
monodevelop() [0x8106d17]
[0xb76dc03e]
[0xb71a02fd]
monodevelop() [0x8069bf0]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

答案1

该文件由libmono-corlib4.5-cil.安装它:

sudo apt-get install libmono-corlib4.5-cil

相关内容