RubixML / Tensor

A library and extension that provides objects for scientific computing in PHP.
https://rubixml.com
MIT License
223 stars 27 forks source link

How to install Tensor extension dependencies on Linux #23

Closed bounmed closed 3 years ago

bounmed commented 3 years ago

I got three errors when trying to install the tensor package using pecl. Error 1: /tmp/pear/temp/tensor/ext/tensor.c:25:10: fatal error: cblas.h: No such file or directory Error 2: /tmp/pear/temp/tensor/ext/include/linear_algebra.c:7:10: fatal error: lapacke.h: No such file or directory Error 3:

/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status

The solution is to install libopenblas, libraries and gfortran.

apt-get install libopenblas-dev
apt-get install liblapacke-dev
apt-get install gfortran
andrewdalpino commented 3 years ago

Thank you but we already have instructions to install Tensor extension dependencies in the README!

stillartem commented 1 year ago

@bounmed thank you, your solution have helped me