Search code examples
f#monofsi

F# interactive fails to load with "error FS0078: Unable to find the file 'System' in any of..."


I am running Fedora 16, which gives me mono 2.10.5, but no F#. I have previously used a locally compiled version of mono, but am now using the packaged version. I am using the latest version of F# from the github repository, installed to a local directory (I do not have root on this machine).

When I run fsharpi (or mono path/to/file/fsi.exe) I receive the following error:

mono /home/scratch/local2/lib/mono/4.0/fsi.exe 

Microsoft (R) F# 2.0 Interactive build (private)
Copyright (c) 2002-2011 Microsoft Corporation. All Rights Reserved.

For help type #help;;

> 

error FS0078: Unable to find the file 'System' in any of
 /usr/lib64/mono/4.0
 /home/scratch/.../<current directory>
 /home/scratch/local2/lib/mono/4.0/

Googling yields some similar results, but the missing file is always a .dll. System.dll is certainly in /usr/lib64/mono/4.0.


Solution

  • Well, I reverted to a slightly older version of F# from github before a recent merge from codeplex and everything works correctly. I have filed this as an issue here: https://github.com/fsharp/fsharp/issues/16