Quick & Easy: Compiling LFTP on Ubuntu 20.04 LTS

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 zlib1g-dev -y
  • 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 -j$(nproc)
  • sudo make install