« Return to Thread: mono on ubuntu

Re: mono on ubuntu

by Jonathan Pryor :: Rate this Message:

Reply to Author | View in Thread

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


_______________________________________________
Mono-list maillist  -  Mono-list@...
http://lists.ximian.com/mailman/listinfo/mono-list

 « Return to Thread: mono on ubuntu