diff options
| author | Federico Di Gregorio <fog@initd.org> | 2007-01-16 10:11:28 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2007-01-16 10:11:28 +0000 |
| commit | b651781f6348a3d988287c335e4e762b5adb30d1 (patch) | |
| tree | d23d2cbb6c36426a9bb0058f18d380d962f36d9f | |
| parent | d061b384d941d544de4d989c0496e7415e4d4201 (diff) | |
| download | psycopg2-b651781f6348a3d988287c335e4e762b5adb30d1.tar.gz | |
Added note about missign pg headers to INSTALL.
| -rw-r--r-- | INSTALL | 20 | ||||
| -rw-r--r-- | setup.py | 2 |
2 files changed, 18 insertions, 4 deletions
@@ -7,9 +7,7 @@ Compiling and installing psycopg libpq will leak memory. While psycopg 1.x used autoconf for its build process psycopg 2 switched to -the more pythoning setup.py. Currently both psycopg's author and distutils -have some limitations so the file setup.cfg is almost unused and most build -options are hidden in setup.py. Before building psycopg look at setup.cfg file +the more pythoning setup.py. Before building psycopg look at setup.cfg file and change any settings to follow your system (or taste); then: python setup.py build @@ -21,6 +19,21 @@ to build in the local directory; and: to install system-wide. +Common errors and build problems +================================ + +One of the most common errors is trying to build psycopg without the right +development headers for PostgreSQL, Python or both. If you get errors, look +for the following messages and then take the appropriate action: + +libpq-fe.h: No such file or directory + PostgreSQL headers are not properly installed on your system or are + installed in a non default path. First make sure they are installed, then + check setup.cfg and make sure pg_config points to a valid pg_config + executable. If you don't have a working pg_config try to play with the + include_dirs variable (and note that a working pg_config is better.) + + Using setuptools and EasyInstall ================================ @@ -46,3 +59,4 @@ First you need to create a libpython2X.a as described in http://starship.python.net/crew/kernr/mingw32/Notes.html. Then run: python setup.py build_ext --compiler=mingw32 install + @@ -272,7 +272,6 @@ ext.append(Extension("psycopg2._psycopg", sources, define_macros=define_macros, include_dirs=include_dirs, undef_macros=[])) - setup(name="psycopg2", version=PSYCOPG_VERSION, maintainer="Federico Di Gregorio", @@ -291,3 +290,4 @@ setup(name="psycopg2", packages=['psycopg2'], cmdclass={ 'build_ext': psycopg_build_ext }, ext_modules=ext) + |
