国产欧美日韩第一页|日本一二三不卡视频|在线精品小视频,亚洲第一免费播放区,metcn人体亚洲一区,亚洲精品午夜视频

幫助中心 >  技術(shù)知識庫 >  數據庫 >  相關(guān)技術(shù)支持 >  centos7編譯安裝PostgreSQL報錯:configure error readline library not found

centos7編譯安裝PostgreSQL報錯:configure error readline library not found

2023-09-26 09:17:24 720

centos7編譯安裝PostgreSQL報錯:configure error readline library not found

問(wèn)題

在通過(guò)源碼包安裝 PostgreSQL 時(shí),首先需要執行 ./configure

該腳本將運行一些測試來(lái)決定一些系統相關(guān)的變量, 并檢測你的操作系統的特殊設置,并且最后將在編譯樹(shù)中創(chuàng )建一些文件以記錄它找到了什么。

如果執行的過(guò)程中報如下錯誤:

configure: error: readline library not found

解決方案

安裝失敗時(shí)會(huì )提示執行 ./configure 加上 --without-readline 選項,不編譯 readline

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.

但是不建議這樣做,readline 的作用是能夠在 pg 控制臺讀取歷史命令,就像在 linux shell 中按上下鍵讀取歷史命令,不需要再手動(dòng)輸入重復的命令

可安裝如下依賴(lài)解決該問(wèn)題:

yum install -y readline-devel


提交成功!非常感謝您的反饋,我們會(huì )繼續努力做到更好!

這條文檔是否有幫助解決問(wèn)題?

非常抱歉未能幫助到您。為了給您提供更好的服務(wù),我們很需要您進(jìn)一步的反饋信息:

在文檔使用中是否遇到以下問(wèn)題:
-->