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

CentOS7 编译后执行出错 #10

Open
archerhu77 opened this issue Jan 29, 2019 · 13 comments
Open

CentOS7 编译后执行出错 #10

archerhu77 opened this issue Jan 29, 2019 · 13 comments

Comments

@archerhu77
Copy link

CentOS7
用python3 setup.py build
python3 setup.py install
编译安装成功

但是在测试python3 test_PyCTP.py的时候报错:
ImportError: /usr/lib64/python3.6/site-packages/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv

@shizhuolin
Copy link
Owner

shizhuolin commented Jan 29, 2019 via email

@archerhu77
Copy link
Author

有的

[scripts-3.6]$ ll
total 4548
-rw-r--r--. 1 root root 1609512 Jan 29 15:46 libthostmduserapi.so
-rw-r--r--. 1 root root 3012577 Jan 29 15:46 libthosttraderapi.so
-rwxr-xr-x. 1 root root 30522 Jan 29 15:40 test_PyCTP.py
[scripts-3.6]$ python3 test_PyCTP.py
Traceback (most recent call last):
File "test_PyCTP.py", line 10, in
import PyCTP
ImportError: /usr/lib64/python3.6/site-packages/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv

不过一样出错

@shizhuolin
Copy link
Owner

shizhuolin commented Jan 29, 2019 via email

@archerhu77
Copy link
Author

我把您说的文件也拷贝到这个目录了,但是也不行,把所有.so都变成可执行也不行

[scripts-3.6]$ chmod +x *.so
[scripts-3.6]$ ll
total 6784
-rwxr-xr-x. 1 root root 1609512 Jan 29 15:46 libthostmduserapi.so
-rwxr-xr-x. 1 root root 3012577 Jan 29 15:46 libthosttraderapi.so
-rwxr-xr-x. 1 root root 2285776 Jan 29 16:45 PyCTP.cpython-36m-x86_64-linux-gnu.so
-rwxr-xr-x. 1 root root 30522 Jan 29 15:40 test_PyCTP.py
[scripts-3.6]$ python3 test_PyCTP.py
Traceback (most recent call last):
File "test_PyCTP.py", line 10, in
import PyCTP
ImportError: /root/PyCTP/build/scripts-3.6/PyCTP.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN15CThostFtdcMdApi13GetApiVersionEv

@shizhuolin
Copy link
Owner

shizhuolin commented Jan 29, 2019 via email

@archerhu77
Copy link
Author

编译没有出错,我这台还是干净的CentoOS7

@archerhu77
Copy link
Author

我搞了好多天,还是没能解决问题

@archerhu77
Copy link
Author

有没有办法直接跟您沟通DEBUG?

@shizhuolin
Copy link
Owner

shizhuolin commented Feb 10, 2019 via email

@lbrein
Copy link

lbrein commented Jun 13, 2019

383193853 被大量群众举报。。。。。 这个啥意思?

@shizhuolin
Copy link
Owner

shizhuolin commented Jun 13, 2019 via email

@lbrein
Copy link

lbrein commented Jun 14, 2019

加你的qq的时候,显示的信息....

@zhaoruixue
Copy link

zhaoruixue commented Jun 14, 2019 via email

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