我是数据库领域的新手。最近,我一直试图在AIX6.1上安装Postgres 9.3.4。当我使用配置命令构建代码时,遇到了以下错误:
检查所需库函数的线程安全性.不是
配置:错误:线程测试程序失败
这个平台不是线程安全的。检查文件'config.log‘或编译
并运行src/test/线程/线程_test,确切的原因是。
使用--禁用-线程安全来禁用线程安全。
我只有在使用-禁用线程安全选项后才能成功编译.因此,我想知道使用这个选项对数据库可靠性有什么影响。在使用此选项的数据库方面,“客户端库”意味着什么?
我还想知道如何编译thread_test.c并手动运行它。手册上说:
- run "configure" - compile the main source tree - compile and run this program但我没有成功地编译它。
*编辑:
下面是我编译thread_test.c的步骤:
我发现了一个错误:
`gmake: *** No rule to make target `thread_test.o', needed by `thread_test'. Stop.如果我运行"make",我会遇到许多这样的错误:
"../../../src/Makefile.global", line 45: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 48: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 52: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 72: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 84: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 85: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 87: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 88: make: Dependency line needs colon or double colon operator.<br>
"../../../src/Makefile.global", line 91: make: Dependency line needs colon or double colon operator.<br>
make: Equal sign not found in macro substitution.<br>我可能做错了什么,here...Can,有人愿意指出我在编译src/test/线程/线程_test.c文件时的错误吗?
谢谢你对我的耐心。:)
发布于 2014-07-31 05:30:36
禁用线程安全将意味着libpq不能安全地用于多线程应用程序,除非应用程序非常小心地只使用单个线程与其交互。
对于大多数应用程序来说,这一点都不值得关注。
https://dba.stackexchange.com/questions/72811
复制相似问题