Open LuMitchell opened 4 years ago
FAIL Test opencc4php [tests/002.phpt]
你需要先安装OpenCC,如果安装好了,还不行。那么你可能需要 手动 把libopencc.so放到正确的位置,比如/usr/lib64下。
/usr/lib/libopencc.so 是正确的path吗?
另外在/usr/lib/php/20190902/里有opencc.so
算是安装正确了吗?php -m 没有opencc
make test也是failed
opencc_error() => "Invalid format: Unknown dictionary type: ocd2"
PHP : /usr/local/php74/bin/php Warning: PHP Startup: Unable to load dynamic library 'opencc.so' (tried: /root/downloads/opencc4php/modules/opencc.so (libopencc.so.2: cannot open shared object file: No such file or directory), /root/downloads/opencc4php/modules/opencc.so.so (/root/downloads/opencc4php/modules/opencc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP_SAPI : cli PHP_VERSION : 7.4.1 ZEND_VERSION: 3.4.0 PHP_OS : Linux - Linux mit2 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 INI actual : /root/downloads/opencc4php/tmp-php.ini More .INIs :
PHP : /usr/local/php74/bin/phpdbg PHP_SAPI : PHP Warning: PHP Startup: Unable to load dynamic library 'opencc.so' (tried: /root/downloads/opencc4php/modules/opencc.so (libopencc.so.2: cannot open shared object file: No such file or directory), /root/downloads/opencc4php/modules/opencc.so.so (/root/downloads/opencc4php/modules/opencc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
...
CWD : /root/downloads/opencc4php Extra dirs : VALGRIND : Not used
TIME START 2020-03-02 12:38:37
FAIL Check for opencc presence [tests/001.phpt] FAIL Test opencc4php [tests/002.phpt]
TIME END 2020-03-02 12:38:37
===================================================================== TEST RESULT SUMMARY
Exts skipped : 0 Exts tested : 50
Number of tests : 2 2 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 2 (100.0%) (100.0%) Tests passed : 0 ( 0.0%) ( 0.0%)
Time taken : 0 seconds
===================================================================== FAILED TEST SUMMARY
Check for opencc presence [tests/001.phpt] Test opencc4php [tests/002.phpt]
You may have found a problem in PHP.