jbuilder 安装失败:没有 opam-installer 工具
jbuilder install fails: no opam-installer tool
我正在尝试 运行 jbuilder install
安装我刚刚使用 jbuilder build @install
构建的 opam 包(它为我生成了一堆 *.install
文件)。但是,我收到以下错误:
$ jbuilder install
Sorry, you need the opam-installer tool to be able to install or uninstall packages.
I couldn't find the opam-installer binary :-(
根据 opam developer documentation,opam-installer
附带 OPAM。我正在使用 OPAM 版本 1.2.2.
$ opam --version
1.2.2
我在我的 ~/.opam 目录中尝试 运行ning find
,但没有找到任何 opam-installer
二进制文件。
$ find ~/.opam/ -name opam-installer
<blank>
这个 opam-installer
工具 jbuilder
需要什么,我在哪里可以找到它?
问题在于 OPAM 的安装方式。由于我使用的是 Fedora,所以我使用了以下命令 from the installation docs:
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin
然而,所有这一切只是为您提供 opam
二进制文件。这是我为获得随附工具所做的工作(opam-installer
和 opam-admin
):
- 从 github 下载 1.2.2 release(我选择了压缩包)
- 解压缩 (
tar xvf <filename>
)
- 运行以下命令
(取自github)
$ ./configure
$ make lib-ext
$ make
$ sudo make install
我正在尝试 运行 jbuilder install
安装我刚刚使用 jbuilder build @install
构建的 opam 包(它为我生成了一堆 *.install
文件)。但是,我收到以下错误:
$ jbuilder install
Sorry, you need the opam-installer tool to be able to install or uninstall packages.
I couldn't find the opam-installer binary :-(
根据 opam developer documentation,opam-installer
附带 OPAM。我正在使用 OPAM 版本 1.2.2.
$ opam --version
1.2.2
我在我的 ~/.opam 目录中尝试 运行ning find
,但没有找到任何 opam-installer
二进制文件。
$ find ~/.opam/ -name opam-installer
<blank>
这个 opam-installer
工具 jbuilder
需要什么,我在哪里可以找到它?
问题在于 OPAM 的安装方式。由于我使用的是 Fedora,所以我使用了以下命令 from the installation docs:
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin
然而,所有这一切只是为您提供 opam
二进制文件。这是我为获得随附工具所做的工作(opam-installer
和 opam-admin
):
- 从 github 下载 1.2.2 release(我选择了压缩包)
- 解压缩 (
tar xvf <filename>
) - 运行以下命令
(取自github)
$ ./configure
$ make lib-ext
$ make
$ sudo make install