首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从源代码脱机安装radare2?

如何从源代码脱机安装radare2?
EN

Stack Overflow用户
提问于 2021-12-25 07:15:14
回答 1查看 76关注 0票数 0

嗨,我下载了radare2源代码并运行了./sys/install.sh

但是,由于连接超时到codeload.github.com,它实际上失败了,而在终端下打印"ar: creating libr_winkd.a“。

我尝试谷歌和搜索离线安装方法,但没有找到任何线索。

因此,我想问如何避免这种情况,我应该安装什么样的依赖关系才能脱机安装radare2??

非常感谢!!

EN

回答 1

Stack Overflow用户

发布于 2021-12-25 07:35:28

我假设您运行的install.sh是这一个

如果您查看该脚本,您将看到它包括以下内容:

代码语言:javascript
复制
# 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 .)

另一种可能的解决办法是删除上述行,代之以:

代码语言:javascript
复制
export WITHOUT_PULL=1
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70478520

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档