nrk / phpiredis

PHP extension for Redis based on Hiredis
BSD 2-Clause "Simplified" License
490 stars 66 forks source link

make test after make install: phpiredis extension is not available #49

Closed lulyon closed 8 years ago

lulyon commented 8 years ago

After successfully installed phpiredis following this README, I got this issue info running make test:

luliang@luliang-VirtualBox:/media/sf_theddrive/opensource/phpiredis/phpiredis-master$ make test

Build complete. Don't forget to run 'make test'.

PHP Warning: PHP Startup: Unable to load dynamic library '/media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so' - /media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so' - /media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError in Unknown on line 0

PHP : /usr/bin/php Warning: PHP Startup: Unable to load dynamic library '/media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so' - /media/sf_theddrive/opensource/phpiredis/phpiredis-master/modules/phpiredis.so: undefined symbol: redisReplyReaderGetError in Unknown on line 0

PHP_SAPI : cli PHP_VERSION : 5.5.9-1ubuntu4.17 ZEND_VERSION: 2.5.0 PHP_OS : Linux - Linux luliang-VirtualBox 3.19.0-59-generic #66~14.04.1-Ubuntu SMP Fri May 13 17:27:10 UTC 2016 x86_64 INI actual : /media/sf_theddrive/opensource/phpiredis/phpiredis-master/tmp-php.ini More .INIs :
CWD : /media/sf_theddrive/opensource/phpiredis/phpiredis-master Extra dirs : VALGRIND : Not used

TIME START 2016-06-03 03:29:13

SKIP [CLIENT] Connect to Redis [tests/client_001.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Persistent and non-persistent connections [tests/client_002.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Persistent and non-persistent connections (UNIX socket) [tests/client_003.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute commands [tests/client_004.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute pipelined commands [tests/client_005.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute pipelined commands returning nested multibulk responses [tests/client_006.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute commands (binary-safe) [tests/client_007.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute commands with binary data (binary-safe) [tests/client_008.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Execute pipelined commands (binary safe) [tests/client_009.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Do not attempt to reconnect upon disconnection [tests/client_010.phpt] reason: phpiredis extension is not available SKIP [CLIENT] Do not attempt to reconnect upon disconnection (pipeline) [tests/client_011.phpt] reason: phpiredis extension is not available SKIP [READER] Create reader resource [tests/reader_001.phpt] reason: phpiredis extension is not available SKIP [READER] Feed reader and parse responses [tests/reader_002.phpt] reason: phpiredis extension is not available SKIP [READER] Check reader state [tests/reader_003.phpt] reason: phpiredis extension is not available SKIP [READER] Reset reader [tests/reader_004.phpt] reason: phpiredis extension is not available SKIP [READER] Response types [tests/reader_005.phpt] reason: phpiredis extension is not available SKIP [READER] Set custom error handler [tests/reader_006.phpt] reason: phpiredis extension is not available SKIP [READER] Set custom status handler [tests/reader_007.phpt] reason: phpiredis extension is not available SKIP [READER] Custom error handler throwing exceptions or returning objects [tests/reader_008.phpt] reason: phpiredis extension is not available SKIP [READER] Properly handle NULL responses [tests/reader_009.phpt] reason: phpiredis extension is not available SKIP [READER] Keep multibulk responses types [tests/reader_010.phpt] reason: phpiredis extension is not available SKIP [READER] Test regression for segfaults [tests/reader_011.phpt] reason: phpiredis extension is not available SKIP [READER] Parameters formatting should not modify input argument. [tests/reader_012.phpt] reason: phpiredis extension is not available SKIP [READER] Parameters formatting should not break on many arguments [tests/reader_013.phpt] reason: phpiredis extension is not available SKIP [SERIALIZER] Command serialization [tests/serializer_001.phpt] reason: phpiredis extension is not available SKIP [SERIALIZER] Command serialization with non-string arguments [tests/serializer_002.phpt] reason: phpiredis extension is not available

TIME END 2016-06-03 03:29:14

TEST RESULT SUMMARY

Exts skipped : 0 Exts tested : 42

Number of tests : 26 0 Tests skipped : 26 (100.0%) Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 0 ( 0.0%) ( 0.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%)

Time taken : 1 seconds

nrk commented 8 years ago

Duplicate of #46, there's already a proposed fix in #47 that you can use to patch the source until it gets merged (soon). Please look at the issue tracker for similar or identical reports before filing a new bug.