Broken references in Virtualenvs

I found the solution to the problem here, so all credit goes to the author. The gist is that when you create a virtualenv, many symlinks are created to the Homebrew installed Python. Here is one example: $ ls -la ~/.virtualenvs/my-virtual-env … lrwxr-xr-x 1 ryan staff 78 Jun 25 13:21 .Python -> /usr/local/Cellar/python/2.7.7/Frameworks/Python.framework/Versions/2.7/Python … When … Read more

How to use the php that brew installed?

According to the contributors of the Homebrew php formula… The contributors of the Homebrew php formula give the following instructions. The exact instructions reproduced here install php7.4. Substitute the php version you need. (Avoid “special” ways of accomplishing your objective; they are often problematic. “Official” approaches are more likely to give you a predictable, maintainable … Read more

How to use GNU sed on Mac OS 10.10+, ‘brew install –default-names’ no longer supported

Note (2019): The –with-default-names option is removed since January 2019, so now that option is not available anymore. When installing, Homebrew instructs on how to adapt the path, if one wants to use sed without the g prefix. You already have the gnu-sed installed without the –with-default-names option. With –with-default-names option it installs sed to … Read more

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

Solved… in part. Apparently, Installing the latest versions of OS X (e.g. Yosemite or El Capitan) removes some directories in /usr/local/var/postgres. To fix this you simply recreate the missing directories: mkdir -p /usr/local/var/postgres/pg_commit_ts mkdir -p /usr/local/var/postgres/pg_dynshmem mkdir -p /usr/local/var/postgres/pg_logical/mappings mkdir -p /usr/local/var/postgres/pg_logical/snapshots mkdir -p /usr/local/var/postgres/pg_replslot mkdir -p /usr/local/var/postgres/pg_serial mkdir -p /usr/local/var/postgres/pg_snapshots mkdir -p /usr/local/var/postgres/pg_stat mkdir … Read more

How can I start PostgreSQL server on Mac OS X?

The Homebrew package manager includes launchctl plists to start automatically. For more information, run brew info postgres. Start manually pg_ctl -D /usr/local/var/postgres start Stop manually pg_ctl -D /usr/local/var/postgres stop Start automatically “To have launchd start postgresql now and restart at login:” brew services start postgresql What is the result of pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log … Read more

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

Update: As of December 2020 and beyond, brew switch does not work, so use the other answer by @angabriel: brew install rbenv/tap/[email protected] ln -sfn /usr/local/Cellar/[email protected]/1.0.2t /usr/local/opt/openssl Original Answer: Switch to an older openssl package brew switch openssl 1.0.2s Or, depending on your exact system configuration, you may need to switch to a different version. Check … Read more