问题描述:本想在自己本机Mac 上安装下redis 集群,不料在编译make 下触发了以下异常
unsupported tapi file type ‘!tapi-tbd’ in YAML file ‘/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd’ for architecture x86_64
/bin/sh: pkg-config: command not found
LINK redis-server
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [redis-server] Error 1
make: *** [test] Error 2
在stackoverflow上找到了蛛丝马迹,下载了:Command_Line_Tools_for_Xcode_11.5.dmg
百度网盘地址:https://pan.baidu.com/s/10mJUR7LXwRkhvTboFpIu5A,
提取码:whn9

步骤:
1、 sudo rm -rf /Library/Developer/CommandLineTools
2、安装刚刚下载的 dmg 文件
3、重新编译redis 文件
如图:

在尝试在Mac上安装Redis集群时,遇到了'unsupported tapifile type'错误。通过删除旧的CommandLineTools并安装Command_Line_Tools_for_Xcode_11.5.dmg文件解决了问题。步骤包括删除原有工具,安装新下载的dmg文件,然后重新编译Redis源代码。这确保了Redis集群创建命令的正确执行。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



