###macにhomebrewを用いてpostgresqlをいれたい。
brew install postgresql
を実行すると以下のエラーとwarningが出ました。
Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink include/ecpg_config.h /usr/local/include is not writable.
Warning: The post-install step did not complete successfully You can try again using `brew postinstall postgresql`
言われたとうりにbrew postinstall postgresqlは実行しましたが特に変化は起きませんでした。
errorの方の/usr/local/include探してみると存在していませんでした。対処法を教えてください。おねがいします
###追記
macのバージョン
High Sierra 10.13.5
postgreのバージョン 10.4
参考にしたサイトはありません。brew search postgresqlで調べたら見つかったのでinstallしました。
brew doctor
の結果
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link
on these:
postgresql
brew link postgresql
の結果
Error: Could not symlink include/ecpg_config.h
/usr/local/include is not writable.
回答2件
あなたの回答
tips
プレビュー