Last active
December 17, 2024 14:50
-
-
Save davidwebca/eb1ef4c28a55258b7cac2e626991e260 to your computer and use it in GitHub Desktop.
Install and compile Curl with SFTP support on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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