2022 Sep. 15.
2021 Nov. 21.
2021 May 02.
2021 Apr. 29.
出典
Manjaro (Arch) でもGoogle Drive File Streamを使いたい話 - Qiita
opamを用いたOCamlプロジェクトのセットアップ方法
opamをインストール
(その後のユーザー権限での作業時を誤ってroot権限で実行しないために $ sudo で進めること ) $ sudo pacman -Syu ## パッケージのアップデート $ sudo pacman -S --needed mercurial darcs make m4 gcc patch ed pkg-config opam ## opam のインストール
opamの初期化
$ opam init
[NOTE] Will configure from built-in defaults.
Checking for available remotes: rsync and local, git, mercurial, darcs. Perfect!
<><> Fetching repository information <><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
<><> Required setup - please read ><><><><><><><><><><><><><><><><><><><><><><>
In normal operation, opam only alters files within ~/.opam.
However, to best integrate with your system, some environment variables
should be set. If you allow it to, this initialisation step will update
your bash configuration by adding the following line to ~/.bash_profile:
test -r ${HOME}/.opam/opam-init/init.sh && . ${HOME}/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
Otherwise, every time you want to access your opam installation, you will
need to run:
eval $(opam env)
You can always re-run this setup with 'opam init' later.
Do you want opam to modify ~/.bash_profile? [N/y/f]
(default is 'no', use 'f' to choose a different file) f
Enter the name of the file to update: ~/.profile
A hook can be added to opam's init scripts to ensure that the shell remains in
sync with the opam environment when they are loaded. Set that up? [y/N] y
User configuration:
Updating ~/.profile.
[NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc.
<><> Creating initial switch (ocaml-system>=4.02.3) ><><><><><><><><><><><><><>
<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bigarray.base
-> installed base-threads.base
-> installed base-unix.base
-> installed ocaml-system.4.11.1
-> installed ocaml-config.1
-> installed ocaml.4.11.1
Done.
# Run eval $(opam env) to update the current shell environment
opam読み込み
$ eval $(opam env)
インストールされたopamの確認
$ ocaml --version
システムからログアウトし再度ログインする
PATH確認
${HOME}/.opam/default/binがPATHに無ければ、~/.profileに書き込む。
( ~/.profile )
PATH="${HOME}/.opam/default/bin:${PATH}"
export PATH
google-drive-ocamlfuseをインストール
$ opam install google-drive-ocamlfuse ( conf-pkg-config.2でエラーとなったら ) $ opam depext conf-pkg-config.2
シェル環境のアップデート
$ eval $(opam env)
システムからログアウトし再度ログインする
googleドライブとの同期
googleドライブを同期するocamlfuseをubuntuにインストール - rokkonet の「Googleアカウント認証」以降を設定する。