- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網(wǎng)數(shù)碼
centos7編譯安裝PostgreSQL報錯:configure error readline library not found
問題:
在通過源碼包安裝 PostgreSQL 時,首先需要執(zhí)行 ./configure
該腳本將運行一些測試來決定一些系統(tǒng)相關的變量, 并檢測你的操作系統(tǒng)的特殊設置,并且最后將在編譯樹中創(chuàng)建一些文件以記錄它找到了什么。
如果執(zhí)行的過程中報如下錯誤:
configure: error: readline library not found
解決方案:
安裝失敗時會提示執(zhí)行 ./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 中按上下鍵讀取歷史命令,不需要再手動輸入重復的命令
可安裝如下依賴解決該問題:
yum install -y readline-devel
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP