質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

Q&A

1回答

2028閲覧

postgresql11のbrew linkでErrorになる。

ogw

総合スコア8

PostgreSQL

PostgreSQLはオープンソースのオブジェクトリレーショナルデータベース管理システムです。 Oracle Databaseで使われるPL/SQLを参考に実装されたビルトイン言語で、Windows、 Mac、Linux、UNIX、MSなどいくつものプラットフォームに対応しています。

0グッド

0クリップ

投稿2018/11/06 07:33

編集2022/01/12 10:55

解決したい事

PostgreSQL11がlinkできない(またはできているがErrorになってしまう)のを解決したいです。

$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! 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 Linking /usr/local/Cellar/postgresql/10.5... Error: Could not symlink bin/clusterdb Target /usr/local/bin/clusterdb is a symlink belonging to postgresql@11. You can unlink it: brew unlink postgresql@11 To force the link and overwrite all conflicting files: brew link --overwrite postgresql To list all files that would be deleted: brew link --overwrite --dry-run postgresql
$ brew search postgresql ==> Formulae petere/postgresql/postgresql-common petere/postgresql/postgresql@9.3 petere/postgresql/postgresql@10 petere/postgresql/postgresql@9.4 petere/postgresql/postgresql@11 ✔ petere/postgresql/postgresql@9.5 petere/postgresql/postgresql@12 petere/postgresql/postgresql@9.6 petere/postgresql/postgresql@8.3 postgresql ✔ petere/postgresql/postgresql@8.4 postgresql@9.4 petere/postgresql/postgresql@9.0 postgresql@9.5 petere/postgresql/postgresql@9.1 postgresql@9.6 petere/postgresql/postgresql@9.2
$ vi .bashrc export PGDATA=/usr/local/var/postgres11 export PATH="$HOME/.rbenv/shims:$PATH"

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

つbrew link --overwrite postgresql@11

投稿2018/11/06 18:05

hichon

総合スコア5737

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

ogw

2018/11/07 06:17 編集

ご回答頂ありがとうございます。 試してみたのですが、brew doctor でWarningとなってしまいます。 他の解決方法あればご教授頂けたらと存じます。 ``` $ brew link --overwrite postgresql@11 Warning: Already linked: /usr/local/Cellar/postgresql@11/11.0 To relink: brew unlink postgresql@11 && brew link --force postgresql@11 $ brew unlink postgresql@11 && brew link --force postgresql@11 Unlinking /usr/local/Cellar/postgresql@11/11.0... 785 symlinks removed Linking /usr/local/Cellar/postgresql@11/11.0... 785 symlinks created If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/postgresql@11/bin:$PATH"' >> ~/.bash_profile $ vi .bash_profile $ source .bash_profile $ psql --version psql (PostgreSQL) 11.0 (Homebrew petere/postgresql) $ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! 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 brew ln, link [--overwrite] [--dry-run] [--force] formula: Symlink all of formula's installed files into the Homebrew prefix. This is done automatically when you install formulae but can be useful for DIY installations. If --overwrite is passed, Homebrew will delete files which already exist in the prefix while linking. If --dry-run or -n is passed, Homebrew will list all files which would be linked or which would be deleted by brew link --overwrite, but will not actually link or delete any files. If --force (or -f) is passed, Homebrew will allow keg-only formulae to be linked. Error: Invalid usage: This command requires a keg argument ``` ----- $ vi .bash_profile export PATH=/usr/local/bin:$PATH export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" export PATH="/usr/local/opt/mysql@5.7/bin:$PATH" export PATH="/usr/local/opt/postgresql@11/bin:$PATH"
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問