尝试在 osx lion 上安装 RVM 时出现无法解析主机错误

发布于 2024-12-26 17:20:12 字数 683 浏览 5 评论 0原文

我已经安装了所有先决条件。

我在 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 )

i出现以下错误:

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

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

'/volumes/Macintosh HD/users/mikedevita'

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

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

i get the following error:

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

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'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏尔 2025-01-02 17:20:12

看来brew 所指的文件已移动,因此您正在寻找死链接。

我通过在终端中运行“brew update”解决了这个问题。

让其运行后,并在brew更新到最新版本后,它应该具有最新的目录和文件,因此应该避免死链接。您现在应该可以继续正常工作了。

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

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文