a simple guide to compile lftp on linux

  • sudo apt-get install openssl build-essential libreadline-dev libssl-dev ncurses-dev libgnutls28-dev pkg-config -y
  • mkdir -p src/lftp && cd src/lftp
  • wget http://lftp.yar.ru/ftp/$(wget -O- http://lftp.yar.ru/ftp/ | egrep -o 'lftp-[0-9\.]+.tar.gz' | sort -V | tail -1)
  • tar zxvf lftp-*.tar.gz && cd lftp-* (or change to your version)
  • ./configure (compile with with gnutls, or )
  • ./configure --without-gnutls --with-openssl (compile with openssl)
  • make -j8 && sudo make install