简体   繁体   English

如何在Oracle Linux 7.2中安装Postgresql

[英]how to install postgresql in oracle linux 7.2

I'm trying to work with postgresql but i had these problems when I tried to install it in Oracle Linux 7.2 kernel 3.10.0-327 我正在尝试使用postgresql,但是当我尝试在Oracle Linux 7.2内核3.10.0-327中安装它时遇到了这些问题

after using this command to compile the source: 使用此命令编译源代码后:

./configure --with-openssl ./configure --with-openssl

I have this error: 我有这个错误:

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 | pgdg95 | 3.6 kB 00:00:00 3.6 kB 00:00:00
(1/2): pgdg95/7Server/x86_64/group_gz | (1/2):pgdg95 / 7Server / x86_64 / group_gz | 333 B 00:00:00 333 B 00:00:00
(2/2): pgdg95/7Server/x86_64 /primary_db | (2/2):pgdg95 / 7Server / x86_64 / primary_db | 127 kB 00:00:00 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 is already installed , i do not understand why i have the problem readline已安装,我不明白为什么会出现问题

I've just found a solution for that: 我刚刚找到了一个解决方案:

this command: 该命令:

yum install readline-devel 百胜安装readline-devel

yum install zlib-devel 百胜安装zlib-devel

solved my problem 解决了我的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM