Start living with new my life

自分が思ったことを書き留めてます。

Ubuntu13.04 PostgreSQLのコンパイル時の対応

PostgreSQLのビルド時に以下のエラーが出たので、色々調べて解決できたので、メモ。

バージョンは下記の通り。

Ubuntu 13.04
PostgreSQL 9.3.4

configure: error: readline library not found
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.
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.

readlineが見つからないと出たので、調べるて以下の通りにreadline6をインストールする。

sudo apt-get install libreadline6

再度ビルドしてみる。と以下のエラーが発生。

gmake: *** [all] Error 1
configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-zlib to disable zlib support.

zlibが見つからない、ということで

sudo apt-get install zlib1g-dev

をインストールし、再度ビルドすると成功!