【问题标题】:Can't install gem-wrappers gem in 1 gemsets on Mac OS X 10.9无法在 Mac OS X 10.9 上的 1 个 gemset 中安装 gem-wrappers gem
【发布时间】:2014-12-05 18:57:07
【问题描述】:

我真的是编程新手,我一直在尝试安装以安装 Rvm,然后是 Ruby,但是当我尝试在 Mac OS X 10.9 上安装 RVM 时,我遇到了困难:

MacBook-Air-de-Lucas:~ lucaslebrun$ \curl -L https://get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    624      0 --:--:-- --:--:-- --:--:--   625
100 20819  100 20819    0     0  22711      0 --:--:-- --:--:-- --:--:--     0
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz

Upgrading the RVM installation in /Users/lucaslebrun/.rvm/
    RVM PATH line found in /Users/lucaslebrun/.profile /Users/lucaslebrun/.bashrc /Users/lucaslebrun/.zshrc.
    RVM sourcing line found in /Users/lucaslebrun/.bash_profile /Users/lucaslebrun/.zlogin.
    Installing rvm gem in 1 gemsets./scripts/functions/gemset: line 118: 18872 Trace/BPT trap: 5       "${rvm_ruby_binary}" -rrubygems -e "$gem_spec" 2> /dev/null
Error running 'command gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc',
showing last 15 lines of /Users/lucaslebrun/.rvm/log/1412952496_ruby-2.1.3/gem.install.rvm.log
[2014-10-10 10:48:16] command
current path: /Users/lucaslebrun/.rvm/src/rvm
GEM_HOME=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global
PATH=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global/bin:/Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin:/Users/lucaslebrun/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
GEM_PATH=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global
command(7): command gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc
+ ./scripts/functions/utility_logging : __rvm_log_dotted()  210 > gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
  Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby
  Reason: image not found
./scripts/functions/utility_logging: line 210: 18897 Trace/BPT trap: 5       gem install /Users/lucaslebrun/.rvm/gem-cache/rvm-1.11.3.9.gem --local --no-ri --no-rdoc
.
    Installing gem-wrappers gem in 1 gemsets./scripts/functions/gemset: line 118: 18934 Trace/BPT trap: 5       "${rvm_ruby_binary}" -rrubygems -e "$gem_spec" 2> /dev/null
Error running 'command gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc',
showing last 15 lines of /Users/lucaslebrun/.rvm/log/1412952497_ruby-2.1.3/gem.install.gem-wrappers->=1.2.4.log
[2014-10-10 10:48:17] command
current path: /Users/lucaslebrun/.rvm/src/rvm
GEM_HOME=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global
PATH=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global/bin:/Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin:/Users/lucaslebrun/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
GEM_PATH=/Users/lucaslebrun/.rvm/gems/ruby-2.1.3@global
command(8): command gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc
+ ./scripts/functions/utility_logging : __rvm_log_dotted()  210 > gem install gem-wrappers -v '>=1.2.4' --no-ri --no-rdoc
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
  Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby
  Reason: image not found
./scripts/functions/utility_logging: line 210: 18958 Trace/BPT trap: 5       gem install gem-wrappers -v >=1.2.4 --no-ri --no-rdoc
.
Upgrade of RVM in /Users/lucaslebrun/.rvm/ is complete.

然后我尝试安装 Ruby,但这是我得到的:

Last login: Fri Oct 10 10:51:02 on ttys000
MacBook-Air-de-Lucas:~ lucaslebrun$ type rvm | head -n 1
rvm is a function
MacBook-Air-de-Lucas:~ lucaslebrun$ rvm use ruby --install --default
Warning! PATH is not properly set up, '/Users/lucaslebrun/.rvm/gems/ruby-2.1.3/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.1.3'.
Using /Users/lucaslebrun/.rvm/gems/ruby-2.1.3
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
  Referenced from: /Users/lucaslebrun/.rvm/rubies/ruby-2.1.3/bin/ruby
  Reason: image not found
MacBook-Air-de-Lucas:~ lucaslebrun$ ruby -v

我能做什么?

【问题讨论】:

  • 错误提示您可能会尝试运行“rvm get stable --auto-dotfiles”。你试过这样做吗?
  • 我得到了同样的错误,尝试了上面的......什么给出了?损坏的二进制版本是什么意思?如果我禁用它...会有什么后果?

标签: ruby macos gem rubygems rvm


【解决方案1】:

这是 ruby​​ 2.1.3 的二进制版本损坏,您可以使用以下方法修复它:

rvm reinstall 2.1.3 --disable-binary

【讨论】:

  • 加速 ruby​​ 安装 RVM 提供编译好的 ruby​​(二进制文件),其中一个二进制文件坏了,不幸的是这个二进制文件是由 travis 提供的,他们需要它,我会尽快构建新的二进制文件,它会有比特拉维斯更高的优先级
  • 我什至不知道编译好的红宝石或二进制文件是什么意思。我需要谷歌很多东西......
  • 当你写一个程序时,它有一个源代码,你的系统并不总是能理解代码,为了使系统可读,源代码需要被翻译(编译),得到的翻译是二进制 - 您的系统可以读取但您无法读取的内容
  • 哈哈,这破坏了我的环境。我的当前版本也是如此。现在我必须处理一系列新的神秘错误信息。欢乐时光。
猜你喜欢
  • 2013-11-03
  • 1970-01-01
  • 1970-01-01
  • 2012-02-04
  • 1970-01-01
  • 2014-04-29
  • 2013-11-02
相关资源
最近更新 更多