How to solve the mac brew encountered can not download dependencies?

When using the brew install the software, you need to download dependencies, but if dependencies especially large, it is easy to fail; brew itself does not support HTTP; but you can use wget -c way HTTP download dependence; how to install downloaded to brew it? Reference:
https://www.jianshu.com/p/a5bd7ef4ed62

The reason for using brew install, easy to manage

mac brew download cache directory:

~/Library/Caches/Homebrew
 ~/Library/Caches/Homebrew/Cask

Will open see "downloads" directory, which is dependent on the downloaded installation file cache, downloads folder hierarchy with the outside is inside the file downloads substitute, is dependent on that package is not downloaded successfully view terminal described, they used other tools to download down, it must be the same version, under normal circumstances suggesting a direct copy of the address of the terminal to download it.

Well first download dependencies

Find the file name

Brew into the cache directory to see which files, close to the location of the suffix, corresponding to download dependencies name, file suffix: .incomplete, probably because it was not yet complete display temporary file suffix.

如:6b825e455816e590eb425b836e57003f1b1894513fd97b45dac8c9ee5053cf08--nghttp2-1.35.1.tar.xz.incomplete

To modify the original file name randomly generated, but it suffix removed, making it the file name can be decompressed normal, just be careful not to change the random file name!
Then again mounted in the terminal dependencies run command, identifies the BREW has been downloaded, installed directly.

Downloading https://github.com/nghttp2/nghttp2/releases/download/v1.35.1/ngh
Already downloaded: /Users/xxx/Library/Caches/Homebrew/downloads/6b825e455816e590eb425b836e57003f1b1894513fd97b45dac8c9ee5053cf08--nghttp2-1.35.1.tar.xz

When you can not find .incomplete file, because brew has not yet begun to generate temporary files to download, then you click on it to run again.

Guess you like

Origin www.cnblogs.com/shengulong/p/11595587.html