嗨,我下载了radare2源代码并运行了./sys/install.sh。
但是,由于连接超时到codeload.github.com,它实际上失败了,而在终端下打印"ar: creating libr_winkd.a“。
我尝试谷歌和搜索离线安装方法,但没有找到任何线索。
因此,我想问如何避免这种情况,我应该安装什么样的依赖关系才能脱机安装radare2??
非常感谢!!
发布于 2021-12-25 07:35:28
我假设您运行的install.sh是这一个。
如果您查看该脚本,您将看到它包括以下内容:
# update
if [ "$1" != "--without-pull" ]; then
if [ -d .git ]; then
git branch | grep "^\* master" > /dev/null
if [ $? = 0 ]; then
echo "WARNING: Updating from remote repository"
# Attempt to update from an existing remote
UPSTREAM_REMOTE=$(git remote -v | grep 'radareorg/radare2 (fetch)' | cut -f1 | head -n1)
if [ -n "$UPSTREAM_REMOTE" ]; then
git pull "$UPSTREAM_REMOTE" master
else
git pull https://github.com/radareorg/radare2 master
fi
fi
fi
else
export WITHOUT_PULL=1
shift
fi这似乎是导致脚本与Github对话的原因。
一个可能的解决方案是在脚本的参数中添加一个--without-pull选项。但我怀疑这行不通。(在我看来,前面的选项处理将“消耗”--without-pull .)
另一种可能的解决办法是删除上述行,代之以:
export WITHOUT_PULL=1https://stackoverflow.com/questions/70478520
复制相似问题