PSQL iODBC driver on mac os x 10.10.3 (Yosemite) - Mailing list pgsql-odbc
From | Dmitry Pogorelov |
---|---|
Subject | PSQL iODBC driver on mac os x 10.10.3 (Yosemite) |
Date | |
Msg-id | CAKELO4iqP1P1YjVah=f=u787kPN76yRixwxLYGHs1L_ZAzJQ5g@mail.gmail.com Whole thread Raw |
Responses |
Re: PSQL iODBC driver on mac os x 10.10.3 (Yosemite)
|
List | pgsql-odbc |
I've got postges 9.4 installed on Mac OS X 10.10.3 (Yosemite) I have access to it from psql and I have set up and filled a database I now want to access via ODBC - all on the localhost, no remote access involved. To get the 32 bit PSQL iODBC driver I've run the following command on the latest source code (psqlodbc-09.03.0400.tar.gz):
./configure CFLAGS="-arch i386 -D ENABLE_MYLOG" --with-iodbc=/usr/local/iODBC --with-libpq=/Library/PostgreSQL/9.4
make
install_name_tool -change libssl.1.0.0.dylib /Library/ODBC/PSQL/lib/libssl.1.0.0.dylib /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
install_name_tool -change libpq.5.dylib /Library/ODBC/PSQL/lib/libpq.5.dylib /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
install_name_tool -change /Library/Frameworks/iODBC.framework/Versions/3.52/iODBC /Library/ODBC/PSQL/lib/iODBC /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
install_name_tool -change /Library/Frameworks/iODBCinst.framework/Versions/3.52/iODBCinst /Library/ODBC/PSQL/lib/iODBCinst /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
[ODBC Data Sources]
PSQL_Unicode_32 = PSQL iODBC Driver 32 bit (Unicode)
[PSQL_Unicode_32]
Driver = /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
ServerName = 127.0.0.1
Port = 5432
Database = test_tables
Username = postgres
Password = sa
UpdatableCursors = false
[ODBC Drivers]
PSQL iODBC Driver 32 bit (Unicode) = Installed
[PSQL iODBC Driver 32 bit (Unicode)]
Driver = /Library/ODBC/PSQL/bin/iODBC/psqlodbcw.so
Setup =
pgsql-odbc by date: