Created
October 1, 2016 21:39
-
-
Save offby1/2dde641100645d9b8b58aa015028899b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ~/venv2.Darwin/bin/pip install psycopg2 | |
| Collecting psycopg2 | |
| Using cached psycopg2-2.6.2.tar.gz | |
| Complete output from command python setup.py egg_info: | |
| running egg_info | |
| creating pip-egg-info/psycopg2.egg-info | |
| writing pip-egg-info/psycopg2.egg-info/PKG-INFO | |
| writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt | |
| writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt | |
| writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' | |
| warning: manifest_maker: standard file '-c' not found | |
| Error: pg_config executable not found. | |
| Please add the directory containing pg_config to the PATH | |
| or specify the full executable path with the option: | |
| python setup.py build_ext --pg-config /path/to/pg_config build ... | |
| or with the pg_config option in 'setup.cfg'. | |
| ---------------------------------------- | |
| Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/lx/73tft7t14fd9kl0w33qmrjzh0000gn/T/pip-build-L0ghD1/psycopg2/ | |
| $ brew install postgresql | |
| Password: | |
| ... | |
| ==> Installing dependencies for postgresql: openssl, readline | |
| ==> Installing postgresql dependency: openssl | |
| ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2j.el_capitan.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring openssl-1.0.2j.el_capitan.bottle.tar.gz | |
| ==> Using the sandbox | |
| ==> Caveats | |
| A CA file has been bootstrapped using certificates from the system | |
| keychain. To add additional certificates, place .pem files in | |
| /usr/local/etc/openssl/certs | |
| and run | |
| /usr/local/opt/openssl/bin/c_rehash | |
| This formula is keg-only, which means it was not symlinked into /usr/local. | |
| Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries | |
| Generally there are no consequences of this for you. If you build your | |
| own software and it requires this formula, you'll need to add to your | |
| build variables: | |
| LDFLAGS: -L/usr/local/opt/openssl/lib | |
| CPPFLAGS: -I/usr/local/opt/openssl/include | |
| ==> Summary | |
| x /usr/local/Cellar/openssl/1.0.2j: 1,695 files, 12M | |
| ==> Installing postgresql dependency: readline | |
| ==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.el_capitan.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring readline-7.0.el_capitan.bottle.tar.gz | |
| ==> Caveats | |
| This formula is keg-only, which means it was not symlinked into /usr/local. | |
| OS X provides the BSD libedit library, which shadows libreadline. | |
| In order to prevent conflicts when programs look for libreadline we are | |
| defaulting this GNU Readline installation to keg-only. | |
| Generally there are no consequences of this for you. If you build your | |
| own software and it requires this formula, you'll need to add to your | |
| build variables: | |
| LDFLAGS: -L/usr/local/opt/readline/lib | |
| CPPFLAGS: -I/usr/local/opt/readline/include | |
| ==> Summary | |
| x /usr/local/Cellar/readline/7.0: 45 files, 2M | |
| ==> Installing postgresql | |
| ==> Downloading https://homebrew.bintray.com/bottles/postgresql-9.5.4_1.el_capitan.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring postgresql-9.5.4_1.el_capitan.bottle.tar.gz | |
| ==> Caveats | |
| If builds of PostgreSQL 9 are failing and you have version 8.x installed, | |
| you may need to remove the previous version first. See: | |
| https://github.com/Homebrew/homebrew/issues/2510 | |
| To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see: | |
| https://www.postgresql.org/docs/9.5/static/upgrading.html | |
| To migrate existing data from a previous minor version (9.0-9.4) of PostgreSQL, see: | |
| https://www.postgresql.org/docs/9.5/static/pgupgrade.html | |
| You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`. | |
| Do not run `brew cleanup postgresql` until you have performed the migration. | |
| To have launchd start postgresql now and restart at login: | |
| brew services start postgresql | |
| Or, if you don't want/need a background service you can just run: | |
| postgres -D /usr/local/var/postgres | |
| ==> Summary | |
| x /usr/local/Cellar/postgresql/9.5.4_1: 3,147 files, 35M | |
| $ type pg_config | |
| pg_config is /usr/local/bin/pg_config | |
| $ ~/venv2.Darwin/bin/pip install psycopg2 | |
| Collecting psycopg2 | |
| Using cached psycopg2-2.6.2.tar.gz | |
| Installing collected packages: psycopg2 | |
| Running setup.py install for psycopg2 ... done | |
| Successfully installed psycopg2-2.6.2 | |
| $ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment