指导上是这样说的:
$ cvs -d :pserver:anon@cvs.planet-lab.org:/cvs checkout new_plc_api
$ cd new_plc_api
$ make
但是当我运行make之后出现这样的错误:
请问是怎么回事呢?应该怎么解决?anqin@anqin-desktop:~/planetlab/hello_world/new_plc_api$ make
make: curl-config:命令未找到
printf: 0x:给定值不能完全转换
cd psycopg2 && \
python setup.py build && \
python setup.py install_lib --install-dir=/home/anqin/planetlab/hello_world/new_plc_api
running build
running build_py
running build_ext
Warning: /bin/sh: pg_config: not found
building 'psycopg2._psycopg' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=5 -DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DHAVE_MXDATETIME=1 -DHAVE_PYDATETIME=1 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.5.1 (dec mx dt ext pq3)" -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_DISPLAY_SIZE=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/include/python2.5/mx -I/usr/include/python2.5 -I. -c psycopg/psycopgmodule.c -o build/temp.linux-i686-2.5/psycopg/psycopgmodule.o
在包含自 psycopg/psycopgmodule.c:28 的文件中:
./psycopg/connection.h:26:22: 错误: libpq-fe.h:没有该文件或目录
In file included from psycopg/psycopgmodule.c:28:
./psycopg/connection.h:55: 错误: expected specifier-qualifier-list before ‘PGconn’
In file included from psycopg/psycopgmodule.c:29:
./psycopg/cursor.h:55: 错误: expected specifier-qualifier-list before ‘PGresult’
psycopg/psycopgmodule.c: 在函数‘_psyco_connect_fill_exc’中:
psycopg/psycopgmodule.c:103: 错误: ‘connectionObject’没有名为‘exc_Error’的成员
psycopg/psycopgmodule.c:105: 错误: ‘connectionObject’没有名为‘exc_Warning’的成员
psycopg/psycopgmodule.c:107: 错误: ‘connectionObject’没有名为‘exc_InterfaceError’的成员
psycopg/psycopgmodule.c:109: 错误: ‘connectionObject’没有名为‘exc_DatabaseError’的成员
psycopg/psycopgmodule.c:111: 错误: ‘connectionObject’没有名为‘exc_InternalError’的成员
psycopg/psycopgmodule.c:113: 错误: ‘connectionObject’没有名为‘exc_ProgrammingError’的成员
psycopg/psycopgmodule.c:115: 错误: ‘connectionObject’没有名为‘exc_IntegrityError’的成员
psycopg/psycopgmodule.c:117: 错误: ‘connectionObject’没有名为‘exc_DataError’的成员
psycopg/psycopgmodule.c:119: 错误: ‘connectionObject’没有名为‘exc_NotSupportedError’的成员
psycopg/psycopgmodule.c:121: 错误: ‘connectionObject’没有名为‘exc_OperationalError’的成员
error: command 'gcc' failed with exit status 1
make: *** [psycopg2] 错误 1