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 cmd as 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 cmd then type cygwin and enter
  • wget http://lftp.yar.ru/ftp/lftp-4.9.2.tar.gz
  • tar zxvf lftp-4.9.2.tar.gz && cd lftp-4.9.2
  • ./configure (with gnutls)
  • ./configure --without-gnutls --with-openssl with openssl
  • make -j$(nproc)
  • make install

Run lftp

  • lftp -v

Note

thanks to langioletto for cygwin within chocolatly packages info