Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载不上这个扩展,make test 错误 #48

Open
LuMitchell opened this issue Mar 2, 2020 · 3 comments
Open

加载不上这个扩展,make test 错误 #48

LuMitchell opened this issue Mar 2, 2020 · 3 comments

Comments

@LuMitchell
Copy link

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.

@kmvan
Copy link

kmvan commented Oct 8, 2020

FAIL Test opencc4php [tests/002.phpt]

@ice6
Copy link
Contributor

ice6 commented Dec 11, 2020

你需要先安装OpenCC,如果安装好了,还不行。那么你可能需要 手动 把libopencc.so放到正确的位置,比如/usr/lib64下。

@DennisXH
Copy link

DennisXH commented Jan 3, 2021

/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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants