0
我想在我的Mac上安装Postgres ODBC驱动程序。
我用brew安装了postgres 8.4。安装PostgreSQL ODBC时发生错误 - 找不到libpq库
我从这里下载了ODBC驱动程序。
http://ftp.postgresql.org/pub/odbc/versions/src/
然后我跑
./configure
,但我得到
configure: error: libpq library not found
但是看起来像安装在图书馆,其实
:~/Downloads/psqlodbc-08.04.0200$ find/-name "libpq.a" 2>/dev/null
/Library/PostgreSQL/8.4/lib/libpq.a
这是输出我pg_conf
:~/Downloads/psqlodbc-08.04.0200$ pg_config
BINDIR = /Library/PostgreSQL/8.4/bin
DOCDIR = /Library/PostgreSQL/8.4/doc/postgresql
HTMLDIR = /Library/PostgreSQL/8.4/doc/postgresql
INCLUDEDIR = /Library/PostgreSQL/8.4/include
PKGINCLUDEDIR = /Library/PostgreSQL/8.4/include/postgresql
INCLUDEDIR-SERVER = /Library/PostgreSQL/8.4/include/postgresql/server
LIBDIR = /Library/PostgreSQL/8.4/lib
PKGLIBDIR = /Library/PostgreSQL/8.4/lib/postgresql
LOCALEDIR = /Library/PostgreSQL/8.4/share/locale
MANDIR = /Library/PostgreSQL/8.4/share/man
SHAREDIR = /Library/PostgreSQL/8.4/share/postgresql
SYSCONFDIR = /Library/PostgreSQL/8.4/etc/postgresql
PGXS = /Library/PostgreSQL/8.4/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/Users/buildfarm/pginstaller/server/staging/osx' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--with-krb5' '--enable-thread-safety' '--with-libxml' '--with-ossp-uuid' '--with-includes=/usr/local/include/libxml2:/usr/local/include' '--docdir=/Users/buildfarm/pginstaller/server/staging/osx/doc/postgresql' '--with-libxslt' 'CFLAGS=-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386' 'LDFLAGS=-L/usr/local/lib'
CC = gcc -no-cpp-precomp
CPPFLAGS = -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include
CFLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -headerpad_max_install_names -arch ppc -arch i386 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv
CFLAGS_SL =
LDFLAGS = -L/usr/local/lib -L/usr/lib
LDFLAGS_SL =
LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lkrb5 -lz -lreadline -lm
VERSION = PostgreSQL 8.4.18
有什么想法吗?感谢您的帮助
这就是* Windows *的ODBC驱动程序,你确定这是正确的链接?您没有从http://ftp.postgresql.org/pub/odbc/versions/src/获取资源?你不能通过自制软件启动psqlODBC吗?见例如https://github.com/pingles/homebrew-psqlodbc –
对不起,错误的链接我其实从这里下载 http://ftp.postgresql.org/pub/odbc/versions/src/ – mottalrd
用自制软件我刚刚安装了unixodbc,按照这里的说明http://www.boriel.com/en/2013/01/16/postgresql-odbc-connection-from-mac-os-x/ – mottalrd