LoginSignup
5
3

More than 5 years have passed since last update.

FreeBSDにOCamlをインストール

Posted at

関数型言語の勉強のためにOCamlをインストールしてみます。
どうやらOCamlをインストールするため、パッケージマネージャであるOPAMを使うようです。

Install OCaml

1.インストール
% cd /usr/ports/devel/ocaml-opam
% sudo make install

2.初期化
% opam init
% eval `opam config env`

3.バージョンを指定
% opam switch 4.02.1
% eval `opam config env`

4.確認
% ocaml -version
The OCaml toplevel, version 4.02.1

% opam switch list
system I system System compiler (4.01.0)
4.02.1 C 4.02.1 Official 4.02.1 release
-- -- 3.11.2 Official 3.11.2 release
-- -- 3.12.1 Official 3.12.1 release
-- -- 4.00.0 Official 4.00.0 release
-- -- 4.00.1 Official 4.00.1 release
-- -- 4.01.0 Official 4.01.0 release
-- -- 4.02.0 Official 4.02.0 release

とりあえずインストール出来たようです。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3