krakjoe / tombs

Detect unused code in production
Other
433 stars 20 forks source link

`/etc/php/7.3/apache2/php.ini' not recognized #13

Closed Entretoize closed 3 years ago

Entretoize commented 4 years ago

I'm trying to build tombs with : ./configure /etc/php/7.3/apache2/php.ini but it fails with the following errors:

checking build system type... Invalid configuration `/etc/php/7.3/apache2/php.ini': machine `/etc/php/7.3/apache2/php.ini' not recognized
configure: error: /bin/bash build/config.sub /etc/php/7.3/apache2/php.ini failed
root@creforma:~/tombs# ./configure /etc/php/7.3/apache2/php.ini
krakjoe commented 3 years ago

You have the command wrong, see ./configure --help

Entretoize commented 3 years ago

I do: ./configure --with-php-config=/etc/php/7.4/apache2/php.ini

It gives: configure: error: Cannot find php-config. Please use --with-php-config=PATH But this what I'm doing !

Entretoize commented 3 years ago

Ok, I've found my mistake, and been able to build. I added the zend_extension=tombs.so but the php -v only write about opcache, do I need to move tombs.so somewhere and/or add the absolute path ?

Entretoize commented 3 years ago

?