安裝 F# 3.0(Linux)
安裝 Mono 3.0
在 Linux 中從 Git Hub 安裝 Mono 3.0:
$ cd ~/repo
$ git clone git://github.com/mono/mono.git
正克隆到 'mono'...
remote: Counting objects: 904690, done.
remote: Compressing objects: 100% (145374/145374), done.
remote: Total 904690 (delta 761387), reused 898930 (delta 756444)
接收物件中: 100% (904690/904690), 191.12 MiB | 24 KiB/s, done.
處理 delta 中: 100% (761387/761387), done.
Checking out files: 100% (44735/44735), done.
$ cd mono
$ ./autogen.sh --prefix=/usr/local
......
mcs source: mcs
Engine:
GC: sgen and bundled Boehm GC with typed GC and parallel mark
TLS: __thread
SIGALTSTACK: yes
Engine: Building and using the JIT
oprofile: no
BigArrays: no
DTrace: no
LLVM Back End: no (dynamically loaded: no)
Libraries:
.NET 2.0/3.5: yes
.NET 4.0: yes
.NET 4.5: yes
MonoDroid: no
MonoTouch: no
JNI support: IKVM Native
libgdiplus: assumed to be installed
zlib: system zlib
Now type `make' to compile
$ make
$ sudo make install
$ sudo ln -s /usr/lib/libgdiplus.so /usr/local/lib/libgdiplus.so
安裝結果
$ mono --version
Mono JIT compiler version 3.0.10 (master/eff4cb5 2013年 04月 15日 星期一 18:46:05 CST)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
$ dmcs --version
Mono C# compiler version 3.0.10.0
安裝 F# 3.0
$ cd ~/repo
$ git clone https://github.com/fsharp/fsharp
正克隆到 'fsharp'...
remote: Counting objects: 4916, done.
remote: Compressing objects: 100% (1784/1784), done.
remote: Total 4916 (delta 3565), reused 4326 (delta 3023)
接收物件中: 100% (4916/4916), 33.68 MiB | 18 KiB/s, done.
處理 delta 中: 100% (3565/3565), done.
$ cd fsharp
$ ./autogen.sh
$ make
$ sudo make install
$ sudo gacutil -i lib/release/4.0/FSharp.Core.dll
Installed lib/release/4.0/FSharp.Core.dll into the gac (/usr/local/lib/mono/gac)
安裝結果
執行 F# 互動環境(fsharpi):
$ fsharpi
F# Interactive for F# 3.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
For help type #help;;
> System.Environment.Version.ToString();;
val it : string = "4.0.30319.17020"
> System.Environment.OSVersion.ToString();;
val it : string = "Unix 3.8.6.1"
> #quit;;
- Exit...
還有 F# 編譯器(fsharpc):
$ cat Test.fs
let dt = System.DateTime(1582, 10, 4)
printfn "%s" (dt.ToString("dddd yyyy-MM-dd"))
printfn "%s" (dt.AddDays(1.0).ToString("dddd yyyy-MM-dd"))
$ fsharpc Test.fs
F# Compiler for F# 3.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
$ mono Test.exe
星期一 1582-10-04
星期二 1582-10-05
參考資料
相關文章
- 安裝 F# 3.0(Windows)Windows
- 《F# 3.0 程式設計》封面解讀程式設計
- Linux AS3.0 下安裝Oracle9.2.0.4LinuxS3Oracle
- 安裝Vue3.0Vue
- zabbix3.0安裝
- VMware ESX 3.0安裝
- 用VMWARE 3.0安裝LINUX 的一點心得(轉)Linux
- Resin 3.0 安裝說明
- 安裝 Windows PowerShell 3.0【轉】Windows
- 安裝Debian Linux 3.0r1系統 (轉)Linux
- zabbix 3.0 安裝配置文件
- creo3.0在win10下安裝方法_win10系統如何安裝creo3.0Win10
- 原始碼安裝和配置zabbix 3.0 LST原始碼
- centos7 下安裝zabbix3.0CentOS
- eclipse3.0的安裝問題?Eclipse
- linux 安裝yum 安裝phpLinuxPHP
- Linux安裝解除安裝MySQLLinuxMySql
- zabbix agent 3.0部署文件 安裝部署
- 自動化安裝zabbix指令碼(3.0/3.2)指令碼
- 在CentOS7上安裝Zabbix3.0CentOS
- 安裝PG3.0詳細教程附圖
- 從硬碟安裝NetBSD2.0/3.0(轉)硬碟
- linux中安裝JDK linux中安裝Tomcat linux中安裝Mysql 及故障解析 linux系統安裝redisLinuxJDKTomcatMySqlRedis
- linux 解除安裝jdk和安裝LinuxJDK
- Linux下安裝、解除安裝mysqlLinuxMySql
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- linux下安裝snap安裝工具Linux
- 安裝 Logstash 2.2.0、ElasticSearch 2.2.0 和 Kibana 3.0Elasticsearch
- Linux系統安裝——Centos 7.6安裝LinuxCentOS
- ffmpeg安裝之linux編譯安裝Linux編譯
- 【 Linux 軟體安裝 】- 1 JDK安裝LinuxJDK
- Linux下JDK安裝與解除安裝LinuxJDK
- Linux 圖形介面安裝解除安裝Linux
- Linux-Ubuntu-mysql-安裝&解除安裝LinuxUbuntuMySql
- Linux安裝pycharmLinuxPyCharm
- mysql安裝 for LinuxMySqlLinux
- Kafka安裝-linuxKafkaLinux
- Linux安裝oracleLinuxOracle