[Mono-dev] Library path bug in Makefile?

"Andrés G. Aragoneses" knocte at gmail.com
Tue Mar 4 13:01:19 UTC 2014


As far as I understand, LD_LIBRARY_PATH is a system setting that mono
doesn't modify. If you want Mono to work out of the box without the need
to adjust LD_LIBRARY_PATH you need to install it in a standard prefix.
Some distributions consider /usr and /usr/local to be standard (note:
/usr/local/mono-3.2.8 != /usr/local), but I've also seen/heard issues
about people installing in /usr/local, so the safest bet is /usr
(although choosing /usr has the disadvantage that it can clash with your
system mono packages if you're not careful).

This is also a good read in case you need to use two different versions
of mono in the same system at the same time:

http://www.mono-project.com/Parallel_Mono_Environments

On 03/03/14 03:58, Edward Ned Harvey (mono) wrote:
> I had a problem, and I figured it out, thanks to this page:
> 
> http://www.cc.dtu.dk/?page_id=304
> 
>  
> 
> I have a system with mono built as follows:
> 
> ./configure --prefix=/usr/local/mono-3.2.8 && make && echo "" && echo
> "Done" && echo""
> 
> followed by
> 
> sudo make install && echo "" && echo "Ok Ok Ok" && echo ""
> 
>  
> 
> I would expect, based on the above webpage, that the ./configure && make
> should have built mono using LD_RUN_PATH set to
> /usr/local/mono-3.2.8/lib, but apparently it doesn't - Should that be
> considered a bug in the Makefile?
> 
>  
> 
> The workaround is to specify the LD_LIBRARY_PATH on each call to mono
> 
> env LD_LIBRARY_PATH=/usr/local/mono-3.2.8/lib
> /usr/local/mono-3.2.8/bin/mono FunWithFooBar.exe
> 
>  
> 
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list