【发布时间】:2014-04-11 10:48:48
【问题描述】:
当我在 repo 中 cd 时,我想运行一个 rails 应用程序,它会提示以下内容:
rake ruby-1.9.3-p545 is not installed.
To install do: 'rvm install ruby-1.9.3-p545'
我目前使用的是 ruby-2.1.1,但由于某种原因,我得到了一个错误,我只想看看是不是 ruby 版本的问题。
当我运行rvm install ruby-1.9.3-p545 时,进程启动并卡在Installing required packages: gcc46 上。这一步已经进行了 3 个多小时,我怀疑它会改变。
我尝试使用 brew install gcc46 从自制软件安装 gcc46。这是输出:
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc46-4.6.4.tar.bz2
==> ../configure --build=x86_64-apple-darwin13.1.0 --prefix=/usr/local/Cellar/gcc46/4.6.4 --enable-languages=c,c++,objc,obj-c++ --program-suffix=-4.6 --with-gmp=/usr/local/opt/gmp4 --with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt/libmpc08 --with-ppl=/usr/local/opt/ppl011 --with-cloog=/usr/local/opt/cloog-ppl015 --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --enable-plugin --disable-nls --enable-multilib
==> make bootstrap
然后同样 - 几个小时内什么都没有发生。
【问题讨论】:
-
我没用过 mac 但通常会在 ubuntu 上使用 'rvm install 1.9.3' 来安装 1.9.3。
-
没有区别。结果是一样的。
标签: ruby-on-rails ruby rvm homebrew