安装postgreSQL12.0出现错误提示 configure: error: readline library not found。

安装postgreSQL12.0出现错误提示 configure: error: readline library not found。

报错信息如下:

[root@localhost postgresql-12.0]# ./configure --prefix=/usr/local/pgsql
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking which template to use... linux
checking whether NLS is wanted... no
.............................................
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-12.0]# rpm -qa | grep readline
readline-6.2-11.el7.x86_64
[root@localhost postgresql-12.0]# yum search readline
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Determining fastest mirrors
================================================================================== N/S matched: readline ==================================================================================
lua-readline.x86_64 : Lua interface to the readline and history libraries
perl-Term-ReadLine-Gnu.x86_64 : Perl extension for the GNU Readline/History Library
rakudo-Readline.x86_64 : Simple Perl 6 binding to GNU libreadline
readline-devel.i686 : Files needed to develop programs which use the readline library
readline-devel.x86_64 : Files needed to develop programs which use the readline library
readline-static.i686 : Static libraries for the readline library
readline-static.x86_64 : Static libraries for the readline library
tcl-tclreadline.x86_64 : GNU Readline extension for Tcl/Tk
tcl-tclreadline-devel.x86_64 : Development files for the tclreadline library
editline.x86_64 : A small compatible replacement for readline
linenoise.x86_64 : Minimal replacement for readline
perl-Term-UI.noarch : Term::ReadLine user interface made easy
readline.i686 : A library for editing typed command lines
readline.x86_64 : A library for editing typed command lines
rlwrap.x86_64 : Wrapper for GNU readline

  Name and summary matches only, use "search all" for everything.
[root@localhost postgresql-12.0]# yum -y install -y readline-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base                                                                                                                                                                | 3.6 kB  00:00:00     
epel                                                                                                                                                                | 4.7 kB  00:00:00     
extras                                                                                                                                                              | 2.9 kB  00:00:00     
tsinghua-vault-7.0                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.1                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.2                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.3                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.4                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.5                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.6                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.7                                                                                                                                                  | 3.6 kB  00:00:00     
tsinghua-vault-7.8                                                                                                                                                  | 3.6 kB  00:00:00     
updates                                                                                                                                                             | 2.9 kB  00:00:00     
(1/3): epel/x86_64/updateinfo                                                                                                                                       | 1.0 MB  00:00:26     
(2/3): epel/x86_64/primary_db                                                                                                                                       | 7.0 MB  00:02:34     
(3/3): updates/7/x86_64/primary_db                                                                                                                                  |  13 MB  00:03:10     
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.x86_64 0:6.2-11.el7 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.2-11.el7.x86_64
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================
 Package                                        Arch                                   Version                                                  Repository                            Size
===========================================================================================================================================================================================
Installing:
 readline-devel                                 x86_64                                 6.2-11.el7                                               base                                 139 k
Installing for dependencies:
 ncurses-devel                                  x86_64                                 5.9-14.20130511.el7_4                                    base                                 712 k

Transaction Summary
===========================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 851 k
Installed size: 2.4 M
Downloading packages:
(1/2): readline-devel-6.2-11.el7.x86_64.rpm                                                                                                                         | 139 kB  00:00:01     
(2/2): ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm                                                                                                               | 712 kB  00:00:07     
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                      119 kB/s | 851 kB  00:00:07     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64                                                                                                                              1/2 
  Installing : readline-devel-6.2-11.el7.x86_64                                                                                                                                        2/2 
  Verifying  : readline-devel-6.2-11.el7.x86_64                                                                                                                                        1/2 
  Verifying  : ncurses-devel-5.9-14.20130511.el7_4.x86_64                                                                                                                              2/2 

Installed:
  readline-devel.x86_64 0:6.2-11.el7                                                                                                                                                       

Dependency Installed:
  ncurses-devel.x86_64 0:5.9-14.20130511.el7_4                                                                                                                                             

Complete!

参考链接:https://www.php.cn/mysql-tutorials-140409.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值