mono 3.10 on slackware 64 bit

Submit to reddit

I installed mono using sbopkg and found the following issue while trying to run keepass:

System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Syscall ---> System.DllNotFoundException: /usr/lib/
at (wrapper managed-to-native) Mono.Unix.Native.Syscall:get_at_fdcwd ()
at Mono.Unix.Native.Syscall..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---

The fix was to edit /etc/mono/config and remove the /usr/lib/ path from the definition so that it looks like this:

<dllmap dll="MonoPosixHelper" target="" os="!windows" />