I can't seem to find a compiler/plugin for mono. Does one exist?
相关问题
- Why doesn't php sleep work in the windows-subs
- F#: Storing and mapping a list of functions
- Installing Pydev for Eclipse throws error
- Error building gcc 4.8.3 from source: libstdc++.so
- what's the role of libopenssl-ruby?
相关文章
- 为什么nfs在不同版本的Linux下安装的文件都不一样
- Visual Studio Code, MAC OS X, OmniSharp server is
- Is there something like the threading macro from C
- FSharp.Data.JsonProvider - Getting json from types
- Bundling the Windows Mono runtime with an applicat
- Signing an F# Assembly (Strong name component)
- Learning F#: What books using other programming la
- Creating a list of functions using a loop in R
For reference, there are now Linux (.deb and .rpm) packages and a Mac OS X installer available at http://fsxplat.codeplex.com/ which will save you the work of having to manually copy around files and make your own launcher scripts.
You can download the F# zip file from Microsoft and then run (for example) "mono fsi.exe".
If you are on Ubuntu, follow the following three steps.
Run the following commands.
Start MonoDevelop. go to add-in manager, Gallery > Language bindings > F#, install.
This will give you the basic functionality which means you will be able to run "mono fsi.exe" and compiled F# apps as "mono myApp.exe".
Usefull tips:
It makes sense to create scripts for the compiler and F# interactive. i.e.:
/usr/local/bin/fsc
#!/bin/sh exec /usr/bin/mono /usr/local/src/FSharp-1.9.9.9/bin/fsc.exe $@
/usr/local/bin/fsi
#!/bin/sh exec /usr/bin/mono /usr/local/src/FSharp-1.9.9.9/bin/fsi.exe $@
F# interactive (fsi.exe) is trying to reference System.Windows.Forms by default so in order to run it WinForms support in Mono will be required
fsi.exe works better in Xterm than in Gnome Terminal.
Look also here for detailled installation instructions including F# PowerPack and MySQL connector: http://2sharp4u.wordpress.com/2010/09/03/installing-f-2-0-on-monolinux
Joe Pamer, one of the F# compiler authors, helped me get this working back in July, I wrote up the steps here: http://saladwithsteve.com/2010/07/building-fsharp-on-the-mac.html