git-ftp icon indicating copy to clipboard operation
git-ftp copied to clipboard

macOS with SFT: curl install can be much easier

Open LukasFritzeDev opened this issue 1 year ago • 1 comments

The installation read me file describes how to compile curl on your own. This is not necessary since brew brings a curl version that supports all the required protocols. It is already installed when using brew and only needs to be correctly added to $PATH:

> /opt/homebrew/opt/curl/bin/curl --version
curl 8.11.1 (aarch64-apple-darwin24.1.0) libcurl/8.11.1 OpenSSL/3.4.0 (SecureTransport) zlib/1.2.12 brotli/1.1.0 zstd/1.5.6 AppleIDN libssh2/1.11.1 nghttp2/1.64.0 librtmp/2.3
Release-Date: 2024-12-11
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

To use this version of curl just do what brew info curl tells you to do: Add /opt/homebrew/opt/curl/bin to the $PATH variable. For example with:

echo 'export PATH="/opt/homebrew/opt/curl/bin:$PATH"' >> ~/.zshrc

LukasFritzeDev avatar Jan 06 '25 20:01 LukasFritzeDev

I can prepare a pull request to update the documentation next week or so…

LukasFritzeDev avatar Jan 06 '25 20:01 LukasFritzeDev