0

我想克制在 Mac OSX 上构建 MonoDevelop 时寻求更多帮助,但在这一点上,这似乎是我可以进步的唯一途径。

我已遵循本指南: http: //monodevelop.com/Developers/Mac_Support/Building_MonoDevelop_on_OS_X

我可以简单地使用 运行项目make run,但是我收到以下错误:

aquageneral$ make rundyld: warning, unknown environment variable: DYLD_LIBRARY_FALLBACK_PATH
cd main && make run
dyld: warning, unknown environment variable: DYLD_LIBRARY_FALLBACK_PATH
dyld: warning, unknown environment variable: DYLD_LIBRARY_FALLBACK_PATH
PATH="/Library/Frameworks/Mono.framework/Versions/2.10.9/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin" PKG_CONFIG_PATH="/Users/aquageneral/Desktop/monodevelop/monodevelop/local-config:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:" LD_LIBRARY_PATH="" DYLD_FALLBACK_LIBRARY_PATH="" MONO_GAC_PREFIX="/usr/local:" MONODEVELOP_LOCALE_PATH="/Users/aquageneral/Desktop/monodevelop/monodevelop/main/build/locale" MONO_ADDINS_REGISTRY="/Users/aquageneral/Desktop/monodevelop/monodevelop/main/build/bin" UBUNTU_MENUPROXY=0 exec -a "monodevelop" /Library/Frameworks/Mono.framework/Versions/2.10.9/bin/mono --debug /Users/aquageneral/Desktop/monodevelop/monodevelop/main/build/bin/MonoDevelop.exe --no-redirect
dyld: warning, unknown environment variable: DYLD_LIBRARY_FALLBACK_PATH
dyld: warning, unknown environment variable: DYLD_LIBRARY_FALLBACK_PATH
ERROR [2012-06-24 19:00:28Z]: Error setting process name
System.DllNotFoundException: libc.dylib
  at (wrapper managed-to-native) MonoDevelop.Core.Runtime:prctl (int,byte[],intptr,intptr,intptr)
  at MonoDevelop.Core.Runtime.unixSetProcessName (System.String name) [0x00000] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs:257 
  at MonoDevelop.Core.Runtime.SetProcessName (System.String name) [0x00010] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runtime.cs:240 
ERROR [2012-06-24 19:00:28Z]: Error initialising GLib logging.
System.DllNotFoundException: libglib-2.0.0.dylib
  at (wrapper managed-to-native) GLib.Marshaller:g_malloc (uintptr)
  at GLib.Marshaller.StringToPtrGStrdup (System.String str) [0x00000] in <filename unknown>:0 
  at GLib.Log.SetLogHandler (System.String logDomain, LogLevelFlags flags, GLib.LogFunc logFunc) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.GLibLogging.set_Enabled (Boolean value) [0x00030] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/GLibLogging.cs:50 
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x00056] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:88 
FATAL ERROR [2012-06-24 19:00:28Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp, gnome-sharp or gtkhtml-sharp) may not be properly installed in the GAC.
System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application ---> System.DllNotFoundException: glibsharpglue-2
  at (wrapper managed-to-native) GLib.Thread:glibsharp_g_thread_supported ()
  at GLib.Thread.get_Supported () [0x00000] in <filename unknown>:0 
  at Gtk.Application..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at MonoDevelop.Ide.IdeStartup.Run (MonoDevelop.Ide.MonoDevelopOptions options) [0x0007e] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:95 
  at MonoDevelop.Ide.IdeStartup.Main (System.String[] args) [0x0004f] in /Users/aquageneral/Desktop/monodevelop/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:503 
make[1]: *** [runmd] Error 255
make: *** [run] Error 2

我从头开始重新安装了 Mono MDK,我什至跑过: export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib从同一个终端以及第二次。

4

1 回答 1

2

警告消息表明您已设置DYLD_LIBRARY_FALLBACK_PATH,但应该是DYLD_FALLBACK_LIBRARY_PATH。虽然如果您正确地重新导出它,您应该能够忽略该警告。

但是,实际上给您造成问题的是,MonoDevelop 的配置脚本捕获了DYLD_FALLBACK_LIBRARY_PATHwhen you的值./configure,并在 you 时使用它make run。这应该是一种方便,但在这里它捕获了一个空值。

只需./configure再次运行以使其捕获新值,然后makemake run

于 2012-06-24T20:24:49.030 回答