in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0
I need System.Numerics in F#
EDIT I think the question is can fsi run with the 4.0 runtim开发者_JAVA百科e and if so how do I configure it
I run "mono /bin/Fsi" in the Fsharp 4.0 dir I get the following error in both OSX 10.6.4 and Ubuntu 10.1.
I am sure I am missing a path or something
Please note the paths are different on the MAC but I got the same error
error FS0078: Unable to find the file 'System.Numerics.dll' in any of /opt/mono-2.8/lib/mono/2.0 /home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin /home/gary/Downloads/FSharp-2.0.0.0/v4.0/bin/
On my MAcbook I copied the mono 4.0 bin dir to one of the above paths and Fsi loads but then it stops with this error.
Error FS0192: internal error: unreachable: GetGlobals
I have not tried this with the Ubuntu laptop
Any help would be appreciated.
G
Use cd /usr/lib/fsharp then mono fsi.exe
your question brought me to search for fsi (before I could not find it)
Have you tried running sudo install_mono.sh
from the F# directory? Also, I think you mean F# 2.0, right?
Make sure that your Mono is installed properly. I don't have my mac at work, so I use my Ubuntu desktop as example.
System.Numerics.dll belongs to Mono not F#. In my installation (Mono 2.8.1 and Ubuntu 10.10), that file is under the following directory
/usr/local/lib/mono/4.0/System.Numerics.dll
精彩评论