[Mono-list] Mono can't find libMonoPosixHelper.so
Harry Wilkinson
hwilkinson at mdsol.com
Mon Jun 20 16:01:49 EDT 2011
Thanks for the info Robert.
When I read the details of the aforementioned bug, and saw the suggested
workaround, I thought that meant the LD_LIBRARY_PATH solution was not the
way it was designed to work.
So, just to be perfectly clear, does this mean that changing LD_LIBRARY_PATH
(and all the other env vars mentioned in that article, I suppose) is the
'correct' way to install Mono in a non-standard location? Have I just been
lucky not to encounter any other problems so far without that setting?
I am not familiar with the /etc/ld.so.conf setup but it sounds like a nicer
way to split things out. I will take a look.
Thanks again.
Harry
On 20 June 2011 20:10, Robert Jordan <robertj at gmx.net> wrote:
> On 20.06.2011 12:55, Harry Wilkinson wrote:
> > I am using Mono 2.10.2, built from source on an Ubuntu server (since
> Ubuntu
> > don't provide packages), and installed with prefix /opt/mono-2.10/. I
> can
> > see libMonoPosixHelper.so at /opt/mono-2.10/lib/libMonoPosixHelper.so. I
> > found a similar-looking bug in BugZilla
> > (#202210<https://bugzilla.novell.com/show_bug.cgi?id=602210>),
> > and one of the suggested workarounds there works for me - if I set
> > LD_LIBRARY_PATH to /opt/mono-2.10/lib then everything starts working
> fine.
> > I get the feeling that is not a sensible long-term solution, but if
> that's
> > the only option then I guess I'll take it.
>
> This is already an extra-very-long-term solution, as it's almost
> 30 years old. It's how Unix deals with shared objects.
>
> Instead of setting LD_LIBRARY_PATH you may want to add mono's lib
> dir to /etc/ld.so.conf or /etc/ld.so.conf.d/mono or wherever
> your system is configuring LD paths.
>
> Alternatively, follow these docs:
> http://www.mono-project.com/Parallel_Mono_Environments
>
> Robert
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110620/e9ce6bbe/attachment.html
More information about the Mono-list
mailing list