Toujours je lance brew update
l'avertissement Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2
apparaît:
> 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.
J'utilise Homebrew v1.7.7 (Homebrew/homebrew-core (révision git 77cae; dernier commit 2018-10-19), Homebrew/homebrew-cask (révision git c95843; dernier commit 2018-10-19)) et rbenv v1 .1.1.
J'ai déjà fait gem pristine bigdecimal --version 1.3.2
et il dit:
> gem pristine bigdecimal --version 1.3.2
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["bigdecimal"] = 1.3.2
Même gem pristine --all
ne le répare pas.
Le gem environment
montre 2 chemins de gemmes. Es-ce bien?
> 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
Assurez-vous que vous utilisez la bonne gem
. Ce qui suit l'a corrigé pour moi:
$ which Ruby
/usr/local/bin/Ruby
$ /usr/bin/gem uninstall bigdecimal --all --force
(edit: correction "remove" pour "désinstaller")