can not install gsl
lqduan opened this issue · comments
hi, when i install PhyloCSF, i meet bellow problem:
$ opam install batteries ocaml-twt gsl
[WARNING] Running as root is not recommended
[NOTE] Package batteries is already installed (current version is 2.8.0).
[NOTE] Package ocaml-twt is already installed (current version is 0.94.0).
The following actions will be performed:
∗ install gsl 1.22.0
Do you want to continue ? [Y/n] Y
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[gsl] Archive in cache
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of gsl failed at "jbuilder build -p gsl -j 4".
#=== ERROR while installing gsl.1.22.0 ========================================#
opam-version 1.2.2
os linux
command jbuilder build -p gsl -j 4
path /root/ocamlbrew/ocaml-4.05.0/.opam/system/build/gsl.1.22.0
compiler system (4.05.0)
exit-code 1
env-file /root/ocamlbrew/ocaml-4.05.0/.opam/system/build/gsl.1.22.0/gsl-151903-ffb3fd.env
stdout-file /root/ocamlbrew/ocaml-4.05.0/.opam/system/build/gsl.1.22.0/gsl-151903-ffb3fd.out
stderr-file /root/ocamlbrew/ocaml-4.05.0/.opam/system/build/gsl.1.22.0/gsl-151903-ffb3fd.err
stderr
[...]
Error: Unbound constructor Caml.Not_found
ocamlc src/config/.do_cdf.eobjs/do_cdf.{cmi,cmo,cmt} (exit 2)
(cd _build/default && /root/ocamlbrew/ocaml-4.05.0/bin/ocamlc.opt -w -40 -w -9 -strict-sequence -principal -short-paths -g -bin-annot -I src/config/.do_cdf.eobjs -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/base -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/base/caml -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/base/shadow_stdlib -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/sexplib -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/sexplib/0 -I /root/ocamlbrew/ocaml-4.05.0/.opam/system/lib/stdio -I src/config/.do_common.objs -no-alias-deps -o src/config/.do_cdf.eobjs/do_cdf.cmo -c -impl src/config/do_cdf.ml)
File "src/config/do_cdf.ml", line 43, characters 15-29:
Error: Unbound constructor Caml.Not_found
ocamlc src/mlgsl_randist.o
mlgsl_randist.c: 在函数‘ml_gsl_ran_multivariate_gaussian’中:
mlgsl_randist.c:56:3: 警告:隐式声明函数‘gsl_ran_multivariate_gaussian’ [-Wimplicit-function-declaration]
gsl_ran_multivariate_gaussian(Rng_val(rng), &v_mu, &m_l, &v_out);
=================================================
who can tell me how to solve this problem. thanks!