brew: a lot of error after updating to mojave

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • are reporting a bug others will be able to reproduce and not asking a question. If you’re not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
  • ran a brew command and reproduced the problem with multiple formulae? If it’s a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it’s a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it’s a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why) to update homebrew after installing mojave
  • What happened (include command output) brew update Ignoring bigdecimal-1.3.5 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.5 Ignoring bigdecimal-1.3.5 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.5
  • What you expected to happen brew to update
  • Step-by-step reproduction instructions (by running brew commands)

brew config Ignoring bigdecimal-1.3.5 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.5 HOMEBREW_VERSION: 1.7.6 ORIGIN: https://github.com/Homebrew/brew HEAD: f239b7a62790cfb4f33bda9aab7597d43f1b1e3b Last commit: 3 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: fe7334d3c60777926ec25d42e40546601ea3c662 Core tap last commit: 89 minutes ago HOMEBREW_PREFIX: /usr/local HOMEBREW_GIT: git HOMEBREW_MACOS_VERSION_NUMERIC: 101400 CPU: octa-core 64-bit kabylake Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Clang: 10.0 build 1000 Git: 2.17.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Curl: 7.54.0 => /usr/bin/curl Java: 10.0.2 macOS: 10.14-x86_64 CLT: N/A Xcode: 10.0 XQuartz: N/A

brew doctor Ignoring bigdecimal-1.3.5 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.5 Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don’t worry or file an issue; just ignore this. Thanks!

Warning: The following directories do not exist: /usr/local/sbin

You should create these directories and change their ownership to your account. sudo mkdir -p /usr/local/sbin sudo chown -R $(whoami) /usr/local/sbin

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 39 (9 by maintainers)

Most upvoted comments

so that means that it actually is an issue related to homebrew and cannot be resolved by some other measure other than an update for homebrew, right?

try xcode-select --install in Terminal.

This worked for me: Open Xcode, go to Preferences, go to Locations, update the Command Line Tools in the drop down to Xcode 10.0.

I solved the problem by identifying the gem command actually used by brew, which is (for me, with mojave just installed) under /usr/bin/gem. Use this absolute path sudo /usr/bin/gem pristine bigdecimal --version 1.3.3 sudo /usr/bin/gem pristine bigdecimal --version 1.3.4

and everything’s fine now. Hope it helps

Workaround solution for me ( I had ruby 2.5.1 installed by brew due to vim dependency)

  • uninstalled vim, ruby and restarted terminal (so now system ruby is active, v 2.3.7)
  • installed bigdecimal: sudo gem install bigdecimal
  • reinstalled vim (and with it ruby 2.5.1 as dep)

The solution from @ndreca is also working for me:

  • First uninstall ‘rbenv’ with dep on ‘ruby-build’

  • Then run sudo gem install bigdecimal

Ignoring bigdecimal-1.3.4 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.4
Building native extensions. This could take a while...
Successfully installed bigdecimal-1.3.5
Parsing documentation for bigdecimal-1.3.5
Done installing documentation for bigdecimal after 0 seconds
1 gem installed
  • And also sudo gem pristine bigdecimal --version 1.3.4
Ignoring bigdecimal-1.3.4 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.4
Restoring gems to pristine condition...
Building native extensions. This could take a while...
Restored bigdecimal-1.3.4
  • Reinstall ‘rbenv’ and restart terminal, I can brew without warnings 😃

this is a problem with the portable version of ruby that comes with Homebrew, if I use the version of ruby that I have installed on my mac I can install bigdecimal:

$ gem install bigdecimal
Building native extensions. This could take a while...
Successfully installed bigdecimal-1.3.5
Done installing documentation for bigdecimal after 0 seconds
1 gem installed
$ 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.

I’m also getting this on a secondary install (like not on my main Mac) and have not yet found a solution that worked.