[Mono-list] mono on ubuntu

Jonathan Pryor jonpryor at vt.edu
Thu Jun 5 10:43:37 EDT 2008


On Tue, 2008-06-03 at 15:22 -0700, hobbitmage wrote:
> I have a binary that I'm running thru mono.
> 
> i.e. /usr/local/bin/mono foo.exe
> 
> it's running in a startup script.  /etc/init.d/mono
> 
> this script runs fine when run from the command line, but when I use a
> launcher on ubuntu I can't start it.
> 
> since I can run it from the command line, it's not a permissions thing.  Any
> thoughts?

As a guess, it's an environment problem.  If you're
using /usr/local/bin/mono, then you likely need to have /usr/local/lib
in LD_LIBRARY_PATH, which (presumably) you do in your login shell, but
it likely is NOT being set when run during startup (because it's not
executing via your login shell, but the boot-time shell).

So, as a guess, edit /etc/init.d/mono and add:

	export LD_LIBRARY_PATH=/usr/local/lib

 - Jon




More information about the Mono-list mailing list