[Mono-list] Mono can't find libMonoPosixHelper.so
hwilkinson at mdsol.com
Mon Jun 20 06:55:26 EDT 2011
I've been having a problem porting a .Net app to Mono: I'm getting a
NullReferenceException constructing a GZipStream, and when I turn on logging
(via MONO_LOG_LEVEL) I see several messages like this:
Mono: DllImport unable to load library 'libMonoPosixHelper.so: cannot open
shared object file: No such file or directory'.
As far as I can tell, the compression features of GZipStream are delegated
to some native code that is in libMonoPosixHelper.so, so I am guessing this
is the source of my problems.
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
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.
So my question is, am I doing something wrong? Is there something special I
need to do when installing in a non-standard folder? I've been using the
helpful Ubuntu Mono installation script
which effectively build & installs like this:
sudo make install
Any advice would be very welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list