【问题标题】:Installing ruby-1.9.3-p545 stuck安装 ruby​​-1.9.3-p545 卡住了
【发布时间】: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


【解决方案1】:

问题似乎是gcc46

你可以试试这个: rvm install ruby-1.9.3-p545 --with-gcc=clang 改用 Clang 看看是否有帮助。

【讨论】:

  • 我已经设法安装了它,首先手动安装 gcc47,然后安装 ruby​​ 1.9.3。这次不需要gcc46的要求,一切都很顺利。尽管如此,安装 gcc47 还是花了我大约 90 分钟...
【解决方案2】:

相信我。耐心一点。我也有同样的感觉。等了将近20分钟后,我看到了,

==> ../configure --build=x86_64-apple-darwin14.0.0 --prefix=/usr/local/Cellar/gcc48/4.8.3 --enable-languages=c,c++,objc,obj -c++ --program-suffix=-4.8 --with-gmp=/usr/local/opt/gmp4 --with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt /libmpc08 --with-cloog=/usr/local/opt/cloog018 --with-isl=/usr/local/opt/isl011 --with-system-zlib --enable-version-specific-runtime-libs -- enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --with-pkgversion=Homebrew gcc48 4.8.3 --with-bugurl=@987654321 @ --enable-plugin --disable-nls --enable-multilib ==> 制作引导程序 ==> 进行安装 ? /usr/local/Cellar/gcc48/4.8.3:1028个文件,142M,21.9分钟构建

【讨论】:

    猜你喜欢
    • 2013-02-18
    • 2019-01-06
    • 1970-01-01
    • 2016-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-03
    • 2016-12-24
    相关资源
    最近更新 更多