dbTalk Databases Forums  

pypgsql python build on osx

comp.databases.postgresql.interfaces comp.databases.postgresql.interfaces


Discuss pypgsql python build on osx in the comp.databases.postgresql.interfaces forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rdack
 
Posts: n/a

Default pypgsql python build on osx - 08-12-2003 , 12:19 AM






in setup.py, i set custom include and lib to:
include_dirs = ["/Library/PostgreSQL/include"]
library_dirs = ["/Library/PostgreSQL/lib"]

do i need other dirs?

i get errors:
% python setup.py build
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/distutils/dist.py:213:
UserWarning: 'licence' distribution option is deprecated; use
'license'
warnings.warn(msg)
running build
running build_py
running build_ext
building 'pyPgSQL.libpq.libpqmodule' extension
gcc -Wl,-x -Wl,-F. -bundle -framework Python
build/temp.darwin-6.6-Power_Macintosh-2.3/libpqmodule.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgboolean.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgint2object.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgint8object.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgversion.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pglargeobject.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgnotify.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgconnection.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pgresult.o
build/temp.darwin-6.6-Power_Macintosh-2.3/pymemstrdup.o
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtoll.o
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtoull.o
build/temp.darwin-6.6-Power_Macintosh-2.3/port/strtok.o
-L/Library/PostgreSQL/lib -lpq -o
build/lib.darwin-6.6-Power_Macintosh-2.3/pyPgSQL/libpq/libpqmodule.so
ld: Undefined symbols:
_ERR_get_error
_ERR_reason_error_string
_SSL_CTX_new
_SSL_connect
_SSL_free
_SSL_library_init
_SSL_load_error_strings
_SSL_new
_SSL_set_fd
_SSLv23_method
_SSL_read
_SSL_write
error: command 'gcc' failed with exit status 1

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.