Linux 下面 PG 的 uuid-ossp 包安裝辦法

  1. pgsql 安裝 時報錯, 如圖示:
    在這裏插入圖片描述
    詳細信息爲:
執行SQL爲:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"

錯誤纖細信息爲:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
> ERROR:  could not open extension control file "/usr/pgsql-10/share/extension/uuid-ossp.control": No such file or directory
  
> 時間: 0.137s

2.google了下 最簡單的解決辦法是安裝一個 contrib 的包即可

yum install  postgresql10-contrib.x86_64 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章