Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install pdlib php 7.3 (NextCloud) #42

Open
voarsh2 opened this issue Dec 29, 2020 · 3 comments
Open

Can't install pdlib php 7.3 (NextCloud) #42

voarsh2 opened this issue Dec 29, 2020 · 3 comments

Comments

@voarsh2
Copy link

voarsh2 commented Dec 29, 2020

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
@baraapro
Copy link

baraapro commented Jan 3, 2021

Have you found a solution to this issue? i tried everything but it's still not working

@voarsh2
Copy link
Author

voarsh2 commented Jan 3, 2021

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.

@kgnfth
Copy link

kgnfth commented Aug 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants