LoginSignup
1
0

More than 5 years have passed since last update.

[Mohave] brew install protobufに失敗

Posted at

以下の2つのエラーでhomebrewでprotobufをインストールできなかった。
あんまり社内でも話題になってないから、Mohaveで新規に入れようとした時に問題になる?

Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/protobuf.rb:38
Error: Calling 'fails_with :clang' with 'build' < 600 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb:60

(というか1つ目をコメントアウトしたら2つ目が出てきた。)

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/ 配下にあるファイルを以下の通り編集。

diff --git a/Formula/protobuf.rb b/Formula/protobuf.rb
index 6ccb4552..f2ed1515 100644
--- a/Formula/protobuf.rb
+++ b/Formula/protobuf.rb
@@ -32,7 +32,7 @@ class Protobuf < Formula
     sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
   end

-  needs :cxx11
+  #needs :cxx11

   # Upstream PR from 3 Jul 2018 "Add Python 3.7 compatibility"
   patch do
diff --git a/Formula/python.rb b/Formula/python.rb
index 9dbcf52e..f3b7dfd9 100644
--- a/Formula/python.rb
+++ b/Formula/python.rb
@@ -51,10 +51,10 @@ class Python < Formula
     sha256 "0a2e54558a0628f2145d2fc822137e322412115173e8a2ddbe1c9024338ae83c"
   end

-  fails_with :clang do
-    build 425
-    cause "https://bugs.python.org/issue24844"
-  end
+  #fails_with :clang do
+  #  build 425
+  #  cause "https://bugs.python.org/issue24844"
+  #end

   # Homebrew's tcl-tk is built in a standard unix fashion (due to link errors)
   # so we have to stop python from searching for frameworks and linking against

これでとりあえず、 brew install protobuf 成功..
これで良かったのかな。

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