尝试在 osx lion 上安装 RVM 时出现无法解决主机错误 [英] getting a could not resolve host error when trying to install RVM on osx lion

查看:73
本文介绍了尝试在 osx lion 上安装 RVM 时出现无法解决主机错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了所有先决条件..我在 osx lion 10.7.2 上

I have all the prereq's installed.. I am on osx lion 10.7.2

xcode:

$ xcodebuild -version
Xcode 4.2.1

git:

$ git --version
git version 1.7.5.4

当我跑步时$ bash <<( curl -s https://rvm.beginrescueend.com/install/rvm )

when i run $ bash < <( curl -s https://rvm.beginrescueend.com/install/rvm )

我收到以下错误:

curl: (6) 无法解析主机:HD;提供节点名或服务名,或未知 无法下载'https://github.com/wayneeseguin/rvm/tarball/master'.

curl: (6) Could not resolve host: HD; nodename nor servname provided, or not known Could not download 'https://github.com/wayneeseguin/rvm/tarball/master'.

有什么想法吗?如果我以 sudo 身份运行,它会通过,但随后会出现更多错误...需要以单用户身份安装它.我家目录的路径是:

any ideas why? If i run as sudo it goes through but then i get more errors... Need this to install as single user. path to my home dir is:

'/volumes/Macintosh HD/users/mikedevita'

推荐答案

似乎 brew 所指的文件已移动,因此您正在寻找死链接.

It seems like the file brew is referring to has moved, hence you are looking for a dead link.

我通过在终端中运行brew update"解决了这个问题.

I got past this issue by running 'brew update' in the terminal.

让它运行后,在 brew 更新到最新版本后,它应该有最新的目录和文件,因此应该避免死链接.你现在应该可以像往常一样自由地继续了.

After letting this run, and after brew updates to the latest version it should have the latest directories and files, and as a result should avoid dead links. You should be free to continue as normal now.

这篇关于尝试在 osx lion 上安装 RVM 时出现无法解决主机错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆