1
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?

More than 5 years have passed since last update.

CentOS7にPostgreSQL8系をインストールする

Posted at

##はじめに
CentOS7にPostgreSQL8系をインストールしたとき、initdbができず結構ハマったのでメモ

  • centos7
  • ソースからpostgresqlをインストールする前提

##解決方法
gcc-4.4をインストールする
→CentOS7のデフォルトgccバージョンは4.8で、このバージョンでコンパイルすると、initdbに失敗する
 相性が悪い???

##インストール

yum install compat-gcc-44
cd /usr/bin
mv gcc gcc48
ln -s gcc44 gcc

#確認
gcc --version

これでmakeすればいけるはず

1
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
1
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?