phayes / geoPHP

Advanced geometry operations in PHP
https://geophp.net
Other
861 stars 262 forks source link

Can not execute geos-php on Amazon Linux2 with php7.4 or php8.0 #193

Open kimtaedoo opened 2 years ago

kimtaedoo commented 2 years ago

Our system use geoPHP on Amazon Linux 2(AL2) with php7.3. It is well running.

We try this system update to php7.4. But geos-php installed on AL2 with php7.4, exec php -v messages from this

[root@ip-xxx-xxx-xxx yum.repos.d]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 'geos.so' (tried: /usr/lib64/php/modules/geos.so (/usr/lib64/php/modules/geos.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/geos.so.so (/usr/lib64/php/modules/geos.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I don't know why it is? This problem is php8.0 check to same. geos-php is can not use on php7.4 or php8.0?

BathoryPeter commented 2 years ago

Seems to me an issue with your geos-php build, geos.so.so has wrong name. Try to link geos.so.so to geos.so.

But this issue is not related to geoPHP.