brew install postgresql で、perl.h がどうのこうのでコケる
はい、macに環境を構築しようと四苦八苦しているのですが、
postgresqlをインストールしようとすると、なんかエラーでコケます。
postgresqlのバージョンは11です。
brew install postgresql
(略)
hecking tcl.h presence... yes
checking for tcl.h... yes
checking for perl.h... no
configure: error: header file
Do not report this issue to Homebrew/brew or Homebrew/core!
どうも、perlでエラーになるようなんですが、原因が良くわからない。
試しに、perlを個別にインストールしてみると上手くいく。
brew install perl
とりあえず単独でperl入れられたから、postgresql上は入れないようにしたい、
と思ってい調べたら、--without-perlというのがあるも、これはバージョン9.6以降は使えない。
ということで、以下の方法で除外したら上手く行きました。
brew edit postgresql
※--with-perl 行を除外
brew install postgresql
pipenv install -d
インストール内容のセットをedit出来るんですね。
参考:
https://github.com/petere/homebrew-postgresql/issues/44
https://github.com/petere/homebrew-postgresql/issues/41
https://github.com/hhvm/homebrew-hhvm/issues/122
https://github.com/Homebrew/linuxbrew-core/pull/13036
コメント