[Mono-list] Mono can't find libMonoPosixHelper.so
robertj at gmx.net
Tue Jun 21 05:42:30 EDT 2011
On 20.06.2011 22:01, Harry Wilkinson wrote:
> 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?
These additional env vars are required for building
other applications that depend on Mono, like MonoDevelop.
For example, if PKG_CONFIG_PATH is not set, the "configure"
step of applications with a canonical autotools build system
will not be able to find the non-standard location of Mono.
> 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
>>> don't provide packages), and installed with prefix /opt/mono-2.10/. I
>>> see libMonoPosixHelper.so at /opt/mono-2.10/lib/libMonoPosixHelper.so. I
>>> found a similar-looking bug in BugZilla
>>> 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
>>> I get the feeling that is not a sensible long-term solution, but if
>>> 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:
>> Mono-list maillist - Mono-list at lists.ximian.com
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list