[Mono-list] Monodoc 0.9 installation

John Luke jluke@users.sourceforge.net
Thu, 15 Jan 2004 15:16:37 -0500


On Thu, 2004-01-15 at 15:06 -0500, Chris Vickerson wrote:
> >Although I think it would be wise to keep mono/gtk#/etc in the same
> >prefix, you can use the MONO_PATH variable to tell mono where to look.
> >
> >  
> >
> ...totally agree that I shouldn't have my installation all over the 
> place.  I'm not really sure if the fact that mcs can't find the dlls by 
> default is related to why monodoc can't find the dlls but it seems to 
> make sense (for now).  I tried what you said:
> 
> **************************************
> [root@localhost lib]# MONO_PATH=/usr/lib
> [root@localhost lib]# cd /home/chrisv
> [root@localhost chrisv]# mcs test.cs /r:gtk-sharp
> error CS0006: Cannot find assembly `gtk-sharp'
> Log:
> 
> Compilation failed: 1 error(s), 0 warnings
> [root@localhost chrisv]# echo $MONO_PATH
> /usr/lib
> **************************************
> 
> ...and it failed.  Just to show that it does work:
> 
> **************************************
> [root@localhost chrisv]# mcs test.cs /r:/usr/lib/gtk-sharp
> Compilation succeeded
> **************************************
> 
> 

try:
export MONO_PATH=/usr/lib

and if that fails:
export MONO_PATH=/usr/lib:/usr/local/:lib

the key being you have to export environment variables