ros / homebrew-deps

Homebrew Formula for common system ROS dependencies
8 stars 54 forks source link

Gtest URL error #21

Open nckswt opened 8 years ago

nckswt commented 8 years ago

The following command fails:

$ brew install gtest
==> Installing gtest from ros/deps
==> Downloading http://googletest.googlecode.com/files/gtest-1.7.0.zip

curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "gtest"
Download failed: http://googletest.googlecode.com/files/gtest-1.7.0.zip

Because http://googletest.googlecode.com/files/gtest-1.7.0.zip returns 404.

sfinucane commented 8 years ago

gtest is now hosted on GitHub at:

https://github.com/google/googletest/archive/release-1.8.0.tar.gz

and the corresponding version (if 1.8.0 proves incompatible):

https://github.com/google/googletest/archive/release-1.7.0.tar.gz

brianhou commented 8 years ago

Editing the gtest formula to point to those links didn't work for me because they don't have configure scripts. I was able to make it work by downloading the zip, manually running autoconf, and creating a new zip including the configure script.

wjwwood commented 8 years ago

@brianhou what commands did you run exactly to get it to build (what arguments to autoconf)?

It would be great if someone could open a pull request with the appropriate fix. Thanks for reporting it!