[Mono-list] Mono can't find libMonoPosixHelper.so

Harry Wilkinson hwilkinson at mdsol.com
Mon Jun 20 06:55:26 EDT 2011


Hi,

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
(#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.

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
here<https://raw.github.com/nathanb/iws-snippets/master/mono-install-scripts/ubuntu/install_mono-2.10.sh>,
which effectively build & installs like this:

./configure --prefix=/opt/mono-2.10
make
sudo make install

Any advice would be very welcome.

Thanks.

Harry Wilkinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110620/040e6e3a/attachment.html 


More information about the Mono-list mailing list