1、 在用"Python setup.py"命令安装PostgreSQL的Python驱动时:running build_ext
error: No such file or directory
解决办法:在文件"setup.cfg"设置"pg_config"未正确的完整路径,如"pg_config=/usr/bin/pg_config"。如果当前系统中不存在"pg_config",请先安装"postgresql-devel-*.*.rpm"包。
2、连接PostgreSQL数据库时报如下错误:psql: 致命错误: 用户 "***" Ident 认证失败
或psql: FATAL: Ident authentication failed for user “username”, mais pourquoi donc ?
解决办法:修改"pg_hba.conf"文件中认证方式"METHOD"为"md5"或"trust",具体参考文件中的说明。
3、在用"make"编译软件时提示:"Makefile", line 88: Missing dependency operator
"Makefile", line 89: Missing dependency operator
"Makefile", line 91: Need an operator
"Makefile", line 92: Need an operator
"Makefile", line 93: Missing dependency operator
"Makefile", line 94: Missing dependency operator
Error expanding embedded variable.
解决办法:用"gmake"编译就OK了。