我正在尝试在Manjaro上运行的计算机上安装Owl(我以前曾将其安装在Ubuntu上运行的计算机上没有问题)。
但是,似乎无法识别BLAS(无论我使用的是blas
还是openblas
,以下输出都会出现,我尝试用另一个替换)
$ opam install owl
The following actions will be performed:
∗ install conf-openblas 0.2.0 [required by owl]
∗ install owl 0.5.0
===== ∗ 2 =====
Do you want to continue? [Y/n] Y
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[owl.0.5.0] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of conf-openblas failed at "/home/xxxx/.opam/opam-init/hooks/sandbox.sh build sh -exc cc $CFLAGS test.c -lopenblas".
#=== ERROR while compiling conf-openblas.0.2.0 ================================#
# context 2.0.3 | linux/x86_64 | base-bigarray.base base-threads.base base-unix.base ocaml-system.4.07.1 | https://opam.ocaml.org#6f407d9b
# path ~/.opam/system/.opam-switch/build/conf-openblas.0.2.0
# command ~/.opam/opam-init/hooks/sandbox.sh build sh -exc cc $CFLAGS test.c -lopenblas
# exit-code 1
# env-file ~/.opam/log/conf-openblas-26648-05296d.env
# output-file ~/.opam/log/conf-openblas-26648-05296d.out
### output ###
# + cc test.c -lopenblas
# test.c:1:10: fatal error: cblas.h: No such file or directory
# #include <cblas.h>
# ^~~~~~~~~
# compilation terminated.
使用depext没有帮助:
$ opam depext conf-openblas.0.2.0
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=manjaro, os-family=arch
# No extra OS packages requirements found.