-
Notifications
You must be signed in to change notification settings - Fork 19
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
make test: "bz2 extension missing" but php-bz2 is installed #34
Comments
One possiblity is the And if you do have multiple PHP versions, you'll want to specify the version in both the NOTE: if you do need to start versioning the Example of wrong PHP being used during
|
Thanks for your reply however I only have php7.4 installed (also the php7.4-bz2 module). I tried your phpize and configure commands anyway but with the same result. |
Good, sounds like everything's at least building against the correct libraries. One last thing and I was able to get from reproducing the single skip to a full 15/15 passing. The test suite copies the default PHP ini file ( --- Makefile.orig 2021-11-11 18:54:25.864750573 -0500
+++ Makefile 2021-11-11 19:01:00.477879176 -0500
@@ -141,6 +141,7 @@
INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
fi; \
+ sed -i 's#^;extension=bz2#extension=/usr/lib/php/20190902/bz2.so#g' $(top_builddir)/tmp-php.ini; \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
With that I got a full 15/15 test run:
|
I have the same problem, php8.1:
|
Had to add the sed line too. Using the variable $(EXTENSION_DIR) should make it generic for custom installation paths... +++ Makefile
@@ -144,9 +144,9 @@
if test "$$INI_SCANNED_PATH"; then \
INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
fi; \
+ sed -i 's#^;extension=bz2#extension=$(EXTENSION_DIR)/bz2.so#g' $(top_builddir)/tmp-php.ini; \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \ |
It looks like |
When I run make test it skips 1 test with the following message:
SKIP Full test for face recognition - download models, detect faces, landmark detection and face recognition. [tests/integration_face_recognition.phpt] reason: bz2 extension missing
However the bz2 extension is installed and face recognition in nextcloud is working...
The text was updated successfully, but these errors were encountered: