Can't install pdlib php 7.3 (NextCloud)
First I tried:
apt-get install libx11-dev
apt-get install libopenblas-dev liblapack-dev
git clone https://github.com/davisking/dlib.git
cd dlib/dlib
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install
git clone https://github.com/goodspb/pdlib.git
cd pdlib
phpize
./configure --enable-debug
make
sudo make install
That.... supposedly worked.
I even tried the test: apt-get install php-bz2 make test
14 passes
I'm running NextCloud, I have nano /etc/php/7.3/cli/php.ini and nano /etc/php/7.3/apache2/php.ini
I add extension="pdlib.so"
- to the bottom of the php.ini files. No joy
phpenmod pdlib doesn't complain, still NextCloud doesn't show pdlib as installed. But /etc/php/7.3/cli/ and /etc/php/7.3/mods-available have pdlib.ini.....
I am digging around issues here and find this: https://github.com/matiasdelellis/facerecognition/wiki/Installation#install-dlib - it should be more visible..... So I try:
echo "deb https://repo.delellis.com.ar buster buster" > /etc/apt/sources.list.d/20-pdlib.list
wget -qO - https://repo.delellis.com.ar/repo.gpg.key | sudo apt-key add -
apt update
apt install php7.3-pdlib
No joy. It's just not working.... I can run the test, but NextCloud (I assume uses php7.3 cli) isn't picking up pdlib.....
git clone https://github.com/matiasdelellis/pdlib-min-test-suite.git
make php-test
PHP Warning: Module 'pdlib' already loaded in Unknown on line 0
PHP Warning: Module 'pdlib' already loaded in Unknown on line 0
Welcome to pdlib min test suite for Facerecognition app...
First we try to open the models... Done
Processing file: input/Big Bang Theory.jpg
Number of faces detected: 3
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Processing file: input/Big Bang Theory.png
Number of faces detected: 7
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Face landmarks... Done
Face descriptor... Done
Have you found a solution to this issue? i tried everything but it's still not working
Have you found a solution to this issue? i tried everything but it's still not working
echo "deb https://repo.delellis.com.ar buster buster" > /etc/apt/sources.list.d/20-pdlib.list
wget -qO - https://repo.delellis.com.ar/repo.gpg.key | sudo apt-key add -
apt update
apt install php7.3-pdlib
The 7.3 easy install was the only thing that worked for me.
You have to add it like this
[pdlib]
extension="pdlib.so"
just add that in the end of the php ini file after that run
sudo systemctl restart php7.3-fpm