Unable to load dynamic library cpp_ext.so
znddzxx112 opened this issue · 1 comments
znddzxx112 commented
HI I tried all the options given above but couldnt able to resolve my issue.
here is the details.
[root@centos6x8-lnmp cpp_ext]# cat /etc/redhat-release
CentOS release 6.8 (Final)
[root@centos6x8-lnmp cpp_ext]# php --version
PHP 7.1.0 (cli) (built: Apr 16 2017 12:16:13) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.1.0, Copyright (c) 1999-2016, by Zend Technologies
[root@centos6x8-lnmp cpp_ext]# php --ini
Configuration File (php.ini) Path: /usr/local/php7/lib
Loaded Configuration File: /usr/local/php7/lib/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
[root@centos6x8-lnmp cpp_ext]# php -i | grep extension
extension_dir => /usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303 => /usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303
[root@centos6x8-lnmp cpp_ext]# vim /usr/local/php7/lib/php.ini
# add extension
extension = cpp_ext.so
[root@centos6x8-lnmp cpp_ext]# ll /usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/cpp_ext.so
-rwxr-xr-x 1 root root 497495 6月 20 00:55 /usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/cpp_ext.so
[root@centos6x8-lnmp cpp_ext]# php echo.php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php7/lib/php/extensions/no-debug-non-zts-20160303/cpp_ext.so' - libphpx.so: cannot open shared object file: No such file or directory in Unknown on line 0