Comments (11)
I'm having the same issue. The files appear to be in their correct locations.
from phpiredis.
Solved it on my end. libhiredis installs itself to /usr/local/lib, but phpiredis expects it in /usr/lib.
Quick workaround:
ln -s /usr/local/lib/libhiredis.so.0.10 /usr/lib
from phpiredis.
The 'proper' way is to change the Makefile of hiredis to point to /usr instead of /usr/local
This will ensure things like hiredis' headers are in /usr/include, etc.
from phpiredis.
I'm having the same problem on Debian Squeeze. The symlink fix doesn't allow the phpiredis' make test
to pass, but php -m
reports the extension as loaded.
from phpiredis.
Same issue here, solve by symlink, however FAIL in command binary safe using image [tests/007.phpt]
from phpiredis.
I was having this issue on CentOS 6.3 -- solved by running ldconfig
to update the shared library cache.
from phpiredis.
Same here, issue solved with @Timberjaw hack, thanks!
from phpiredis.
If you have php over macports installed then you have to make a symlink like sudo ln -s /usr/local/lib/libhiredis.0.11.dylib /opt/local/lib/libhiredis.0.11.dylib
from phpiredis.
phpiredis doesnt work on ubuntu, calling phpiredis_connect gives the error:
Fatal error: Call to undefined function phpiredis_connect()
any idea how to correct it?
from phpiredis.
If anyone have this problem, this is how i fixed in my ubuntu installation. (php-fpm)
Just follow the step from readme
git clone https://github.com/nrk/phpiredis.git
cd phpiredis
phpize && ./configure --enable-phpiredis
make && make install
Then in /etc/php5/mods-available
create a file called phpiredis.ini
. Add the content below to that .ini
; configuration for phpiredis module
extension=phpiredis.so
Then
sudo php5enmod phpiredis
Restart your php and websever, should be fine
from phpiredis.
Thanks in advanced @blacklizard , you saved my day.
from phpiredis.
Related Issues (20)
- PHP 7 support HOT 1
- Error building against PHP 5.6.8 HOT 11
- The value of phpiredis_command_bs SET must be string? HOT 4
- pls support php7 HOT 16
- Release on PECL HOT 19
- make compile error HOT 2
- PHP: Unable to load dynamic library HOT 8
- make test after make install: phpiredis extension is not available
- make test after make install: phpiredis extension is not available HOT 1
- Compatibility with PHP 7.x HOT 19
- Install ext-phpiredis On Mac El Capitan HOT 1
- [RFE] improve installation doc HOT 2
- PhpiRedis: supplied resource is not a valid phpredis reader HOT 1
- phpiredis for snc_redis HOT 2
- Failed make tests HOT 5
- Docker / Alpine installation (phpiredis.so: redisReplyReaderGetReply: symbol not found) HOT 4
- undefined symbol: redisReplyReaderGetReply in Unknown on line 0 HOT 4
- Extension fails to load when built with hiredis 0.14 on armv7h or x86_64: works on armv6h HOT 3
- Will recent Hiredis upgrades be implemented? HOT 6
- Plan to release 1.1.x HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpiredis.