自制软件:忽略 bigdecimal-1.3.2,因为它的扩展未构建
Homebrew: Ignoring bigdecimal-1.3.2 because its extensions are not built
总是当我 运行 brew update
出现 Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
警告时:
> brew update
Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
Already up-to-date.
我正在使用 Homebrew v1.7.7(Homebrew/homebrew-core(git 修订版 77cae;最后一次提交 2018-10-19),Homebrew/homebrew-cask(git 修订版 c95843 ; 最后一次提交 2018-10-19)) 和 rbenv v1.1.1.
我已经做了 gem pristine bigdecimal --version 1.3.2
它说:
> gem pristine bigdecimal --version 1.3.2
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["bigdecimal"] = 1.3.2
甚至 gem pristine --all
也没有修复它。
gem environment
向我展示了 2 gem 条路径。可以吗?
> gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.11
- RUBY VERSION: 2.4.1 (2017-03-22 patchlevel 111) [x86_64-darwin16]
- INSTALLATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
- USER INSTALLATION DIRECTORY: /Users/ricardo/.gem/ruby/2.4.0
- RUBY EXECUTABLE: /Users/ricardo/.rbenv/versions/2.4.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/bin
- SPEC CACHE DIRECTORY: /Users/ricardo/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-16
- GEM PATHS:
- /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
- /Users/ricardo/.gem/ruby/2.4.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-rdoc --no-ri --user-install"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/ricardo/.rbenv/versions/2.4.1/bin
- /usr/local/Cellar/rbenv/1.1.1/libexec
- /Users/ricardo/.gem/ruby/2.4.0/bin
- /Users/ricardo/.rbenv/shims
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
确保您使用的是正确的 gem
。以下为我修复了它:
$ which ruby
/usr/local/bin/ruby
$ /usr/bin/gem uninstall bigdecimal --all --force
(编辑:将 "remove" 固定为 "uninstall")
总是当我 运行 brew update
出现 Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
警告时:
> brew update
Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
Already up-to-date.
我正在使用 Homebrew v1.7.7(Homebrew/homebrew-core(git 修订版 77cae;最后一次提交 2018-10-19),Homebrew/homebrew-cask(git 修订版 c95843 ; 最后一次提交 2018-10-19)) 和 rbenv v1.1.1.
我已经做了 gem pristine bigdecimal --version 1.3.2
它说:
> gem pristine bigdecimal --version 1.3.2
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["bigdecimal"] = 1.3.2
甚至 gem pristine --all
也没有修复它。
gem environment
向我展示了 2 gem 条路径。可以吗?
> gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.6.11
- RUBY VERSION: 2.4.1 (2017-03-22 patchlevel 111) [x86_64-darwin16]
- INSTALLATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
- USER INSTALLATION DIRECTORY: /Users/ricardo/.gem/ruby/2.4.0
- RUBY EXECUTABLE: /Users/ricardo/.rbenv/versions/2.4.1/bin/ruby
- EXECUTABLE DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/bin
- SPEC CACHE DIRECTORY: /Users/ricardo/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/ricardo/.rbenv/versions/2.4.1/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-16
- GEM PATHS:
- /Users/ricardo/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0
- /Users/ricardo/.gem/ruby/2.4.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-rdoc --no-ri --user-install"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/ricardo/.rbenv/versions/2.4.1/bin
- /usr/local/Cellar/rbenv/1.1.1/libexec
- /Users/ricardo/.gem/ruby/2.4.0/bin
- /Users/ricardo/.rbenv/shims
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
确保您使用的是正确的 gem
。以下为我修复了它:
$ which ruby
/usr/local/bin/ruby
$ /usr/bin/gem uninstall bigdecimal --all --force
(编辑:将 "remove" 固定为 "uninstall")