Hi Trisquel Users!

I need to install CBLAS and/or BLIS in Trisquel, in order to use them
from a wrapper library (https://github.com/lloda/guile-ffi-cblas).

So far I did the following:

1. I installed a lot of packages from the repositories:

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
sudo apt-get install liblapack-dev liblapacke-dev
sudo apt-get install libopenblas-dev libopenblas-base

But guile-ffi-cblas does not find libcblas:

;;; In procedure dynamic-link: file: "libcblas", message: "file not found"

Setting lapack as CBLAS library for guile-ffi-cblas does also not work:

GUILE_FFI_CBLAS_LIBNAME=liblapack.a GUILE_FFI_CBLAS_LIBPATH=/usr/lib/ guile -L 
mod -s test/test-ffi-cblas.scm

Results in:

;;; In procedure dynamic-link: file: "/usr/lib/liblapack.a", message: "file not 
found"

Just to be sure, I checked again:

$ ls /usr/lib/ | grep lapack
lapack
liblapack.a
liblapack_atlas.a
liblapack_atlas.so
liblapack_atlas.so.3
liblapacke.a
liblapacke.so
liblapacke.so.3
liblapacke.so.3.6.0
liblapack.so
liblapack.so.3
liblapack.so.3gf

So I guess it does not work the way I tried it.

So I looked around and downloaded the CBLAS code from
http://www.netlib.org/blas/#_cblas and found the following supposed way
to compile it:
https://askubuntu.com/questions/333892/unable-to-install-cblas-on-ubuntu/853516#853516.
However, there is no `blas_LINUX.a` on my whole system, so I cannot
change change the `BLLIB = …` line as suggested. The following website
also tells me to adapt that line:
https://avulanov.blogspot.com/2015/03/cblas-compilation-as-shared-library.html.

When I try running the `make` without a change in `BLLIB = …`, I get of
course an error, because the path in the downloaded source code in
`Makefile.in` is simply wrong.

In summary, I cannot find libcblas for installation in the repos, but I
also cannot build it, because I do not have that `blas_LINUX.a` file.

What is the usual process of getting CBLAS onto my system, either by
packages from official repositories or compiling it?

Thanks for any help,
Zelphir

Reply via email to