Jordan Savant # Software Engineer

FANN Install for PHP in Ubuntu

FANN, Fast Artificial Neural Network is written in C. Other languages can wrap its operating system installation. This is how I installed it for PHP (Feb 2018).

sudo apt-get update
sudo apt-get install libfann-dev
sudo apt-get install php-dev
git clone --recursive https://github.com/bukka/php-fann.git
cd php-fann
phpize
./configure --with-fann
make
sudo make install

Then edit the php ini file and add the extenion:

extension=fann.so