[MonoDevelop] Running configure under Cygwin in Windows - "Can't find 'mono' in PATH"
Christian Hoff
christian_hoff at gmx.net
Thu Dec 25 04:17:41 EST 2008
Huk wrote:
>
> Christian Hoff wrote:
>
>> Huk wrote:
>>
>>> Well earlier it didn't work... but now it DID :)
>>>
>>>
>> cool :-)
>>
>>> I managed to compile mono from svn - now... any ideas how to run this
>>> thing?
>>>
>>> I guess that I should not run this from Cygwin, right?
>>>
>>> Anyway I tried that - make install and then monodvelop I get:
>>>
>>> $ monodevelop
>>> WARNING: Cannot find Mozilla directory containing libgtkembedmoz.so. Some
>>> Addins
>>> may not be able to function. Please set MOZILLA_FIVE_HOME to your
>>> Mozilla
>>> direc
>>> tory.
>>> WARNING [2008-12-22 20:27:50Z]: Gtk-Warning: cannot open display:
>>> Stack trace:
>>> at Gtk.Application.Init()
>>> at MonoDevelop.Ide.Gui.IdeStartup.Run(System.String[] args)
>>> at MonoDevelop.Startup.SharpDevelopMain.Main(System.String[] args)
>>>
>>>
>> No idea why Gtk cannot open the display(running my own Gtk# apps from a
>> Cygwin console worked), but yeah, you'd better try to run md from a
>> Windows shell then.
>>
>>> From Cygwin-X I get:
>>>
>>> shm_semaphores_init: semget error: No space left on device...
>>>
>>> If I try it under pure Windos - I get:
>>>
>>> I:\cyg_mono\monodevelop\main\build\bin>c:\Mono-2.0.1\bin\mono.exe --debug
>>> MonoDe
>>> velop.exe -ipc-tcp
>>>
>>> ** (MonoDevelop.exe:3912): WARNING **: The following assembly referenced
>>> from I:
>>> \cyg_mono\monodevelop\main\build\bin\MonoDevelop.Core.dll could not be
>>> loaded:
>>> Assembly: Mono.Addins.Setup (assemblyref_index=7)
>>> Version: 0.3.0.0
>>> Public Key: 0738eb9f132ed756
>>> The assembly was not found in the Global Assembly Cache, a path listed in
>>> the MO
>>> NO_PATH environment variable, or in the location of the executing
>>> assembly
>>> (I:\c
>>> yg_mono\monodevelop\main\build\bin).
>>>
>>>
>>> ** (MonoDevelop.exe:3912): WARNING **: Could not load file or assembly
>>> 'Mono.Add
>>> ins.Setup, Version=0.3.0.0, Culture=neutral,
>>> PublicKeyToken=0738eb9f132ed756' or
>>> one of its dependencies.
>>>
>>> ** (MonoDevelop.exe:3912): WARNING **: Could not load file or assembly
>>> 'Mono.Add
>>> ins.Setup, Version=0.3.0.0, Culture=neutral,
>>> PublicKeyToken=0738eb9f132ed756' or
>>> one of its dependencies.
>>>
>>> Unhandled Exception: System.TypeLoadException: A type load exception has
>>> occurre
>>> d.
>>>
>>> Any ideas how do I run this?
>>>
>>>
>> MonoDevelop cannot find all these assemblies in the global assembly
>> cache(GAC) where they should have been installed by running "make
>> install".
>>
>> Try to find these assemblies(they will probably be in the directory from
>> which you compiled the sources, simply search for *.dll), start the Mono
>> shell(which will include the mono bin directory in the PATH of the
>> console session) and run gacutil /i "PATH_TO_MonoDevelop.Core.dll". Do
>> the same with all the other assemblies. "gacutil /l" will give you a
>> list of all assemblies that have been installed into the GAC.
>>
>> Christian
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>>
>
> Well adding dlls with gacutil didn't work - or rather it worked but MD still
> didn't saw it - so I simply copied all dlls to MD.exe dir - now it saw dll's
> but there were errors:
>
Are you sure you have added these assemblies to the *Mono* and not in
the Microsoft .net assembly cache? Try using the gacutil that is in the
Mono bin dir.
> Unhandled Exception: System.NullReferenceException: Object reference not set
> to
> an instance of an object
> at MonoDevelop.Core.Runtime.Initialize (Boolean updateAddinRegistry)
> [0x00078]
> in
> /cygdrive/c/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/Runt
> ime.cs:67
> at MonoDevelop.Startup.SharpDevelopMain.Main (System.String[] args)
> [0x00000]
> in
> /cygdrive/c/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup
> /MonoDevelopMain.cs:14
>
No idea what is giving you these errors, I'm not a MD developer
> There were also errors like "Library X is not a compatible library" -
> however they shown only once - after copying dlls...
>
> Oh I almost forgot - I had to compile gtk-sharp.dll 2.12 myself - I have no
> idea if I managed to do it correctly, because while I was compiling this
> lib, compiler was complaining that it couldn't find files like:
>
> gtk-sharp.raw, glib-sharp.raw and so on for other components - and google
> gave no answers about this error so I simply created dummies of those files
> and... it worked...
>
Uh, creating dummy files is not really a good idea :-) . You have to
copy the XYZ-api-2.12.raw to XYZ-api.raw to make it work, but the
configure script should have done this for you. No idea why you were
even successful in compiling the libraries. If you really want to
compilile them manually(NOT RECOMMENDED, could be quite frustrating),
read http://www.mono-project.com/Compiling_GtkSharp. But you will no
longer need to install Mono.Cairo into the GAC, it is now included in
the Gtk# repo(could someone update the wiki, please?). Otherwise use the
bundled installer from
http://www.go-mono.com/mono-downloads/download.html, Gtk# 2.10 should be
sufficient for running Mono on Windows.
> Then I copied gtk-sharp.dll to MD.exe dir – of course that didn't change
> anything (beside it stopped complaining about missing assembly)
>
"C:\Program files\mono\bin\gacutil" /i ...
> Any other ideas what else could I try?
>
> Thanks in advance.
>
More information about the Monodevelop-list
mailing list