[Mono-dev] DllNotFoundException: libgtkembedmoz.so how to solve ?

Alexandre Miguel Pedro Gomes alexmipego at gmail.com
Sat Feb 4 11:24:52 EST 2006


That library is located in the mozilla and/or firefox lib directory. You can
check in /usr/lib/firefox-1.5.0.1 or any other version and/or other mozilla
based product (thunderbird, etc...).

After you find out where it is, you simply edit /etc/ld.so.conf or
edit/create a file in /etc/ld.so.conf.d/ where you place the full path in a
line - after that execute the command ldconfig without any arguments and as
root.

That should solve the problem.

On 2/4/06, Jurgen Schoeters <jurgen.schoeters at gmail.com> wrote:
>
> Hi,
>
> My program gives a DllNotFound exception when i try to run it:
>
> [jurgen at Paris client_app]$ mono Asic_Test_Machine.exe
>
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown  by the type initializer for Gecko.WebControl --->
> System.DllNotFoundException: libgtkembedmoz.so
> in (wrapper managed-to-native) Gecko.WebControl:gtk_moz_embed_get_type
> ()
> in <0x00014> Gecko.WebControl:get_GType ()
> in <0x00026> GtkSharp.GeckoSharp.ObjectManager:Initialize ()
> in <0x00007> Gecko.WebControl:.cctor ()--- End of inner exception stack
> trace -- -
>
> in <0x00000> <unknown method>
> in <0x021d4> Asic_Test_Machine.Gui:SetupGui ()
> in <0x0000c> Asic_Test_Machine.Gui:.ctor ()
> in <0x00016> Asic_Test_Machine.Asic_Test_Machine:Main (System.String[]
> args)
>
> I bypassed the problem by setting  LD_LIBRARY_PATH environment variable
>
> #!/bin/csh
> setenv LD_LIBRARY_PATH /usr/lib/mozilla-1.7.12/
> mono Asic_Test_Machine.exe
>
> But I don't like this solution because my program should be able to run
> without mozilla, what is the best solution ?
>
> Greetings,
>
> Jurgen Schoeters
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



--
Alexandre Gomes, Portugal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060204/49579acd/attachment.html 


More information about the Mono-devel-list mailing list