Skip to content

Commit 17eb5a1

Browse files
yingsu00facebook-github-bot
authored andcommitted
Fix "wget: command not found" error when installing ccache (facebookincubator#10995)
Summary: In "Install FMT and download ccache on MacOS (facebookincubator#10933)", wget was used to download ccache in setup-macos.sh. However, wget is not pre-installed on MacOs by default, and the following error was thrown: ``` + wget -O ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-darwin.tar.gz ../scripts/setup-macos.sh: line 80: wget: command not found + tar -xf ccache.tar.gz tar: Error opening archive: Failed to open 'ccache.tar.gz' ``` This commit changes wget to curl, which is guaranteed to be pre-installed on MacOS. Pull Request resolved: facebookincubator#10995 Reviewed By: pedroerp Differential Revision: D62646279 Pulled By: kevinwilfong fbshipit-source-id: aaa2365ae013bb012f25556d4741e3a08ea7ef82
1 parent ab69ce0 commit 17eb5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setup-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function install_build_prerequisites {
7777
python3 -m venv ${PYTHON_VENV}
7878
fi
7979
source ${PYTHON_VENV}/bin/activate; pip3 install cmake-format regex pyyaml
80-
wget -O ccache.tar.gz https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-darwin.tar.gz
80+
curl -L https://github.com/ccache/ccache/releases/download/v4.10.2/ccache-4.10.2-darwin.tar.gz > ccache.tar.gz
8181
tar -xf ccache.tar.gz
8282
mv ccache-4.10.2-darwin/ccache /usr/local/bin/
8383
}

0 commit comments

Comments
 (0)