[Mono-list] Feodra Core 5 and LD_LIBRARY_PATH

Jonathan Pryor jonpryor at vt.edu
Fri Apr 7 07:06:28 EDT 2006

On Fri, 2006-04-07 at 12:05 +1000, Paddy Joy wrote:
> I installed mono and monodevelop from SVN, first thing I did after 
> installing FC5 was remove the mono packages ;-)

Then where did you install mono to?  Which prefix?

The default prefix is /usr/local,
so /usr/local/lib/libMonoPosixHelper.so would be the correct location
for libMonoPosixHelper.so.

However, as mentioned earlier, /usr/local/lib is not part of the default
library search path.  You can modify the library search path by
adding /usr/local/lib to /etc/ld.so.conf and running ldconfig(1) as the
`root' user, OR you can add /usr/local/lib to your LD_LIBRARY_PATH
environment variable before starting any mono applications.

> I think the easiest thing for me to do would be to re-install in the 
> correct location, would you agree? Or will I then have two versions of 
> the libraries causing myself grief in the future?

As a general rule, you shouldn't install your own software into the /usr
prefix, you should leave this prefix to packages provided with your
distro.  So /usr/local is the correct prefix to use, but this does
require adding /usr/local/lib to the library search path, as mentioned

This would need to be done for *all* apps which install shared libraries
under /usr/local, not just Mono.

 - Jon

More information about the Mono-list mailing list