When upgrading from PHP 5.6 to PHP 7.4, you can directly replace the compiled installation package. When you enter PHP – V, you will report an error while loading shared libraries: libonig. So. 5: cannot open share directory
#php -v
#php: error while loading shared libraries: libonig.so.5:cannot open share directory
Solution:
Step 1
Modify /ect/ld.so.conf
Add the following line
#vim /etc/ld.so.conf
include ls.so.conf.d/*.conf
/usr/local/lib
/usr/local/x264/lib
/usr/local/openssl/lib
/usr/local/python3.7.1/lib
After saving Execute ldconfig
#ldconfig
Step 2:
Install oniguruma library
Download Link:
oniguruma-6.8.2-1.el7.x86 64.rpm
oniguruma-devel-6.8.2-1.el7.x86 64.rpm
Use the follow commands to install:
#rpm -ivh oniguruma-devel-6.8.2-1.el7.x86_64
#rpm -ivh oniguruma-6.8.2-1.el7.x86_64
Then run the command PHP – V Perfect display
If installation error
Generating autotools files.
./autogen.sh: line 6: autoreconf: command not found
Solution:
[[email protected] oniguruma-6.9.4]# yum install autoconf automake libtool
Read More:
- How to Solve PHP Error: no package’oniguruma’ found
- [Solved] Centos7 xmapp Install Error: error while loading shared libraries: libc.so.6
- Error during PHP installation and configuration error: off_t undefined; check your library configuration
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found
- [Solved] PostgreSQL configure: error: readline library not found
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- PHP solves the problem that composer exceeds the memory size Allowed memory size
- Configure: error: Cannot find libz error appears when brew installs php70
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- Mac PHP Fatal error: Class ‘Memcache’ not found
- [Solved] cURL error 60: SSL certificate problem: unable to get local issuer certificate
- composer Error while processing content unencoding: Unknown failure within decompression softwar
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- Laravel-admin php artisan admin:install error reporting problem solution
- How to Solve phpExcel Error: ERR_INVALID_RESPONSE
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- [Solved] yii error: Setting unknown property: yii\console\Request: :cookieValidationKey
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- [Solved] getObject: FAILED RequestCoreException: cURL resource: Resource id #78; cURL error: SSL certificate
- How to solve Magento 500 internal server errors