0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rocky LinuxでPostgreSQLをソースビルドする手順

0
Posted at

はじめに

いつも環境が新しくなるたびにconfigure、makeを叩いてエラーが出るたびに、一個ずつ入れているが、さすがに毎回やるのも微妙かなぁと思い始める今日この頃。

ただのメモレベルですが、以下に情報を残しておきます。()

手順

ソースビルドは以下のとおりprefixしか指定しない場合を想定したものです。
(とりあえず、手元で動かすためだけのビルドなので、当然、RPMで提供されるものとはconfigureのオプションが違うのでご注意ください。)

$ ./configure --prefix=/home/ikki/local/pg18.1/pgsql
$ make

PostgreSQL 18.1 on Rocky Linux 9.7

configure, makeを実行する前に入れておくもの。

# dnf install -y gcc libicu libicu-devel pkgconf-pkg-config bison \
flex readline-devel zlib-devel perl-devel perl perl-core perl-libs

さいごに

長らくPostgreSQLに触っていますが、最近はたまにソースビルドするぐらいでしか触れていないので、毎回セットアップのたびに入れるものを忘れていました。

今後はセットアップに掛かる時間が少しだけ改善するはず。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?