linux - 如何在oracle linux 7.2中安装postgresql

标签 linux postgresql

我正在尝试使用 postgresql,但是当我尝试在 Oracle Linux 7.2 内核 3.10.0-327 中安装它时遇到了这些问题

使用此命令编译源码后:

./configure --with-openssl

我有这个错误:

checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... -lcrypt
checking for library containing shm_open... -lrt
checking for library containing shm_unlink... none required
checking for library containing fdatasync... none required
checking for library containing sched_yield... none required
checking for library containing gethostbyname_r... none required
checking for library containing shmget... none required
checking for library containing readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
[root@localhost postgresql-9.5.1]# brew
bash: brew: command not found...
[root@localhost postgresql-9.5.1]# find readline
find: ‘readline’: No such file or directory
[root@localhost postgresql-9.5.1]# yum install readline
Loaded plugins: langpacks, ulninfo

pgdg95 | 3.6 KB 00:00:00
(1/2): pgdg95/7Server/x86_64/group_gz | 333 乙 00:00:00
(2/2): pgdg95/7Server/x86_64/primary_db | 127 KB 00:00:00

Package readline-6.2-9.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost postgresql-9.5.1]#

readline已经安装好了,我不明白为什么会出现这个问题

最佳答案

我刚刚找到了解决方案:

这个命令:

yum install readline-devel

yum install zlib-devel

解决了我的问题

关于linux - 如何在oracle linux 7.2中安装postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36119490/

相关文章:

postgresql - 无法重命名 PostgreSQL 数据库

有选择地终止进程的 Linux 脚本

linux - 每 x 天与每月第 n 天

sql - PostgreSQL 中的日期格式化

sql - 从数据库中删除重复的城市

sql - 如何在 CREATE TABLE 查询中命名 NOT NULL 约束

linux - 如何解码 H323 数据包?

java - Tomcat 中的跨操作系统开发。 Linux 下antiJARLocking 和antiResourceLocking 可以设置为True 吗?

linux - 替换 XML 中的值

sql - 我怎样才能得到重叠值的计数并按最重叠的百分比排序