If dtrace is not working correctly when trying to build packages (like gems or npm packages)
rvm install 2.3.5 -- --disable-dtrace
You can write the installed brews to a list on your old machine:
brew list > brews.txt
Then copy that file to the new machine and install them:
Uninstall and reinstall Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Redo all Brew Packages - may have to be run many times
for f in $(cat brews.txt); do brew uninstall --force $f; done
brew cleanup
for f in $(cat brews.txt); do brew install $f; done
This won't preserve any options you used when installing - you can do that too with a more complex script using the JSON output of brew info, if you're interested.
https://github.com/nodejs/node-gyp/issues/569
- removing the old tools ($ rm -rf /Library/Developer/CommandLineTools)
- install xcode command line tools again ($ xcode-select --install).
- After these steps you will see a pop to install the new version of the tools.
Homebrew and Machine transfer · Issue #32264 · Homebrew/legacy-homebrew · GitHub
Home · rbenv/ruby-build Wiki · GitHub
brew install htop
wont work use brew install htop-osx
for mac