offline home muzx sudo easy_install psycopg2 Searching for psycopg2 Re

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[offline@home muzx]$ sudo easy_install psycopg2
Searching for psycopg2
Reading http://pypi.python.org/simple/psycopg2/
Reading http://initd.org/projects/psycopg2
Reading http://initd.org/pub/software/psycopg/
Best match: psycopg2 2.0.8
Downloading http://initd.org/pub/software/psycopg/psycopg2-2.0.8.tar.gz
Processing psycopg2-2.0.8.tar.gz
Running psycopg2-2.0.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P0OzZ4/psycopg2-2.0.8/egg-dist-tmp-misM-Q
Warning: /bin/sh: pg_config: command not found
warning: no files found matching '*.html' under directory 'doc'
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:27:22: error: libpq-fe.h: No such file or directory
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:146: error: expected declaration specifiers or ‘...’ before ‘PGconn’
In file included from psycopg/psycopgmodule.c:29:
./psycopg/connection.h:62: error: expected specifier-qualifier-list before ‘PGconn’
In file included from psycopg/psycopgmodule.c:30:
./psycopg/cursor.h:57: error: expected specifier-qualifier-list before ‘PGresult’
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:27:28: error: libpq/libpq-fs.h: No such file or directory
In file included from psycopg/psycopgmodule.c:31:
./psycopg/lobject.h:47: error: expected specifier-qualifier-list before ‘Oid’
./psycopg/lobject.h:53: error: expected declaration specifiers or ‘...’ before ‘Oid’
./psycopg/lobject.h:53: error: expected declaration specifiers or ‘...’ before ‘Oid’
psycopg/psycopgmodule.c: In function ‘psyco_register_type’:
psycopg/psycopgmodule.c:249: error: ‘cursorObject’ has no member named ‘string_types’
psycopg/psycopgmodule.c:252: error: ‘connectionObject’ has no member named ‘string_types’
error: Setup script exited with error: command 'gcc' failed with exit status 1