在Mac OSX和Ubuntu上的F#中,我在4.0中运行FSI时遇到错误 [英] in F# on MAC OSX and Ubuntu I get an error running FSI in 4.0

查看:115
本文介绍了在Mac OSX和Ubuntu上的F#中,我在4.0中运行FSI时遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要F#中的System.Numerics

I need System.Numerics in F#

编辑,我认为问题是fsi是否可以在4.0运行时中运行,如果可以的话,我该如何对其进行配置

EDIT I think the question is can fsi run with the 4.0 runtime and if so how do I configure it

我在Fsharp 4.0目录中运行"mono/bin/Fsi",在OSX 10.6.4和Ubuntu 10.1中都收到以下错误消息.

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

请注意,MAC上的路径不同,但是出现了相同的错误

Please note the paths are different on the MAC but I got the same error

错误FS0078:在以下任何位置均找不到文件'System.Numerics.dll' /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/

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/

在我的MAcbook上,我将mono 4.0 bin目录复制到上述路径和Fsi加载之一,但随后由于该错误而停止.

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.

错误FS0192:内部错误:无法访问:GetGlobals

Error FS0192: internal error: unreachable: GetGlobals

我还没有在Ubuntu笔记本电脑上尝试过

I have not tried this with the Ubuntu laptop

任何帮助将不胜感激.

G

推荐答案

使用cd/usr/lib/fsharp 然后是mono fsi.exe

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

您的问题使我开始搜索fsi(在我找不到它之前)

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

这篇关于在Mac OSX和Ubuntu上的F#中,我在4.0中运行FSI时遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆