fbpx

Category: Howto

Download the latest version from http://lftp.yar.ru/

apt-get install -y gcc build-essential automake readline-common libreadline6-dev pkg-config libgnutls-dev ncurses-dev

I've run into many errors during the configure process but this GitHub ticket helped me https://github.com/lavv17/lftp/issues/58

Untar/unzip and then

./configure
make
make check
make install
make clean
make distclean

Errors I've run into.

DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS"

configure: error: in `/.../lftp-4.6.5':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBGNUTLS_CFLAGS
and LIBGNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.



configure: error: Package requirements (gnutls >= 1.0.0) were not met:

No package 'gnutls' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBGNUTLS_CFLAGS
and LIBGNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


configure: error: Package requirements (gnutls >= 1.0.0) were not met:

No package 'gnutls' found


lftp_tinfo.cc: In function âvoid init_terminfo()â:
lftp_tinfo.cc:53:33: error: âsetuptermâ was not declared in this scope
if(setupterm(NULL, 1, &errret) == ERR)
^
lftp_tinfo.cc:53:38: error: âERRâ was not declared in this scope
if(setupterm(NULL, 1, &errret) == ERR)
^
lftp_tinfo.cc: In function âconst char* get_string_term_cap(const char*, const char*)â:
lftp_tinfo.cc:71:63: error: âtigetstrâ was not declared in this scope
const char *ret = tigetstr(const_cast<char *>(terminfo_cap));
^
make[1]: *** [lftp_tinfo.lo] Error 1
make[1]: Leaving directory `/var/www/vhosts/qsandbox.com/users/3/2/qsu32/sites/postpartner2016.qsandbox.com/lftp-4.6.5/src'
make: *** [all-recursive] Error 1

Join our mailing list

Get important news about cool products we release and invitations to beta test new products

Find out the Social networks we're on