在我安装了rvm,homebrew和libksba(brew install libksba)后,我正在尝试使用rvm安装ruby 1.9.3但是我收到以下错误。有人知道WTF导致了这个吗? (对不起,尝试在我的新Mac上安装rmv + rails几个小时,我真的很生气):(
非常感谢[提前]
Leonardos-MacBook-Air:~ leo$ rvm install 1.9.3
Fetching yaml-0.1.4.tar.gz to /Users/leo/.rvm/archives
curl: (6) Could not resolve host: rvm.io; nodename nor servname provided, or not known
There was an error, please check /Users/leo/.rvm/log//*.log. Next we'll try to fetch via http.
Trying ftp:// URL instead.
curl: (6) Could not resolve host: rvm.io; nodename nor servname provided, or not known
There was an error, please check /Users/leo/.rvm/log//*.log
Extracting yaml-0.1.4.tar.gz to /Users/leo/.rvm/src
Error running 'tar xmzf /Users/leo/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/leo/.rvm/src ', please read /Users/leo/.rvm/log/ruby-1.9.3-p194/yaml/extract.log
/Users/leo/.rvm/scripts/functions/pkg: line 52: cd: /Users/leo/.rvm/src/yaml-0.1.4: No such file or directory
Configuring yaml in /Users/leo/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/leo/.rvm/usr" ', please read /Users/leo/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
Compiling yaml in /Users/leo/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/leo/.rvm/log/ruby-1.9.3-p194/yaml/make.log
Database file /Users/leo/.rvm/config/packages does not exist.
Installing Ruby from source to: /Users/leo/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #fetching
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
curl: (6) Could not resolve host: ftp.ruby-lang.org; nodename nor servname provided, or not known
There was an error, please check /Users/leo/.rvm/log//*.log. Next we'll try to fetch via http.
Trying ftp:// URL instead.
curl: (6) Could not resolve host: ftp.ruby-lang.org; nodename nor servname provided, or not known
There was an error, please check /Users/leo/.rvm/log//*.log
There has been an error while trying to fetch the source.
Halting the installation.
There has been an error fetching the ruby interpreter. Halting the installation.
ls: /Users/leo/.rvm/rubies/*/bin/ruby: No such file or directory
答案 0 :(得分:1)
curl:(6)无法解析主机
肯定是您的网络存在问题。它无法获取必要的依赖项。 DNS配置或其他东西。 尝试在终端检查:
ping ftp.ruby-lang.org