ocaml
Which tools to mange OCaml packages in my system (Linux)?
哪些工具可以管理我的系统( Linux )中的OCaml软件包?
I use OPAM to manage OCaml packages: http://opam.ocamlpro.com/index.html
我使用OPAM管理OCaml软件包: http ://opam.ocamlpro.com/index.html
To install it:
要安装它:
$ wgethttps://raw.githubusercontent.com/ocaml/opam/master/shell/opam_installer.sh
$ sh ./opam_installer.sh /usr/local/bin
More options are available here.
这里有更多选项。
To make opam
settings take effect, append this to ~/.bashrc
:
要使opam
设置生效,请将其附加到~/.bashrc
:
eval `opam config env`
Some frequent usages:
一些常用用法:
opam list # List all available packages
opam search QUERY # List packages with QUERY in their name or description
opam info PACKAGE # Display information about PACKAGE
opam update # Update the packages database
opam install PACKAGE # Download, build and install the latest version of PACKAGE
More usages are available here.
这里有更多用法。
Another good tools is GODI: http://godi.camlcity.org/godi/index.html
另一个好的工具是GODI: http ://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 GODI:
另一个选择是GODI :
It can be downloaded and installed following the tutorial here: http://godi.camlcity.org/godi/get_godi.html
可以按照此处的教程下载和安装: http : //godi.camlcity.org/godi/get_godi.html
Sadly, GODI is to be shutdown in September 2013. Check the announcement by Gerd Stolpmann: http://blog.camlcity.org/blog/godi_shutdown.html
不幸的是,GODI将于2013年9月关闭。请查看Gerd Stolpmann的公告: http : //blog.camlcity.org/blog/godi_shutdown.html
翻译自: https://www.systutorials.com/good-tools-to-manage-ocaml-packages/
ocaml