in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0

寵の児 提交于 2019-12-10 10:19:59

问题


I need System.Numerics in F#

EDIT I think the question is can fsi run with the 4.0 runtime 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


回答1:


Use cd /usr/lib/fsharp then mono fsi.exe

your question brought me to search for fsi (before I could not find it)




回答2:


Have you tried running sudo install_mono.sh from the F# directory? Also, I think you mean F# 2.0, right?




回答3:


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



来源:https://stackoverflow.com/questions/4156854/in-f-on-mac-osx-and-ubuntu-i-get-an-error-running-fsi-in-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!