[MonoDevelop] running outside MD enviironment

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Feb 4 23:16:05 EST 2008


On Feb 4, 2008 5:34 AM, Dan Smithers <dsmithers at talktalk.net> wrote:
> I would like to run my application directly from the command line. I get
> an assembly error :- can't find Mono.Posix version 2.0.0.0
>
> It runs fine from inside MD so the assembly must be present.

MD makes local copies of assemblies that aren't in the GAC.

> I have tried adding /usr/local/lib/mono/2.0 to LD_LIBRARY_PATH but I
> still get the same error.

Mono doesn't use LD_LIBRARY_PATH for managed libraries -- use
MONO_GAC_PREFIX or MONO_PATH, as documented here:
http://www.mono-project.com/Parallel_Mono_Environments

FWIW, if you have multiple Monos you should really be careful to keep
them separated. In particular:
http://mjhutchinson.com/journal/2007/11/08/how_not_break_mono

> There appears to be an entry in the GAC.

As evidenced by "gacutil -l"?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list