How to avoid “cannot load such file — utils/popen” from homebrew on OSX

I’m getting an error when I run brew in the terminal: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’: cannot load such file — utils/popen (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /usr/local/Library/Homebrew/utils.rb:6:in `<top (required)>’ from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /usr/local/Library/Homebrew/global.rb:9:in `<top (required)>’ from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require’ from /usr/local/Library/brew.rb:16:in `<main>’ These are my gem settings: – RUBYGEMS VERSION: 2.0.14 … Read more

Postgres – FATAL: database files are incompatible with server

After restarting my MacBook Pro I am unable to start the database server: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket “/tmp/.s.PGSQL.5432”? I checked the logs and the following line appears over and over again: FATAL: database files are incompatible with … Read more

brew update: The following untracked working tree files would be overwritten by merge:

I tried to run brew update and I get an error about my local changes would be lost if I merged. I tried committing my local changes (don’t remember making any, but it’s been awhile), and that made things worse. Here’s the output: MBP:Library User$ sudo brew update error: The following untracked working tree files … Read more

brew install mysql on macOS

I’m trying to setup up MySQL on mac os 10.6 using Homebrew by brew install mysql 5.1.52. Everything goes well and I am also successful with the mysql_install_db. However when I try to connect to the server using: /usr/local/Cellar/mysql/5.1.52/bin/mysqladmin -u root password ‘mypass’ I get: /usr/local/Cellar/mysql/5.1.52/bin/mysqladmin: connect to server at ‘localhost’ failed error: ‘Access denied … Read more

Homebrew: Could not symlink, /usr/local/bin is not writable [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 2 years ago. Improve this question While installing tig, HomeBrew is displaying the following issues while installing a dependency: Error: The `brew link` step did … Read more

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello but then got the following message back in the terminal: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/bin/vapor Reason: image not found zsh: abort vapor new Hello I tried some approaches to fix this like uninstalling … Read more

Uninstall / remove a Homebrew package including all its dependencies

I have a Homebrew formula that I wish to uninstall/remove along with all its dependencies, skipping packages whom other packages depend upon (a.k.a. Cascading package removal in Package manager parlance). e.g. Uninstall package a which depends on packages b & c, where package d also depends on package c. The result should uninstall both a … Read more

`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

I use postgres from homebrew in my OS X, but when I reboot my system, sometimes the postgres doesn’t start after the reboot, and so I manually tried to start it with postgres -D /usr/local/var/postgres, but then the error occurred with the following message: FATAL: could not open directory “pg_tblspc”: No such file or directory. … Read more