刚拿到我的第一台 Mac,我正在尝试建立一个 ruby 开发环境。我已经更新了 XCode、Homebrew 和 RVM。我试图让 RVM 安装 Ruby 1.9.2 但它失败了。
有任何想法吗?
Fetching yaml-0.1.4.tar.gz to /Users/mlanza/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/mlanza/.rvm/src
Error running 'tar xmzf /Users/mlanza/.rvm/archives/yaml-0.1.4.tar.gz -C /Users/mlanza/.rvm/src ', please read /Users/mlanza/.rvm/log/ruby-1.9.2-p320/yaml/extract.log
Configuring yaml in /Users/mlanza/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/mlanza/.rvm/usr" ', please read /Users/mlanza/.rvm/log/ruby-1.9.2-p320/yaml/configure.log
Compiling yaml in /Users/mlanza/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/mlanza/.rvm/log/ruby-1.9.2-p320/yaml/make.log
Installing Ruby from source to: /Users/mlanza/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...
ruby-1.9.2-p320 - #downloading ruby-1.9.2-p320, this may take a while depending on your connection...
ruby-1.9.2-p320 - #extracted to /Users/mlanza/.rvm/src/ruby-1.9.2-p320 (already extracted)
ruby-1.9.2-p320 - #configuring
Error running ' ./configure --prefix=/Users/mlanza/.rvm/rubies/ruby-1.9.2-p320 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/mlanza/.rvm/usr ', please read /Users/mlanza/.rvm/log/ruby-1.9.2-p320/configure.log
There has been an error while running configure. Halting the installation.
我熟悉 Ubuntu,并且没有问题。我期待 Mac 会更容易一些。