安装hiredis后swoole扩展消失
2024-10-01 02:05:44
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
最新文章
- 查看openssl的版本
- Course Schedule II
- metaspace之三--Metaspace解密
- About-JavaOOAD
- C语言内存对齐详解(3)
- ArrayList和LinkList区别
- iOS开发——UI篇Swift篇&;UIScrollView
- [SQL Server系] -- 视图
- JavaScript的事件代理(转)
- 浅述Oracle分布式事务概念
- 11.C++-临时对象分析
- [ 搭建Redis本地服务器实践系列三 ] :图解Redis客户端工具连接Redis服务器
- MapServer Tutorial——MapServer7.2.1教程学习——第一节用例实践:Example1.7 Adding a wms layer
- codeforces水题100道 第一题 Codeforces Beta Round #1 A. Theatre Square (math)
- nodejs tutorials
- 2017ACM暑期多校联合训练 - Team 4 1004 HDU 6070 Dirt Ratio (线段树)
- JavaScript匿名函数的使用
- 如何将JS里变量的值赋给文本框
- Window Server 2008 R2 安装 Share Point 2013
- cs231n神经网络 常用激活函数
热门文章
- [JavaEE] Testing the Java EE Application : Basic Arquillian integration test
- zookeeper+kafka配置
- HTML5权威指南之—第三章
- Python FAQ1:传值,还是传引用?
- BNU 13064 Dice (I) 前缀和优化DP
- js中的slice()、substring()、substr()、split()、join()、indexof()
- ecshop的一些东西,来看看
- P1462 通往奥格瑞玛的道路(二分答案+最短路)
- Ajax实现文件的上传
- Android App签名(为apk签名)