安装完 swoole 后出现
PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /home/soft/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so (libhiredis.so.0.13: cannot open shared object file: No such file or directory), /home/soft/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so (/home/soft/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
libhiredis.so.0.13: cannot open shared object file: No such file or directory in Unknown on line 0,缺少动态库
1. vim /etc/ld.so.conf
2. 添加 /usr/local/lib 3. sudo ldconfig