[Mono-list] Creating a stand-alone linux executable

Tim Martin tim at asymptotic.co.uk
Wed Jul 21 05:32:46 EDT 2010


On 20/07/2010 4:01 PM, Robert Jordan wrote:
> It's due to a missing native SO (libMonoPosixHelper.so).
> Mkbundle does not embed native libraries (excepting
> libmono when the --static option is used).
>
> Those libraries must be deployed manually (side-by-side
> with your bundle).
>    
OK, thanks. I've deployed libMonoPosixHelper.so to the test box. I now 
have the executable file and .so file in the same directory. It only 
works if I add the directory to the LD_LIBRARY_PATH - I can probably 
work around this, but is there a better way to configure it? Can the 
current directory be added to the rpath, or something?

Thanks to Alexander as well, --deps appears to work OK if I list the 
application-specific DLLs on the command line (Mono deps are pulled in 
automatically). I'm not sure why this is, but it works well enough for me.

Tim


More information about the Mono-list mailing list