[英]problems occurred when installing slap package by using opam in ocaml
I try to do some linear algebra calculating in OCaml. 我尝试在OCaml中进行一些线性代数计算。 And I had installed Lacaml package.
而且我已经安装了Lacaml软件包。 Knowing the slap package is more user friendly, I decided to use this package instead of Lacaml.
知道slap软件包更加用户友好,所以我决定使用此软件包代替Lacaml。 I did install slap package successfully by typing "
opam install slap
". 我确实通过键入“
opam install slap
”成功安装了slap软件包。 But when compiling a file by typing " ocamlfind ocamlc -linkpkg -package slap,slap.ppx -short-paths jacobi.ml
", the error 但是,通过键入“
ocamlfind ocamlc -linkpkg -package slap,slap.ppx -short-paths jacobi.ml
”来编译文件时,错误
"ocamlfind: Package `slap_ppx' not found"
occurred. 发生了。 I has been trying a lot to deal with it, but can't.
我一直在努力解决它,但是不能。 I has tried to make the package by hand.
我试图手工制作包装。 But a problem called
但是一个问题叫做
"File "ppx/ppx_slap.ml", line 21, characters 0-15:
Error: Unbound module Ast_helper"
occurred. 发生了。 I had no idea the "Ast_helper" module is in which package.
我不知道“ Ast_helper”模块位于哪个软件包中。
Above is all descriptions about my problems. 以上是关于我的问题的所有描述。 If someone had installed the slap, please help me.
如果有人安装了该耳光,请帮助我。
I'm developing slap package. 我正在开发巴掌包。 Your command works well for me, but opam sometimes fails to install packages.
您的命令对我来说效果很好,但是opam有时无法安装软件包。 I have encountered broken dependency for slap on opam, but
opam update
and opam upgrade
solves such problems. 我遇到了打断opam的依赖关系,但是
opam update
和opam upgrade
解决了此类问题。 Maybe it's helpful for you. 也许对您有帮助。
ppx_tools
is not required for slap package because compiler-libs of OCaml 4.02 supports Ast_helper
. slap软件包不需要
ppx_tools
,因为OCaml 4.02的编译器库支持Ast_helper
。
The Ast_helper
module is used in PPX development, so it makes sense that a PPX would require it, but I'm surprised that installation succeeded if this is the case. Ast_helper
模块用于PPX开发,因此PPX需要它是有道理的,但是我很惊讶这种情况下安装成功。 I believe that this module is included in the ppx_tools
package, which may be installed with the command 我相信该模块包含在
ppx_tools
软件包中,可以通过以下命令安装
opam update && opam install ppx_tools
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.