操作PostgreSQL的過程中,在執行psql的時候,遇到了如下錯誤:
/path/to/postgresql/bin/psql: symbol lookup error: /usr/pgsql-9.2/bin/psql: undefined symbol: PQconnectdbParams
整理后發現是,PostgreSQL的動態鏈接庫沒有找到,于是:
echo "/path/to/postgresql/lib" >> /etc/ld.conf.d/pgsql.conf ldconfig
再次執行psql,恢復正常。
原創文章,作者:紅豆殺,如若轉載,請注明出處:http://www.www58058.com/741
好文章