gpt4 book ai didi

ruby - 无法在 Mac OS X 10.9 上的 1 个 gemsets 中安装 gem-wrappers gem

转载 作者:太空宇宙 更新时间:2023-11-03 16:49:11 27 4
gpt4 key购买 nike

我真的是编程新手,我一直在尝试先安装 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

我能做什么?

最佳答案

这是 ruby​​ 2.1.3 的损坏二进制版本,您可以通过以下方式修复它:

rvm reinstall 2.1.3 --disable-binary

关于ruby - 无法在 Mac OS X 10.9 上的 1 个 gemsets 中安装 gem-wrappers gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26302239/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com