[Python.NET] DllMap on Mono

Sanghyeon Seo sanxiyn at gmail.com
Wed Oct 17 13:52:33 CEST 2007

http://pythonnet.sourceforge.net/readme.html says:
Note that if you are running under Mono on a *nix system, you will
need to have a compatible version of Python installed. You will also
need to create a symbolic link to the copy of libpython2.x.so (in your
existing Python installation) in the PythonNet directory. This is
needed to ensure that the mono interop dll loader will find it by
name. For example:
ln -s /usr/lib/libpython2.4.so ./python24.so

Which works fine, But the "official" way to do this is to use a Mono
feature called DllMap, which is documented here:

In practice, this means you create a file named
python.runtime.dll.config, with content:
  <dllmap dll="python24" target="libpython2.4.so.1" os="!windows"/>

Seo Sanghyeon

More information about the PythonDotNet mailing list