[m-dev.] More mono issues.
Paul Bone
paul at bone.id.au
Thu Jan 10 13:14:33 AEDT 2013
I've also found that for some reason my resulting csharp programs do not
work without telling them where the Mercury .dlls are:
$ ./hello.exe
** (./hello.exe:23598): WARNING **: The following assembly referenced from /tmp/hello.exe could not be loaded:
Assembly: mer_std (assemblyref_index=0)
Version: 0.0.0.0
Public Key: 79bf35d62fe637e1
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/tmp/).
** (./hello.exe:23598): WARNING **: Could not load file or assembly 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1' or one of its dependencies.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1' or one of its dependencies.
File name: 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1'
$ mono hello.exe
** (hello.exe:23608): WARNING **: The following assembly referenced from /tmp/hello.exe could not be loaded:
Assembly: mer_std (assemblyref_index=0)
Version: 0.0.0.0
Public Key: 79bf35d62fe637e1
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/tmp/).
** (hello.exe:23608): WARNING **: Could not load file or assembly 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1' or one of its dependencies.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1' or one of its dependencies.
File name: 'mer_std, Version=0.0.0.0, Culture=neutral, PublicKeyToken=79bf35d62fe637e1'
But when I set the path:
$ MONO_PATH=/usr/local/stow/mercury_12.08beta-mc1/lib/mercury/lib/csharp mono hello.exe
Hello, world
--
Paul Bone
http://www.bone.id.au
More information about the developers
mailing list