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

mac m1下使用有问题 #3

Open
dqzg12300 opened this issue May 5, 2022 · 4 comments
Open

mac m1下使用有问题 #3

dqzg12300 opened this issue May 5, 2022 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@dqzg12300
Copy link

dqzg12300 commented May 5, 2022

编译完成后执行sudo cp -a build/* / 失败,因为mac的新版本系统没有那个权限。
然后我复制到了/usr/local/include 和 /usr/local/lib中。
最后测试的时候报下面的错误
ImportError: dlopen(/Users/king/Library/Python/3.8/lib/python/site-packages/udbserver.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_udbserver'

@dqzg12300 dqzg12300 changed the title mac 吗 mac m1下使用有问题 May 5, 2022
@bet4it
Copy link
Owner

bet4it commented May 5, 2022

Can the C example run on your environment?

@dqzg12300
Copy link
Author

我使用python example也是一样的。

sudo /usr/bin/python3 setup.py install
然后
/usr/bin/python3 example.py
Traceback (most recent call last):
File "example.py", line 3, in
from udbserver import udbserver
ImportError: dlopen(/Users/king/Library/Python/3.8/lib/python/site-packages/udbserver.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_udbserver'

@dqzg12300
Copy link
Author

使用c example是正常的

king@kingdeMacBook-Pro  ~/git_src/udbserver/bindings/c   master  gcc example.c -lunicorn -ludbserver -o example
king@kingdeMacBook-Pro  ~/git_src/udbserver/bindings/c   master  ./example
Waiting for a GDB connection on "127.0.0.1:1234"...

@bet4it bet4it added bug Something isn't working help wanted Extra attention is needed labels May 5, 2022
@bet4it
Copy link
Owner

bet4it commented Mar 6, 2024

Could you try this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants