14

when I install the caffe on mac according to :

Remaining dependencies, with / without Python

# with Python pycaffe needs dependencies built from source

brew install --build-from-source --with-python -vd protobuf
brew install --build-from-source -vd boost boost-python
# without Python the usual installation suffices
brew install protobuf boost

I paste the second one to the terminal, and result is:

Error: invalid option: --with-python

I can not find any similar problem, can some help me with that?

Klaus D.
  • 13,874
  • 5
  • 41
  • 48
pf wang
  • 141
  • 1
  • 3
  • maybe? "Homebrew/homebrew-core formulae no longer have install options." https://github.com/Homebrew/brew/issues/5732 – anon poster Feb 19 '19 at 03:56

1 Answers1

4

Options have been removed from Homebrew core formulas and only exist in taps now. See this GitHub issue. Building with python has been made the default behavior for protobuf.

See the formula, lines 49-51.

chdir "python" do
  system "python3", *Language::Python.setup_install_args(libexec),
                    "--cpp_implementation"

So it should be fine to run

brew install --build-from-source -vd protobuf
Jason Chen
  • 194
  • 1
  • 5