November 10, 2015 · windows lftp compile cygwin Windows 10 Windows Server
Compiling LFTP for windows with chocolatey & cygwin
Compiling lftp under cygwin is actually pretty simple when you use chocolately and cygwin and know what packages you need
Install cygwin, cygwin packages via chocolately
- Run Command Prompt
cmdas Administrator @powershell Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Install Packages
choco install cyg-get wget zlib-devel libgnutls-devel libncurses-devel bison autoconf gcc-core gcc-g++ make pkg-config libreadline7 libreadline-devel libexpat1 openssl openssl-dev libssl libssl-devel --source=cygwin
Compile LFTP
- Run Command Prompt
cmdthen typecygwinand enter wget http://lftp.yar.ru/ftp/lftp-4.9.2.tar.gztar zxvf lftp-4.9.2.tar.gz && cd lftp-4.9.2./configure(with gnutls)./configure --without-gnutls --with-opensslwith opensslmake -j$(nproc)make install
Run lftp
lftp -v
Note
thanks to langioletto for cygwin within chocolatly packages info