您好,登錄后才能下訂單哦!
這篇文章主要介紹了Centos7上編譯安裝PostgreSQL9.0報錯FATAL: wrong number of index expressions怎么解決的相關知識,內容詳細易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇Centos7上編譯安裝PostgreSQL9.0報錯FATAL: wrong number of index expressions怎么解決文章都會有所收獲,下面我們一起來看看吧。
報錯信息:
-bash-4.2$ /usr/local/pg9.0/bin/initdb -D /usr/local/pg9.0/data/ The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /usr/local/pg9.0/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 32MB creating configuration files ... ok creating template1 database in /usr/local/pg9.0/data/base/1 ... ok initializing pg_authid ... FATAL: wrong number of index expressions STATEMENT: REVOKE ALL on pg_authid FROM public; child process exited with exit code 1 initdb: removing contents of data directory "/usr/local/pg9.0/data"
問題原因:
gcc
版本過高。高版本的gcc
采用了更激進的循環上界分析推導算法。但這會導致一些舊的程序運行出錯。
解決方案:
推薦的方法:升級PostgreSQL到更新的版本。
如果無法更換PG數據庫版本和操作系統版本,則可以采取如下臨時解決方案:
1.在數據庫編譯安裝進行configure操作時,添加參數"-Wno-aggressive-loop-optimizations"
或"-fno-aggressive-loop-optimizations"
。
如:
./configure --prefix=/usr/local/pg9.0 CFLAGS="-Wno-aggressive-loop-optimizations" make clean make make install
我的環境 gcc 4.8.5
關于“Centos7上編譯安裝PostgreSQL9.0報錯FATAL: wrong number of index expressions怎么解決”這篇文章的內容就介紹到這里,感謝各位的閱讀!相信大家對“Centos7上編譯安裝PostgreSQL9.0報錯FATAL: wrong number of index expressions怎么解決”知識都有一定的了解,大家如果還想學習更多知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。