Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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

like image 834
Gee Avatar asked Nov 20 '25 06:11

Gee


1 Answers

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

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

like image 144
Juergen Dabel Avatar answered Nov 21 '25 23:11

Juergen Dabel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!