Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib

文章讲述了在Mac上开发过程中遇到的错误,涉及到js-sero-client工具在尝试加载libgmp.10.dylib时失败,因为找到的gmp库与系统架构不兼容。解决方法是尝试安装Homebrew到/usr/local并解决因x86_64架构差异导致的问题,但最终安装过程中出现SIGILL错误。
摘要由CSDN通过智能技术生成

Error: Dynamic Linking Error: dlopen(/Users/wangmeng/Desktop/work/bitdesk-core/client/node_modules/js-sero-client/tools/lib_DARWIN_AMD64/libsuperzk.dylib, 0x0002): Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib
  Referenced from: <B6B122A3-FA8B-386F-A34B-E28B09D40DD9> /Users/wangmeng/Desktop/work/bitdesk-core/client/node_modules/js-sero-client/tools/lib_DARWIN_AMD64/libsuperzk.dylib
  Reason: tried: '/usr/local/opt/gmp/lib/libgmp.10.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/gmp/lib/libgmp.10.dylib' (no such file), '/usr/local/opt/gmp/lib/libgmp.10.dylib' (no such file), '/usr/local/lib/libgmp.10.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/libgmp.10.dylib' (no such file, not in dyld cache)
 

1.查看gmp

2.卸载gmp

报错说不行:

To install under x86_64, install Homebrew into /usr/local.

所以我们先安装个homebrew去 /usr/local

装完以后,报错

Process finished with exit code 132 (interrupted by signal 4: SIGILL)
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值