he4rt / scylladb-php-driver

PHP Driver for ScyllaDB/Apache Cassandra
Other
105 stars 25 forks source link

Production build fails on Debian 12/php 8.2 #107

Open hir0pr0tagonist opened 2 weeks ago

hir0pr0tagonist commented 2 weeks ago

I successfully installed the prerequisites, but when invoking the cmake command in the root folder, I get CMake Error at cmake/FindPHPConfig.cmake:34 (find_program): Could not find PHP_CONFIG_EXECUTABLE using the following names: php-config Call Stack (most recent call first): CMakeLists.txt:37 (find_package)

I downloaded the latest zip from github. Thanks for any pointers.

CodeLieutenant commented 2 weeks ago

Have you installed php-config and can you confirm it exists on your system?

hir0pr0tagonist commented 2 weeks ago

Thanks for getting back ! Yes, it is installed and globally reachable from /usr/bin/php-config. Perhaps an item of note: at first, I wasn't successful in installing the prerequisites for the build, specifically python and python3-pip, but I got around that problem by using pipx - now python3 and python3-pip are installed correctly. Other than that, it's pretty much a vanilla system with no unusual configurations. Default Debian 12 + build prerequisites + your zip file downloaded, expanded and cmake'd.

CodeLieutenant commented 2 weeks ago

This is the second issue for debian, I'll be running tests on debian 12 to see what's going on, seems really strange

hir0pr0tagonist commented 2 weeks ago

If you need any log files or other diagnostics, please let me know - I'll be glad to help. Do you have a binary artefact of the php8.2-compatible build somewhere that I could try ? Just an idea.

DanielHe4rt commented 1 week ago

You can follow the @ciaran-moore example by giving us detailed information.

https://github.com/he4rt/scylladb-php-driver/issues/106