-
最后一步 make -j 报错: Apple 芯片的 libevent 默认 arm64 的 |
Beta Was this translation helpful? Give feedback.
Answered by
fw8899
Sep 11, 2024
Replies: 2 comments
-
是使用homebrew安装的libevent吗? 处理方法:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Yanmei-Liu
-
openssl也会遇到一样的问题,处理方法相同。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是使用homebrew安装的libevent吗?
如果shell是x86_64(2023年之前大部分shell只有x86_86的homebrew,通过Rosetta转译运行),默认安装的lib也是x86_64的,和clang的编译目标arm64不匹配。可以在shell中使用
arch
命令来确认。处理方法:
brew uninstall --ignore-dependencies libevent
。brew install libevent
来安装。使用objdump等工具确认lib是否为arm64。