[Mono-devel-list] Can't find mscorlib.dll?

Michi Henning michi at zeroc.com
Tue May 11 21:43:49 EDT 2004


I'm using the Windows binary installation of Beta 1.
The installation directory is /cygwin/mono. When
I run /cygwin/mono/bin/mcs, I get:

	cannot open assembly C:/cygwin/opt/mono/lib/mcs.exe

Looking around, I find mcs.exe in /cygwin/opt/mono/lib/mono/1.0/mcs.exe.

I look at /cygwin/mono/bin/mcs and find:

	export MONO_PATH=C:/cygwin/opt/mono/lib

So, I change it to:

	export MONO_PATH=C:/cygwin/opt/mono/lib:/cygwin/opt/mono/lib/mono/1.0

Now I get the following error:

	The assembly mscorlib.dll was not found or could not be loaded.
	It should have been installed in the `c:/mono/mb/install/lib' directory.

At this point, I'm stuck. I cannot get mcs to run. mscorlib.dll lives in /opt/mono/lib,
so I think it should be found. Adding C:/cygwin/opt/mono/lib to my Windows PATH and LIB
environment variables doesn't help, nor does copying mscorelib.dll into
C:/cygwin/opt/mono/lib/mono/1.0 or adding a link or shortcut to that directory.

What am I missing? (Under Linux, I had no problems getting things to work.)



More information about the Mono-devel-list mailing list