- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會(huì )理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務(wù)機構許可:滇D3-20230001
- 代理域名注冊服務(wù)機構:新網(wǎng)數碼
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
售前咨詢(xún)
售后咨詢(xún)
備案咨詢(xún)
二維碼
TOP