鲲鹏环境编译postgreSQL执行configure过程遇到error:readline library not found解决方法
发表于2023-08-11 18:28:47

【问题描述】

在编译postgreSQL时,执行 configure过程中报以下错误“configure: error: readline library not found”:

cke_2023.png

【解决方法】

1、安装readline相关依赖

1)检查系统是否已安装readline

rpm -qa | grep readline

2)通过 yum 搜索相关的readline 相关包

yum search readline

3)安装readline-devel依赖包

yum -y install -y readline-devel

4)检查readline-devel是否安装成功

rpm -qa | grep readline

5)返回postgreSQL编译路径,再次执行congfigure

./congfigure

2、执行configur时增加--without-readline参数

./congfigure --without-readline

【注】:readline是命令行编辑,该方法执行后就不可以在命令行里面输入了,不建议使用此方法。

本帖最后由 匿名用户 于 2025/04/01 16:45:00 编辑

发表于2023/08/11