码迷,mamicode.com
首页 > 其他好文 > 详细

安装hiredis后swoole扩展消失

时间:2018-08-05 23:26:09      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:file   open   share   trie   obj   lib   ext   directory   object   

php -m报错:

PHP Warning: PHP Startup: Unable to load dynamic library ‘swoole‘ (tried: /home/work/study/soft/php/lib/php/extensions/no-debug-non-zts-20170718/swoole (/home/work/study/soft/php/lib/php/extensions/no-debug-non-zts-20170718/swoole: cannot open shared object file: No such file or directory), /home/work/study/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)) in Unknown on line 0

解决方案:

用vi打开当前用户的bash_profile

vi ~/.bash_profile
在最后一行添加:   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

最后再 source ~/.bash_profile

安装hiredis后swoole扩展消失

标签:file   open   share   trie   obj   lib   ext   directory   object   

原文地址:https://www.cnblogs.com/setevn/p/9427631.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!