[Solved] MacOS Install python psycopg2 Error: pg_config executable not found. ld: library not found for -lssl

Error

Error: pg_config executable not found. 

ld: library not found for -lssl

installation

Download #
 wget -O psycopg2- 2.8 . 6 . Tar .gz HTTPS: // files.pythonhosted.org/packages/fd/ae/98cb7a0cbb1d748ee547b058b14604bd0e9bf285a8e0cc5d148f8a8a952e/psycopg2-2.8.6.tar.gz 
tar -zxf psycopg2- 2.8 . 6 . tar .gz
cd psycopg2-2.8.6

# Add pg_config configuration
vim setup.cfg
# Modify pg_config of build_ext
# pg_config = /opt/homebrew/opt/postgresql@12/bin/pg_config

# install
LDFLAGS="-I/opt/homebrew/Cellar/[email protected]/1.1.1k/include -L/opt/homebrew/Cellar/[email protected]/1.1.1k/lib" /usr/local/bin/python setup.py install

log

➜  psycopg2-2.8.6 /usr/local/bin/python setup.py install
running install
running bdist_egg
running egg_info
writing psycopg2.egg-info/PKG-INFO
writing top-level names to psycopg2.egg-info/top_level.txt
writing dependency_links to psycopg2.egg-info/dependency_links.txt
reading manifest file 'psycopg2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'psycopg2.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
building 'psycopg2._psycopg' extension
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/green.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/pqpath.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o
psycopg/pqpath.c:138:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
                PQstatus(conn->pgconn) : PQresultStatus(*pgres)));
                ^~~~~~~~~~~~~~~~~~~~~~
psycopg/pqpath.c:1822:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
                PQstatus(curs->conn->pgconn) : PQresultStatus(curs->pgres)));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/utils.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/bytes_format.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o
In file included from psycopg/bytes_format.c:82:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/libpq_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/libpq_support.o
In file included from psycopg/libpq_support.c:30:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/win32_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/win32_support.o
In file included from psycopg/win32_support.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/solaris_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/solaris_support.o
In file included from psycopg/solaris_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/aix_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/aix_support.o
In file included from psycopg/aix_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/connection_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/connection_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/cursor_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/cursor_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/column_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/column_type.o
In file included from psycopg/column_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_connection_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_connection_type.o
In file included from psycopg/replication_connection_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_cursor_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_cursor_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_message_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_message_type.o
In file included from psycopg/replication_message_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/diagnostics_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o
In file included from psycopg/diagnostics_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/error_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o
In file included from psycopg/error_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/conninfo_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/conninfo_type.o
In file included from psycopg/conninfo_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/lobject_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/lobject_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/notify_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o
In file included from psycopg/notify_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/xid_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_asis.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_binary.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_datetime.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_list.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pboolean.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pdecimal.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pint.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pfloat.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_qstring.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/microprotocols.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/microprotocols_proto.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/typecast.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o
warning: no library file corresponding to '/opt/homebrew/Cellar/[email protected]/1.1.1k/include' found (skipping)
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o build/temp.macosx-10.9-x86_64-2.7/psycopg/libpq_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/win32_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/solaris_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/aix_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/column_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_connection_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_cursor_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_message_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/conninfo_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o -L/opt/homebrew/opt/postgresql@12/lib -lpq -lssl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/psycopg2/_psycopg.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
➜  psycopg2-2.8.6 LDFLAGS="-I/opt/homebrew/Cellar/[email protected]/1.1.1k/include -L/opt/homebrew/Cellar/[email protected]/1.1.1k/lib" /usr/local/bin/python setup.py install
running install
running bdist_egg
running egg_info
writing psycopg2.egg-info/PKG-INFO
writing top-level names to psycopg2.egg-info/top_level.txt
writing dependency_links to psycopg2.egg-info/dependency_links.txt
reading manifest file 'psycopg2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'psycopg2.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
building 'psycopg2._psycopg' extension
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/green.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/pqpath.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o
psycopg/pqpath.c:138:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
                PQstatus(conn->pgconn) : PQresultStatus(*pgres)));
                ^~~~~~~~~~~~~~~~~~~~~~
psycopg/pqpath.c:1822:17: warning: implicit conversion from enumeration type 'ConnStatusType' to different enumeration type 'ExecStatusType' [-Wenum-conversion]
                PQstatus(curs->conn->pgconn) : PQresultStatus(curs->pgres)));
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/utils.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/bytes_format.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o
In file included from psycopg/bytes_format.c:82:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/libpq_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/libpq_support.o
In file included from psycopg/libpq_support.c:30:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/win32_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/win32_support.o
In file included from psycopg/win32_support.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/solaris_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/solaris_support.o
In file included from psycopg/solaris_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/aix_support.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/aix_support.o
In file included from psycopg/aix_support.c:29:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/connection_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/connection_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/cursor_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/cursor_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/column_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/column_type.o
In file included from psycopg/column_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_connection_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_connection_type.o
In file included from psycopg/replication_connection_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_cursor_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_cursor_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/replication_message_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_message_type.o
In file included from psycopg/replication_message_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/diagnostics_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o
In file included from psycopg/diagnostics_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/error_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o
In file included from psycopg/error_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/conninfo_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/conninfo_type.o
In file included from psycopg/conninfo_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/lobject_int.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/lobject_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/notify_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o
In file included from psycopg/notify_type.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/xid_type.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_asis.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_binary.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_datetime.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_list.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pboolean.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pdecimal.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pint.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_pfloat.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/adapter_qstring.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/microprotocols.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/microprotocols_proto.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o
In file included from psycopg/microprotocols_proto.c:28:
In file included from ./psycopg/psycopg.h:38:
./psycopg/config.h:82:13: warning: unused function 'Dprintf' [-Wunused-function]
static void Dprintf(const char *fmt, ...) {}
            ^
1 warning generated.
gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120007 -DHAVE_LO64=1 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/opt/homebrew/opt/postgresql@12/include -I/opt/homebrew/opt/postgresql@12/include/server -c psycopg/typecast.c -o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o
warning: no library file corresponding to '/opt/homebrew/Cellar/[email protected]/1.1.1k/include' found (skipping)
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g -I/opt/homebrew/Cellar/[email protected]/1.1.1k/include -L/opt/homebrew/Cellar/[email protected]/1.1.1k/lib build/temp.macosx-10.9-x86_64-2.7/psycopg/psycopgmodule.o build/temp.macosx-10.9-x86_64-2.7/psycopg/green.o build/temp.macosx-10.9-x86_64-2.7/psycopg/pqpath.o build/temp.macosx-10.9-x86_64-2.7/psycopg/utils.o build/temp.macosx-10.9-x86_64-2.7/psycopg/bytes_format.o build/temp.macosx-10.9-x86_64-2.7/psycopg/libpq_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/win32_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/solaris_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/aix_support.o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/connection_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/cursor_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/column_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_connection_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_cursor_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/replication_message_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/diagnostics_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/error_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/conninfo_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_int.o build/temp.macosx-10.9-x86_64-2.7/psycopg/lobject_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/notify_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/xid_type.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_asis.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_binary.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_datetime.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_list.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pboolean.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pdecimal.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pint.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_pfloat.o build/temp.macosx-10.9-x86_64-2.7/psycopg/adapter_qstring.o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols.o build/temp.macosx-10.9-x86_64-2.7/psycopg/microprotocols_proto.o build/temp.macosx-10.9-x86_64-2.7/psycopg/typecast.o -L/opt/homebrew/opt/postgresql@12/lib -lpq -lssl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/psycopg2/_psycopg.so
ld: warning: ld: warning: ignoring file /opt/homebrew/opt/postgresql@12/lib/libpq.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64ignoring file /opt/homebrew/Cellar/[email protected]/1.1.1k/lib/libcrypto.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64

ld: warning: ignoring file /opt/homebrew/Cellar/[email protected]/1.1.1k/lib/libssl.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/_json.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/extras.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/compat.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/errorcodes.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/tz.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/_range.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/_ipaddress.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/_lru_cache.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/extensions.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/errors.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/sql.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/pool.py -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
copying build/lib.macosx-10.9-x86_64-2.7/psycopg2/_psycopg.so -> build/bdist.macosx-10.9-x86_64/egg/psycopg2
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/_json.py to _json.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/extras.py to extras.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/compat.py to compat.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/errorcodes.py to errorcodes.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/tz.py to tz.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/_range.py to _range.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/_ipaddress.py to _ipaddress.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/_lru_cache.py to _lru_cache.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/extensions.py to extensions.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/errors.py to errors.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/sql.py to sql.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/pool.py to pool.pyc
creating stub loader for psycopg2/_psycopg.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/psycopg2/_psycopg.py to _psycopg.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying psycopg2.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying psycopg2.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying psycopg2.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying psycopg2.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/psycopg2-2.8.6-py2.7-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing psycopg2-2.8.6-py2.7-macosx-10.9-x86_64.egg
Copying psycopg2-2.8.6-py2.7-macosx-10.9-x86_64.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Adding psycopg2 2.8.6 to easy-install.pth file

Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2-2.8.6-py2.7-macosx-10.9-x86_64.egg
Processing dependencies for psycopg2==2.8.6
Finished processing dependencies for psycopg2==2.8.6

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *