[Mono-list] just installed mono, most basic test failed.
Miljenko Cvjetko
mcvjetko at holisticware.net
Sat May 9 06:16:04 UTC 2015
Hi
It seems like You have forgotten/missed to install GTK#
http://www.mono-project.com/docs/gui/gtksharp/beginners-guide/#getting-set-up
You can compile it from source:
https://github.com/mono/gtk-sharp
If You install Xamarin.Studo (Monodevelop based IDE) everything shoudl
be installed automagically.
regards
Mel
On 20150509 07:35 , ChipRaptor wrote:
> Hi everyone, sorry for this mono newbie question:
>
> I just installed mono (4.0.0) on an iMac running Mac OS X 10.6.8. I'm a .Net
> developper but I am completely new to mono...
>
> I compiled and ran the basic tests proposed on the mono page at
> http://www.mono-project.com/docs/getting-started/mono-basics/
>
> But the first one only was succesfull... (Test.exe which actually is the
> first Hello world program, correctly displaying "Hello Mono World".)
>
> But all the other proposed test display a lot of error messages.
>
> See hereafter the terminal full terminal output:
>
> imac-de-claire-lise-culand-4:Documents PF$ mono test.exe
> Hello Mono World
> imac-de-claire-lise-culand-4:Documents PF$ mono hellogtk
> Cannot open assembly 'hellogtk': No such file or directory.
> imac-de-claire-lise-culand-4:Documents PF$ mono hellogtk.exe
>
> Unhandled Exception:
> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgtk-quartz-2.0.0.dylib
> at (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
> at Gtk.Application.Init () [0x00000] in <filename unknown>:0
> at Hello.Main () [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgtk-quartz-2.0.0.dylib
> at (wrapper managed-to-native) Gtk.Application:gtk_init (int&,intptr&)
> at Gtk.Application.Init () [0x00000] in <filename unknown>:0
> at Hello.Main () [0x00000] in <filename unknown>:0
> imac-de-claire-lise-culand-4:Documents PF$ mono hello.exe
>
> Unhandled Exception:
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.WindowsFormsSynchronizationContext --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.ThemeEngine --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.ThemeWin32Classic --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Drawing.KnownColors --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib
> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename
> unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename
> unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
> [0x00000] in <filename unknown>:0
> at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor
> ()
> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
> [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
> at HelloWorld..ctor () [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor ()
> at HelloWorld.Main () [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An
> exception was thrown by the type initializer for
> System.Windows.Forms.WindowsFormsSynchronizationContext --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.ThemeEngine --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Windows.Forms.ThemeWin32Classic --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Drawing.KnownColors --->
> System.TypeInitializationException: An exception was thrown by the type
> initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException:
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/libgdiplus.dylib
> at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup
> (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
> at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Drawing.KnownColors..cctor () [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Drawing.Color.get_Black () [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in <filename
> unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.ThemeEngine..cctor () [0x00000] in <filename
> unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined ()
> [0x00000] in <filename unknown>:0
> at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor
> ()
> at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor ()
> [0x00000] in <filename unknown>:0
> --- End of inner exception stack trace ---
> at System.Windows.Forms.Control..ctor () [0x00000] in <filename unknown>:0
> at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename
> unknown>:0
> at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0
> at HelloWorld..ctor () [0x00000] in <filename unknown>:0
> at (wrapper remoting-invoke-with-check) HelloWorld:.ctor ()
> at HelloWorld.Main () [0x00000] in <filename unknown>:0
> imac-de-claire-lise-culand-4:Documents PF$
>
>
>
> It seems some dll and other files are not found at
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/
>
> Including
> -libgtk-quartz-2.0.0.dylib
> -libgdiplus.dylib
>
> I checked my /Library folder and found all theses files correctly installed.
>
> The only difference is that, since my Mac is installed in french, the
> "/Library" folder is displayed as "/Bibliothèque" in the Finder. I guess
> that's not the cause of the issue since from the terminal the /Library
> folder is found and effectively contains the /Frameworks/Mono.framework/...
> subfolders:
>
> imac-de-claire-lise-culand-4:/ PF$ cd /Library
> imac-de-claire-lise-culand-4:Library PF$ ls
> Application Support Input Methods QuickTime
> Audio Internet Plug-Ins Receipts
> Caches Java Ruby
> ColorPickers Keyboard Layouts Sandbox
> ColorSync Keychains Screen Savers
> Components LaunchAgents Scripts
> Compositions LaunchDaemons Security
> Contextual Menu Items Logs Speech
> Desktop Pictures Modem Scripts Spelling
> Developer Mozilla Spotlight
> Dictionaries PDF Services StartupItems
> Documentation Perl Updates
> Extensions PreferencePanes User Pictures
> Filesystems Preferences WebServer
> Fonts Printers Widgets
> Frameworks PrivilegedHelperTools iTunes
> Graphics Python
> Image Capture QuickLook
> imac-de-claire-lise-culand-4:Library PF$
>
>
> here is the full content of my
> /Library/Frameworks/Mono.framework/Versions/4.0.0/lib/ folder as listed from
> the terminal:
>
> imac-de-claire-lise-culand-4:lib PF$ ls
> BugpointPasses.dylib
> BugpointPasses.dylib.dSYM
> GNU.Gettext.dll
> LLVMHello.dylib
> LLVMHello.dylib.dSYM
> boo
> cairo
> gdk-pixbuf-2.0
> gettext
> gio
> glib-2.0
> gtk-2.0
> gtk-sharp-2.0
> ironpython
> ironruby
> libLLVMDebugInfo.a
> libLLVMIRReader.a
> libLLVMLTO.a
> libLLVMLineEditor.a
> libLLVMMCAnalysis.a
> libLLVMObjCARCOpts.a
> libLLVMOption.a
> libLLVMProfileData.a
> libLLVMRuntimeDyld.a
> libLLVMTableGen.a
> libLLVMVectorize.a
> libLLVMX86Desc.a
> libLLVMX86Utils.a
> libLTO.dylib
> libLTO.dylib.dSYM
> libMonoPosixHelper.a
> libMonoPosixHelper.dylib
> libMonoPosixHelper.dylib.dSYM
> libMonoPosixHelper.la
> libMonoSupportW.a
> libMonoSupportW.dylib
> libMonoSupportW.dylib.dSYM
> libMonoSupportW.la
> libatk-1.0.0.dylib
> libatk-1.0.0.dylib.dSYM
> libatk-1.0.dylib
> libatk-1.0.dylib.dSYM
> libatk-1.0.la
> libatksharpglue-2.la
> libatksharpglue-2.so
> libatksharpglue-2.so.dSYM
> libcairo-gobject.2.dylib
> libcairo-gobject.2.dylib.dSYM
> libcairo-gobject.dylib
> libcairo-gobject.dylib.dSYM
> libcairo-gobject.la
> libcairo-script-interpreter.2.dylib
> libcairo-script-interpreter.2.dylib.dSYM
> libcairo-script-interpreter.dylib
> libcairo-script-interpreter.dylib.dSYM
> libcairo-script-interpreter.la
> libcairo.2.dylib
> libcairo.2.dylib.dSYM
> libcairo.dylib
> libcairo.dylib.dSYM
> libcairo.la
> libcroco-0.6.3.dylib
> libcroco-0.6.3.dylib.dSYM
> libcroco-0.6.dylib
> libcroco-0.6.dylib.dSYM
> libcroco-0.6.la
> libexpat.1.5.2.dylib
> libexpat.1.5.2.dylib.dSYM
> libexpat.1.dylib
> libexpat.1.dylib.dSYM
> libexpat.dylib
> libexpat.dylib.dSYM
> libexpat.la
> libffi-3.0.13
> libffi.6.dylib
> libffi.6.dylib.dSYM
> libffi.dylib
> libffi.dylib.dSYM
> libffi.la
> libfontconfig.1.dylib
> libfontconfig.1.dylib.dSYM
> libfontconfig.dylib
> libfontconfig.dylib.dSYM
> libfontconfig.la
> libfpm_helper.0.so
> libfpm_helper.0.so.dSYM
> libfpm_helper.a
> libfpm_helper.la
> libfpm_helper.so
> libfpm_helper.so.dSYM
> libfreetype.6.dylib
> libfreetype.6.dylib.dSYM
> libfreetype.dylib
> libfreetype.dylib.dSYM
> libfreetype.la
> libgailutil.18.dylib
> libgailutil.18.dylib.dSYM
> libgailutil.dylib
> libgailutil.dylib.dSYM
> libgailutil.la
> libgdiplus.0.dylib
> libgdiplus.0.dylib.dSYM
> libgdiplus.dylib
> libgdiplus.dylib.dSYM
> libgdiplus.la
> libgdk-quartz-2.0.0.dylib
> libgdk-quartz-2.0.0.dylib.dSYM
> libgdk-quartz-2.0.dylib
> libgdk-quartz-2.0.dylib.dSYM
> libgdk-quartz-2.0.la
> libgdk_pixbuf-2.0.0.dylib
> libgdk_pixbuf-2.0.0.dylib.dSYM
> libgdk_pixbuf-2.0.dylib
> libgdk_pixbuf-2.0.dylib.dSYM
> libgdk_pixbuf-2.0.la
> libgdksharpglue-2.la
> libgdksharpglue-2.so
> libgdksharpglue-2.so.dSYM
> libgettextlib-0.18.2.dylib
> libgettextlib-0.18.2.dylib.dSYM
> libgettextlib.dylib
> libgettextlib.dylib.dSYM
> libgettextlib.la
> libgettextpo.0.dylib
> libgettextpo.0.dylib.dSYM
> libgettextpo.dylib
> libgettextpo.dylib.dSYM
> libgettextpo.la
> libgettextsrc-0.18.2.dylib
> libgettextsrc-0.18.2.dylib.dSYM
> libgettextsrc.dylib
> libgettextsrc.dylib.dSYM
> libgettextsrc.la
> libgif.4.1.6.dylib
> libgif.4.1.6.dylib.dSYM
> libgif.4.dylib
> libgif.4.dylib.dSYM
> libgif.dylib
> libgif.dylib.dSYM
> libgif.la
> libgio-2.0.0.dylib
> libgio-2.0.0.dylib.dSYM
> libgio-2.0.dylib
> libgio-2.0.dylib.dSYM
> libgio-2.0.la
> libglade-2.0.0.0.7.dylib
> libglade-2.0.0.0.7.dylib.dSYM
> libglade-2.0.0.dylib
> libglade-2.0.0.dylib.dSYM
> libglade-2.0.dylib
> libglade-2.0.dylib.dSYM
> libglade-2.0.la
> libgladesharpglue-2.la
> libgladesharpglue-2.so
> libgladesharpglue-2.so.dSYM
> libglib-2.0.0.dylib
> libglib-2.0.0.dylib.dSYM
> libglib-2.0.dylib
> libglib-2.0.dylib.dSYM
> libglib-2.0.la
> libglibsharpglue-2.la
> libglibsharpglue-2.so
> libglibsharpglue-2.so.dSYM
> libgmodule-2.0.0.dylib
> libgmodule-2.0.0.dylib.dSYM
> libgmodule-2.0.dylib
> libgmodule-2.0.dylib.dSYM
> libgmodule-2.0.la
> libgobject-2.0.0.dylib
> libgobject-2.0.0.dylib.dSYM
> libgobject-2.0.dylib
> libgobject-2.0.dylib.dSYM
> libgobject-2.0.la
> libgthread-2.0.0.dylib
> libgthread-2.0.0.dylib.dSYM
> libgthread-2.0.dylib
> libgthread-2.0.dylib.dSYM
> libgthread-2.0.la
> libgtk-quartz-2.0.0.dylib
> libgtk-quartz-2.0.0.dylib.dSYM
> libgtk-quartz-2.0.dylib
> libgtk-quartz-2.0.dylib.dSYM
> libgtk-quartz-2.0.la
> libgtksharpglue-2.la
> libgtksharpglue-2.so
> libgtksharpglue-2.so.dSYM
> libigemacintegration.0.dylib
> libigemacintegration.0.dylib.dSYM
> libigemacintegration.dylib
> libigemacintegration.dylib.dSYM
> libigemacintegration.la
> libikvm-native.dylib
> libikvm-native.dylib.dSYM
> libikvm-native.la
> libintl.8.dylib
> libintl.8.dylib.dSYM
> libintl.dylib
> libintl.dylib.dSYM
> libintl.la
> libjpeg.8.dylib
> libjpeg.8.dylib.dSYM
> libjpeg.dylib
> libjpeg.dylib.dSYM
> libjpeg.la
> libltdl.7.dylib
> libltdl.7.dylib.dSYM
> libltdl.a
> libltdl.dylib
> libltdl.dylib.dSYM
> libltdl.la
> liblzma.5.dylib
> liblzma.5.dylib.dSYM
> liblzma.dylib
> liblzma.dylib.dSYM
> liblzma.la
> libmono-2.0.1.dylib
> libmono-2.0.1.dylib.dSYM
> libmono-2.0.a
> libmono-2.0.dylib
> libmono-2.0.dylib.dSYM
> libmono-2.0.la
> libmono-llvm.0.dylib
> libmono-llvm.0.dylib.dSYM
> libmono-llvm.a
> libmono-llvm.dylib
> libmono-llvm.dylib.dSYM
> libmono-llvm.la
> libmono-profiler-aot.0.dylib
> libmono-profiler-aot.0.dylib.dSYM
> libmono-profiler-aot.a
> libmono-profiler-aot.dylib
> libmono-profiler-aot.dylib.dSYM
> libmono-profiler-aot.la
> libmono-profiler-cov.0.dylib
> libmono-profiler-cov.0.dylib.dSYM
> libmono-profiler-cov.a
> libmono-profiler-cov.dylib
> libmono-profiler-cov.dylib.dSYM
> libmono-profiler-cov.la
> libmono-profiler-iomap.0.dylib
> libmono-profiler-iomap.0.dylib.dSYM
> libmono-profiler-iomap.a
> libmono-profiler-iomap.dylib
> libmono-profiler-iomap.dylib.dSYM
> libmono-profiler-iomap.la
> libmono-profiler-log.0.dylib
> libmono-profiler-log.0.dylib.dSYM
> libmono-profiler-log.a
> libmono-profiler-log.dylib
> libmono-profiler-log.dylib.dSYM
> libmono-profiler-log.la
> libmonoboehm-2.0.1.dylib
> libmonoboehm-2.0.1.dylib.dSYM
> libmonoboehm-2.0.a
> libmonoboehm-2.0.dylib
> libmonoboehm-2.0.dylib.dSYM
> libmonoboehm-2.0.la
> libmonosgen-2.0.1.dylib
> libmonosgen-2.0.1.dylib.dSYM
> libmonosgen-2.0.a
> libmonosgen-2.0.dylib
> libmonosgen-2.0.dylib.dSYM
> libmonosgen-2.0.la
> libpango-1.0.0.dylib
> libpango-1.0.0.dylib.dSYM
> libpango-1.0.dylib
> libpango-1.0.dylib.dSYM
> libpango-1.0.la
> libpangocairo-1.0.0.dylib
> libpangocairo-1.0.0.dylib.dSYM
> libpangocairo-1.0.dylib
> libpangocairo-1.0.dylib.dSYM
> libpangocairo-1.0.la
> libpangosharpglue-2.la
> libpangosharpglue-2.so
> libpangosharpglue-2.so.dSYM
> libpixman-1.0.dylib
> libpixman-1.0.dylib.dSYM
> libpixman-1.dylib
> libpixman-1.dylib.dSYM
> libpixman-1.la
> libpng.dylib
> libpng.dylib.dSYM
> libpng.la
> libpng14.14.dylib
> libpng14.14.dylib.dSYM
> libpng14.dylib
> libpng14.dylib.dSYM
> libpng14.la
> librsvg-2.2.dylib
> librsvg-2.2.dylib.dSYM
> librsvg-2.dylib
> librsvg-2.dylib.dSYM
> librsvg-2.la
> libsqlite3.0.8.6.dylib
> libsqlite3.0.8.6.dylib.dSYM
> libsqlite3.0.dylib
> libsqlite3.0.dylib.dSYM
> libsqlite3.dylib
> libsqlite3.dylib.dSYM
> libsqlite3.la
> libtiff.5.dylib
> libtiff.5.dylib.dSYM
> libtiff.dylib
> libtiff.dylib.dSYM
> libtiff.la
> libtiffxx.5.dylib
> libtiffxx.5.dylib.dSYM
> libtiffxx.dylib
> libtiffxx.dylib.dSYM
> libtiffxx.la
> libxml2.2.dylib
> libxml2.2.dylib.dSYM
> libxml2.dylib
> libxml2.dylib.dSYM
> libxml2.la
> mono
> mono-source-libs
> monodoc
> pango
> pkgconfig
> xml2Conf.sh
> xsp
>
>
> Any help greatly appreciated.
> Thanks.
>
>
>
>
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/just-installed-mono-most-basic-test-failed-tp4665880.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list