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

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

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

DrupalはPHPで書かれたオープンソースのCMSフレームワークです。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

Q&A

2回答

659閲覧

homebrew でdrushをインストールする

R2D7

総合スコア16

Drupal

DrupalはPHPで書かれたオープンソースのCMSフレームワークです。

MacOS(OSX)

MacOSとは、Appleの開発していたGUI(グラフィカルユーザーインターフェース)を採用したオペレーションシステム(OS)です。Macintoshと共に、市場に出てGUIの普及に大きく貢献しました。

0グッド

0クリップ

投稿2018/05/25 02:38

Drupalのサイト構築のために、drushをインストールする作業で、
下記のエラーが表示されます。

$ brew install drush Error: No available formula with the name "drush" ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching for similarly named formulae... ==> Searching local taps... Error: No similarly named formulae found. ==> Searching taps... ==> Searching taps on GitHub... Error: No formulae found in taps.

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

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

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

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

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

guest

回答2

0

数年前(drupal7の頃)であれば、drushのインストールにhomebrewでもcomposerからでもその意味に大きな違いはありませんでした。

現在(drupal8)ではdrupalのプロジェクト管理にcomposerの利用が推奨されていることもあり、composerからdrushdrush launcherをインストールすることをオススメします。この方法では、drushをグローバルにインストールせずプロジェクト単位で管理しつつ、プロジェクトルートからパスを含めてvendor/bin/drushなどとコマンドを入力せずに、drushをグローバルにインストールしているかの様に利用が可能です。

また、新しくプロジェクトを始める場合はすでにcomposerがあれば、以下のコマンドで必要なファイルが揃います。 Composer template for Drupal projects

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction

これにはdrushが含まれますので、Drush Launcher を追加でインストールすると良いと思います。

投稿2018/05/25 05:53

snize

総合スコア94

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

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

0

エラーメッセージを読みましょう。

No available formula with the name "drush"

これが全てです。"drush" というものはbrewに無いよ、と書いてあります。

公式サイトのインストール方法を参照しましたか?

投稿2018/05/25 02:49

編集2018/05/25 02:53
mather

総合スコア6753

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

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

R2D7

2018/05/25 02:52

意味は理解しているのですが、homebrewからではdrushをインストールできないと言うことでしょうか?
mather

2018/05/25 02:54

はい。公式サイトに Homebrew でのインストール方法は紹介されていません。
mather

2018/05/25 02:58

ちなみに、 brew search というコマンドがあるのはご存知ですか?
R2D7

2018/05/25 03:03

はい。 下記の結果となっております。 ``` $ brew search drush ==> Searching local taps... ==> Searching taps on GitHub... ==> Searching blacklisted, migrated and deleted formulae... No formula found for "drush". Closed pull requests: drush 9.2.1 (https://github.com/Homebrew/homebrew-php/pull/4793) drush 9.2.0 (https://github.com/Homebrew/homebrew-php/pull/4789) drush 9.1.0 (https://github.com/Homebrew/homebrew-php/pull/4754) Bump drush-launcher to 0.6.0 (https://github.com/Homebrew/homebrew-php/pull/4807) drush 9.0.0 (https://github.com/Homebrew/homebrew-php/pull/4728) Make drush launcher phar executable. (https://github.com/Homebrew/homebrew-php/pull/4756) New drush-launcher (follow deployer example) (https://github.com/Homebrew/homebrew-php/pull/4662) Add formula for drush-launcher (https://github.com/Homebrew/homebrew-php/pull/4549) drush 8.1.15 (https://github.com/Homebrew/homebrew-php/pull/4529) Upgrade drush to 6.4.0 (https://github.com/Homebrew/homebrew-php/pull/1406) Update drush to 8.1.14 (https://github.com/Homebrew/homebrew-php/pull/4522) drush 8.1.12 (https://github.com/Homebrew/homebrew-php/pull/4292) drush 8.1.11 (https://github.com/Homebrew/homebrew-php/pull/4130) drush 8.1.10 (https://github.com/Homebrew/homebrew-php/pull/4010) drush@5: import from homebrew/versions. (https://github.com/Homebrew/homebrew-php/pull/4036) drush 8.1.9 (https://github.com/Homebrew/homebrew-php/pull/3914) terminus 1.6.0 (https://github.com/Homebrew/homebrew-php/pull/4515) drush 8.1.8 (https://github.com/Homebrew/homebrew-php/pull/3875) Bulk import from homebrew/versions (1/7) (https://github.com/Homebrew/homebrew-core/pull/10857) drush 8.1.3 (https://github.com/Homebrew/homebrew-php/pull/3462) drush 8.1.2 (https://github.com/Homebrew/homebrew-php/pull/3163) drush 8.0.5 (https://github.com/Homebrew/homebrew-php/pull/2947) drupal-code-sniffer 8.x-2.10 (https://github.com/Homebrew/homebrew-php/pull/3881) Remove drush. (https://github.com/Homebrew/legacy-homebrew/pull/31726) Drush patch (https://github.com/Homebrew/legacy-homebrew/pull/4571) Update drush.rm for Drush 6 (https://github.com/Homebrew/legacy-homebrew/pull/20039) drush 6.3.0 (https://github.com/Homebrew/legacy-homebrew/pull/30405) Drush 6.1.0 (https://github.com/Homebrew/legacy-homebrew/pull/22786) drush 6.0 (https://github.com/Homebrew/legacy-homebrew/pull/22028) drush 5.9 (https://github.com/Homebrew/legacy-homebrew/pull/19310) Updated Drush 5.3 (https://github.com/Homebrew/legacy-homebrew/pull/12487) Drush 4.4 (https://github.com/Homebrew/legacy-homebrew/pull/4678) Drush 4.3 (https://github.com/Homebrew/legacy-homebrew/pull/4666) Drush 4.3 (https://github.com/Homebrew/legacy-homebrew/pull/4665) drush version 4.2 (https://github.com/Homebrew/legacy-homebrew/pull/4154) Update drush formular (https://github.com/Homebrew/legacy-homebrew/pull/3803) Updating drush.rb (https://github.com/Homebrew/legacy-homebrew/pull/3659) drush 8.0.3 (https://github.com/Homebrew/homebrew-php/pull/2852) Updating drush to 5.9 (https://github.com/Homebrew/legacy-homebrew/pull/19286) Updated drush to 5.7 (https://github.com/Homebrew/legacy-homebrew/pull/14301) drush: Add HEAD git repository. (https://github.com/Homebrew/legacy-homebrew/pull/8238) Update drush to 4.5. (https://github.com/Homebrew/legacy-homebrew/pull/6957) Drush HEAD build depends on composer. (https://github.com/Homebrew/legacy-homebrew/pull/31696) drush: added wrapper to use HOMEBREW_PREFIX. (https://github.com/Homebrew/legacy-homebrew/pull/25245) drush 8.x-6.0-rc4 (https://github.com/Homebrew/legacy-homebrew/pull/21842) drush 8.x-6.0-rc2 (https://github.com/Homebrew/legacy-homebrew/pull/21841) Updated drush to version 5.8 (https://github.com/Homebrew/legacy-homebrew/pull/16010) Update drush to version 5.6 (https://github.com/Homebrew/legacy-homebrew/pull/14151) Update drush formula to 5.5 (https://github.com/Homebrew/legacy-homebrew/pull/14079) Update Drush to version 5.3 (https://github.com/Homebrew/legacy-homebrew/pull/12498) Updated Drush formula to version 5.2 (https://github.com/Homebrew/legacy-homebrew/pull/12349) Updated Drush formula to version 5.1. (https://github.com/Homebrew/legacy-homebrew/pull/11530) Update to drush make 2.3 (https://github.com/Homebrew/legacy-homebrew/pull/7010) Update drush to 4.5-rc1. (https://github.com/Homebrew/legacy-homebrew/pull/6452) Update /Library/Formula/drush.rb to latest version (drush-7.x-5.4) (https://github.com/Homebrew/legacy-homebrew/pull/12593) update to drush 8.x-6.0-rc2 (https://github.com/Homebrew/legacy-homebrew/pull/21325) Adds Drush 6 formula for stable beta release (https://github.com/Homebrew/legacy-homebrew/pull/20134) drush 5.9 adding bash_completion to the formula (https://github.com/Homebrew/legacy-homebrew/pull/20029) Drush HEAD no longer using the master branch (https://github.com/Homebrew/legacy-homebrew/pull/16666) Updated Drush to version 7.x-5.0. (https://github.com/Homebrew/legacy-homebrew/pull/11239) Just an update of drush to v4.1 (https://github.com/Homebrew/legacy-homebrew/pull/3864) Update the drush formula to version 4.0 (https://github.com/Homebrew/legacy-homebrew/pull/3854) *URGENT* Forgot to change version number for drush formula update (https://github.com/Homebrew/legacy-homebrew/pull/3663) Update drush to 8.0.2 (https://github.com/Homebrew/homebrew-php/pull/2781) Adds club formula (https://github.com/Homebrew/homebrew-php/pull/3749) Update Drush formula to 8.0.0 (https://github.com/Homebrew/homebrew-php/pull/2528) drupal-code-sniffer 8.x-2.7 (https://github.com/Homebrew/homebrew-php/pull/3082) drush: cleanup (https://github.com/Homebrew/homebrew-php/pull/1805) added a drush version 6.5 formula (https://github.com/Homebrew/homebrew-versions/pull/893) Created formula for installing drush version 6.5 (https://github.com/Homebrew/homebrew-versions/pull/892) Upgrade Drush to version 7.0.0 (https://github.com/Homebrew/homebrew-php/pull/1800) certs: add certificates update cmd (https://github.com/Homebrew/brew/pull/241) terminus 0.10.3 (new formula) (https://github.com/Homebrew/homebrew-php/pull/2873) Move drush from main homebrew to homebrew-php (https://github.com/Homebrew/homebrew-php/pull/1305) Update drush.rb (https://github.com/Homebrew/homebrew-php/pull/1451) Doctor: suggest stashing untracked files rather than deleting (https://github.com/Homebrew/legacy-homebrew/pull/15837) version 5 of drush (https://github.com/Homebrew/homebrew-versions/pull/217) drupal-code-sniffer: added drush integration. (https://github.com/Homebrew/homebrew-php/pull/923) drupal-code-sniffer: Adapt to recent change in drush formula. (https://github.com/Homebrew/homebrew-php/pull/1004) Drush homepage updated to new location. (https://github.com/Homebrew/homebrew-versions/pull/223) Added Drush 4 for those who want an older version of Drush: drush4.rb (https://github.com/Homebrew/homebrew-versions/pull/49) Added Drush 4.6 (https://github.com/Homebrew/homebrew-versions/pull/22) ```
mather

2018/05/25 04:20

このなかから drush 9.2.1 (https://github.com/Homebrew/homebrew-php/pull/4793) などのURLにアクセスしていろいろ調べるとbrewでインストール可能になる方法もあるのですが、どうしてもHomebrew経由でインストールしたいのであればご自身で探してみてください。 私自身は公式サイトに載っている方法を使うことをオススメします。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問