[MonoDevelop] Running configure under Cygwin in Windows - "Can't find 'mono' in PATH"

Christian Hoff christian_hoff at gmx.net
Tue Dec 23 03:23:58 EST 2008


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


More information about the Monodevelop-list mailing list