Install Lapack from source
Note. Tested on Ubuntu 16.04.
Set prerequisites:
sudo apt-get install php5-dev git svn cmake gfortran liblapack-dev
Follow the instructions here (copied for convenience):
svn co https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk lapack cd lapack mkdir build cd build cmake -D BUILD_SHARED_LIBS=ON -D LAPACKE=ON ../ make sudo make install
This will create a shared Lapack library. Now clone the php extension from the source:
git clone https:
And follow the instructions described there :
cd php-lapack phpize ./configure make sudo make install
Check if the extension is installed: php -m | grep -i lapack php -m | grep -i lapack
Please note that the extension is most likely incompatible with PHP 7, as it has not been updated for more than 5 years.
Pete
source share