on jammy (22.04) I got error message: Unable to load dynamic library 'facedetect.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-facedetect (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
# lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04
# apt-cache policy php-facedetect
php-facedetect:
Installed: 1.1.0-19-
Candidate: 1.1.0-19-
Version table:
*** 1.1.0-19-
500 http://
100 /var/lib/
# php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'facedetect.so' (tried: /usr/lib/
PHP 8.1.2-1ubuntu2.6 (cli) (built: Sep 15 2022 11:30:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.6, Copyright (c), by Zend Technologies
Detailed information:
Ubuntu 22.04 (jammy) with PHP 8.1, I got a warning message always when call php-cli after install php-facedetect package:
PHP Warning: PHP Startup: Unable to load dynamic library 'facedetect.so' (tried: /usr/lib/
I tried to find the location of the 'facedetect.so" file but I can not found.
I checked the installer package too, but it is not contain this file as well.
I installed the package directly with command: apt-get install php-facedetect
On Ubuntu 18.04 (with PHP7.2) the php-facedetect package works perfectly.
This seems to be a packaging error.
If you compare the contents in the Ubuntu package in jammy
https:/
with the contents in Debian
https:/
or with the Ubuntu package in bionic
https:/
then you see that the facedetect.so file is missing.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: php-facedetect 1.1.0-19-
ProcVersionSign
Uname: Linux 5.15.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
Date: Thu Nov 3 17:34:08 2022
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: php-facedetect
UpgradeStatus: No upgrade log present (probably fresh install)
A success story: /github. com/infusion/ PHP-Facedetect/ blob/master/ facedetect. cc and this can works with PHP 8.1 now (facedetect.so built and no warning messages) highgui4. 5d libopencv- imgproc4. 5d libopencv- objdetect4. 5d
I build sources from https:/
It needs to install some package manually with:
apt-get install libopencv-core4.5d libopencv-
Maybe it helps.