I am having trouble running FsLex from F# PowerPack 2.0.0.0 on Mac. When I simply run the program I see:
$ mono /Library/Frameworks/Mono.framework/Versions/3.0.2/lib/mono/FSharpPowerPack-2.0.0.0/bin/fslex.exe Unhandled Exception: System.TypeLoadException: Could not load type '.$FSharp.PowerPack.FsLex.Driver' from assembly 'fslex, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809'. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type '.$FSharp.PowerPack.FsLex.Driver' from assembly 'fslex, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809'.
The steps I followed were:
sudo gacutil -i
on each DLL. sudo cp -r FSharpPowerPack-2.0.0.0 /Library/Frameworks/Mono.framework/Versions/3.0.2/lib/mono
install-mono.sh
script.What does the error mean and how do I fix it?
You might try reposting your question to the fsharp-opensource mailing list. That's where most of the collaboration around F# on Mono takes place, so you might have better luck getting an answer there.
A couple of quick suggestions to try first though: