Skip to content

Instantly share code, notes, and snippets.

@davidwebca
Last active November 30, 2023 19:58
Show Gist options
  • Save davidwebca/eb1ef4c28a55258b7cac2e626991e260 to your computer and use it in GitHub Desktop.
Save davidwebca/eb1ef4c28a55258b7cac2e626991e260 to your computer and use it in GitHub Desktop.
Install and compile Curl with SFTP support on Mac
sudo rm /usr/local/bin/curl
sudo rm /usr/local/bin/curl-config
# If needed
# xcode-select --install
brew install git brotli git-ftp openssl libssh2
brew uninstall --ignore-dependencies curl
curl https://curl.se/download/curl-8.4.0.zip --output curl.zip
unzip curl.zip
cd curl-8.4.0
./configure -q --prefix=/usr/local --with-libssh2=$(brew --prefix libssh2) --with-ssl=$(brew --prefix openssl)
sudo make
sudo make install
# If needed
# echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.zshrc
# echo "\r\nexport PATH=/usr/local/bin:\$PATH" >> ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment