链接共享库 libruby.3.1.dylib ld:找不到 -lcapstone clang 的库:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) make:*** [libruby.3.1.dylib] 错误 1
如Failed to install ruby 3.1.0 on M1 \xc2\xb7 Discussion #1933 \xc2\xb7 rbenv/ruby-build中所述,有两种方法:
\n# Assuming Fish-shell, and that the two following directories are indeed present\n# Adapting to Bourne affine shells is left as an exercise \nset -gx LDFLAGS "-L/opt/homebrew/opt/capstone/lib"\nset -gx CPPFLAGS "-I/opt/homebrew/opt/capstone/include"\n\n# relaunch the install process with installation manager\n# rbenv install 3.1.0\n# asdf install ruby 3.1.0\nRun Code Online (Sandbox Code Playgroud)\ncppflags="-DRUBY_DEBUG"指定时使用”:brew uninstall bloaty\nbrew uninstall capstone\n\n# Adapt to fit local environment:\nset -gx RUBY_CFLAGS "-w"\nrbenv install 3.1.0\n# asdf install ruby 3.1.0\nRun Code Online (Sandbox Code Playgroud)\n并通过提供以下内容再次运行安装:
\n| 归档时间: |
|
| 查看次数: |
2448 次 |
| 最近记录: |