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(''))

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
  • 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


thanks to langioletto for cygwin within chocolatly packages info

DigitalOcean Referral Badge
Keep my site online & receive a $100 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Proudly published with Ghost | Header Image by GUWEIZ@DeviantArt Creative Commons Licence