Comments (2)
Hello.
I am also experiencing this error.
This is with the newest commit: 1b3195f
This will not compile with PHP build from source on redhat 6.
It will however compile with PHP packages from this third-party repository: http://blog.famillecollet.com/pages/Config-en
But i cannot use those packages due to company policy.
I can supply more information and try steps to fix this issue but i have come to the end of my skills in fixing this problem on my own.
More info:
Compiled PHP version: 5.4.12
Configure command: ./configure --enable-phpiredis --with-hiredis-dir=/usr/local/hiredis --with-php-config=/usr/local/php-5.4.12/bin/php-config
I found a fix.
I had to recompile apache with prefork module active (--with-MPM=prefork).
Then i recompiled php against that apache build.
Then i configured phpiredis with:
./configure --enable-phpiredis --with-hiredis-dir=/usr/local/hiredis --with-php-config=/usr/local/php-5.4.11/bin/php-config
At this point it gave linking errors when i tried a "make", saying it couldnt find -lhiredis
So i edited the Makefile and changed this line:
EXTRA_LDFLAGS = -L/usr/local/hiredis/lib
Then i could run make and it will compile a working phpiredis.so file.
(I know there is an option to set LDFLAGS as an environment option, but that failed for me)
from phpiredis.
Thanks @dkijo, I noticed that it can be hard on some environments to get the extension to compile successfully due to sporadic issues with the system finding the needed hiredis files. I'll investigate your EXTRA_LDFLAGS tip when I'm back from a trip!
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.