zcash / zcash-gitian

Deterministic build environment for Zcash
https://z.cash/blog/deterministic-builds.html
18 stars 29 forks source link

mac os instructions, brew command correction #133

Closed softminus closed 3 years ago

softminus commented 3 years ago

brew install --cask ./vagrant.rb

needs to be

brew reinstall --cask ./vagrant.rb otherwise it gives an error

charlieok commented 3 years ago

It's using an assumed starting point of a new laptop with no extra stuff installed, but of course steps can be adapted as needed to fit the situation.

Screen Shot 2021-09-27 at 9 07 09 AM
softminus commented 3 years ago

i did start with a clean brew install with nothing installed (having wiped the machine to downgrade it from a monterey macOS beta), it's just that when running all three commands:

$ curl -O -L https://github.com/Homebrew/homebrew-cask/raw/015bd57c9637d517f1a814e46a1ece5de570c263/Casks/vagrant.rb
$ brew install vagrant
$ brew install --cask ./vagrant.rb

as suggested in https://github.com/zcash/zcash-gitian/blob/master/dependency_install_steps_by_platform/macOS.md, the last command gives an error:

Screen Shot 2021-09-27 at 2 11 08 PM
charlieok commented 3 years ago

oh, that's the mistake. I meant to replace brew install vagrantwith brew install --cask ./vagrant.rb, not add a new command. Good catch again!

softminus commented 3 years ago

Ohh ok! i just ran those three commands in order thinking that perhaps the install of vagrant from the repo was necessary to get the dependencies for the custom vagrant version! but if installing from the vagrant.rb works fine then there was no need!