vpn-kill-switch / killswitch

VPN kill switch for macOS
https://vpn-kill-switch.com
BSD 3-Clause "New" or "Revised" License
166 stars 15 forks source link

Binary download fails from homebrew #3

Closed ilium007 closed 7 years ago

ilium007 commented 7 years ago

Not sure who's issue this one is:

$ brew install killswitch
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
==> Updated Formulae
collectd        convox          doctl           fzf             libphonenumber  mediaconch      node-build      osh             prometheus      sjk             tbb

==> Installing killswitch from vpn-kill-switch/killswitch
==> Downloading https://homebrew.bintray.com/bottles-killswitch/killswitch-0.4.0.sierra.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "killswitch"
Download failed: https://homebrew.bintray.com/bottles-killswitch/killswitch-0.4.0.sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Cloning https://github.com/vpn-kill-switch/killswitch.git
Updating /Users/brantwinter/Library/Caches/Homebrew/killswitch--git
==> Checking out tag 0.4.0
==> make
🍺  /usr/local/Cellar/killswitch/0.4.0: 3 files, 6.6MB, built in 1 minute 5 seconds
nbari commented 7 years ago

Please check this page: https://vpn-kill-switch.com/post/killswitch/

try first:

brew tap vpn-kill-switch/killswitch

And then:

 brew install killswitch
ilium007 commented 7 years ago

Yes, that's what was done as per instructions

nbari commented 7 years ago

Please double check that you have the tap:

brew tap vpn-kill-switch/killswitch

It is not in the official brew repository if that's what you mean, but the software has been installed.

ilium007 commented 7 years ago

Yes

06:23 pm xx@xx-MBA /Volumes/tank/Software
$ brew tap
caskroom/cask
homebrew/core
vpn-kill-switch/killswitch
06:23 pm xx@xx-MBA /Volumes/tank/Software
$
ilium007 commented 7 years ago

Its a 404 error - the file is missing.

06:24 pm xxx@xx-MBA ~
$ curl -Il https://homebrew.bintray.com/bottles-killswitch/killswitch-0.4.0.sierra.bottle.tar.gz
HTTP/1.1 404 Not Found
Server: nginx
Date: Thu, 08 Jun 2017 08:24:58 GMT
Content-Type: application/octet-stream
Content-Length: 0
Connection: keep-alive

06:24 pm xxx@xx-MBA ~
$
ilium007 commented 7 years ago

Uninstall / re-install

06:23 pm xx@xx-MBA /Volumes/tank/Software
$ brew uninstall  killswitch
Uninstalling /usr/local/Cellar/killswitch/0.4.0... (3 files, 6.6MB)
06:24 pm xx@xx-MBA /Volumes/tank/Software
$ brew install killswitch
==> Installing killswitch from vpn-kill-switch/killswitch
==> Downloading https://homebrew.bintray.com/bottles-killswitch/killswitch-0.4.0.sierra.bottle.tar.gz

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "killswitch"
Download failed: https://homebrew.bintray.com/bottles-killswitch/killswitch-0.4.0.sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Cloning https://github.com/vpn-kill-switch/killswitch.git
Updating /Users/brantwinter/Library/Caches/Homebrew/killswitch--git
==> Checking out tag 0.4.0
==> make
🍺  /usr/local/Cellar/killswitch/0.4.0: 3 files, 6.6MB, built in 45 seconds
06:25 pm xx@xx-MBA /Volumes/tank/Software
$
nbari commented 7 years ago

Right, because like mention before project still not in the official brew repository, for being in the official repository some conditions need to be met like the project should have > 50 starts etc. and also someone preferably not the author should to the pull request, so if you are available and would like to help probably you could do this.

GrayedFox commented 7 years ago

@nbari does this mean that even if we follow the instructions to install on Mac, it is impossible to install available via brew right now?

I'm on Mac, was going about to install! 😸

ilium007 commented 7 years ago

No, it installs fine. It just compiles rather than just installing a binary. Follow the instructions and it works fine.