本文共 1699 字,大约阅读时间需要 5 分钟。
ocaml
Which tools to mange OCaml packages in my system ()?
哪些工具可以管理我的系统( )中的OCaml软件包?
I use OPAM to manage OCaml packages:
我使用OPAM管理OCaml软件包: ://opam.ocamlpro.com/index.html
To install it:
要安装它:
$ wget://raw.githubusercontent.com/ocaml/opam/master/shell/opam_installer.sh$ sh ./opam_installer.sh /usr/local/bin
More options are available .
有更多选项。
To make opam
settings take effect, append this to ~/.bashrc
:
要使opam
设置生效,请将其附加到~/.bashrc
:
eval `opam config env`
Some frequent usages:
一些常用用法:
opam list # List all available packagesopam search QUERY # List packages with QUERY in their name or descriptionopam info PACKAGE # Display information about PACKAGEopam update # Update the packages databaseopam install PACKAGE # Download, build and install the latest version of PACKAGE
More usages are available .
有更多用法。
Another good tools is GODI:
另一个好的工具是GODI: ://godi.camlcity.org/godi/index.html
A tip I find to reinstall OCaml again found after I deleted the ~/.opam
directory by accident:
我偶然删除~/.opam
目录后发现重新安装OCaml的提示:
Initialize your opam profile:
初始化您的opam个人资料:
opam init
Install OCaml (note: NOT by opam install
):
安装OCaml(注意:不是通过opam install
):
opam switch 4.00.1
You can check all available versions of OCaml by:
您可以通过以下方式检查OCaml的所有可用版本:
opam switch
On Ubuntu/Linux Mint, you can install opam from the repository:
在Ubuntu / Linux Mint上,您可以从存储库安装opam:
$ sudo aptitude install opam
Another option is :
另一个选择是 :
It can be downloaded and installed following the here:
可以按照此处的下载和安装: :
Sadly, GODI is to be shutdown in September 2013. Check the announcement by Gerd Stolpmann:
不幸的是,GODI将于2013年9月关闭。请查看Gerd Stolpmann的公告: :
翻译自:
ocaml
转载地址:http://eaowd.baihongyu.com/