grpc: "cannot find zipfile directory in one of gmock-1.7.0.zip" error
Using the below command to build grpc:
git clone -b v1.0.0 --recursive https://github.com/grpc/grpc.git && cd grpc/third_party/protobuf && ./autogen.sh && ./configure && make -j8 && make install && cd ../.. && ldconfig && make -j8 && make install && cd /tmp && rm -rf /tmp/grpc
Getting this error:
Google Mock not present. Fetching gmock-1.7.0 from the web...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 49 100 49 0 0 202 0 --:--:-- --:--:-- --:--:-- 203
[gmock-1.7.0.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of gmock-1.7.0.zip or
gmock-1.7.0.zip.zip, and cannot find gmock-1.7.0.zip.ZIP, period.
It used to build fine ~1 week ago.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18
FWIW, I’ve worked around the issue by patching the sources with the fix from master as below. The “curl … | patch …” command does the trick.
Hmm, could someone fix the last stable 3.0 release so you can build without patching? It’s a single cherry pick to make the new release.