homebrew
Install icu4c version 63 with Homebrew
Solution: cd to Homebrew’s formula directory Intel cd $(brew –prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula M1 cd $(brew –prefix)/Library/Taps/homebrew/homebrew-core/Formula Find desired commit (version 63 for icu4c) to checkout git log –follow icu4c.rb Checkout to a new branch git checkout -b icu4c-63 e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7 Reinstall the library with the new version brew reinstall ./icu4c.rb Switch to the reinstalled version brew switch icu4c … Read more
Getting a “bad interpreter” error when using brew
I got this error (much the same): /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0 and fixed by the solution below: Open brew.rb: $ sudo vim /usr/local/Library/brew.rb Change the first line’s 1.8 to Current: Before: #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 After: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 Then brew works for me. Hope … Read more
How to install the Python development headers on Mac OS X?
The latest Python 3 formula links a program called python3-config. You can use it to find the headers like this: python3-config –include On my machine, this outputs: -I/usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/include/python3.3m -I/usr/local/Cellar/python3/3.3.4/Frameworks/Python.framework/Versions/3.3/include/python3.3m You may need to brew update && brew rm python3 && brew install python3 to enable this. There is an equivalent program called python-config for Python … Read more
macOS 10.12 brew install openssl issue
I managed to resolve it by editing formula (brew edit openssl) and adding -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include to args array in configure_args. As below: def configure_args args = %W[ –prefix=#{prefix} –openssldir=#{openssldir} no-ssl3 no-ssl3-method no-zlib ##### add the line here #### -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include ] on_linux do args += (ENV.cflags || “”).split args += (ENV.cppflags || “”).split args += (ENV.ldflags || … Read more
Brew cleanup Error: Permission denied @ unlink_internal
First fix permissions causing the error: sudo chown -R “$(whoami)”:admin /usr/local On macOS Mojave, the chown command needs to be run on the specific directory, an example for the permissions issue in /usr/local/lib directory, this command would be sudo chown -R “$(whoami)”:admin /usr/local/lib Then relink node with the –force option as directed: brew link –overwrite … Read more
Install older Ruby versions on a M1 MacBook?
In order to make installing of Ruby versions 2.6.x or 2.7.x successful on M1 MacBook using either rbenv or asdf (asdf is used in this example) follow these steps: Upgrade to the latest version of rbenv or asdf-ruby plugin using your prefered installation method. In my case it’s asdf-ruby installed over homebrew: brew upgrade asdf … Read more
How to install GTest on Mac OS X with homebrew?
If you want the latest version without using Homebrew: git clone https://github.com/google/googletest cd googletest mkdir build cd build cmake .. make make install
Enabling libfdk_aac in ffmpeg installed with Homebrew
Homebrew v2.0 dropped all of the extra options that are not explicitly enabled in each formulae. So the –with options no longer work if you use the core Homebrew formulae. Instead you can use a third-party repository (or “tap”) such as ​homebrew-ffmpeg. This tap was created in response to the removal of the options from … Read more
Errors using rspec, missing libraries after installing Homebrew and uninstalling MacPorts
I got things working again for anyone interested. I removed and re-installed nokogiri gem and everything seems to be working again.