【问题】
1、查看当前系统是否已经存在gnutls库。
#find / -name libgnutls*
/usr/lib/libgnutls.so.26
/usr/lib/libgnutls-extra.so.26
/usr/lib/libgnutlsxx.so
/usr/lib/libgnutls.so.26.1.3
/usr/lib/libgnutls-openssl.so.26.1.3
/usr/lib/libgnutlsxx.so.26.1.3
/usr/lib/libgnutls-extra.so.26.1.3
/usr/lib/libgnutls.so
/usr/lib/libgnutlsxx.so.26
/usr/lib/libgnutls-openssl.so.26
查询结果发现存在gnutls,但是看不出版本号,姑且认为是大于等于2.8.3版本的。
2、安装filezilla client,报错
#../configure
checking for LIBGNUTLS... no
checking for libgnutls-config... /usr/bin/libgnutls-config
checking for libgnutls - version >= 2.8.3... no
*** An old version of LIBGNUTLS (2.2.2) was found.
*** You need a version of LIBGNUTLS newer than 2.8.3. The latest version of
*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.
***
*** If you have already installed a sufficiently new version, this error
*** probably means that the wrong copy of the libgnutls-config shell script is
*** being found. The easiest way to fix this is to remove the old version
*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the
*** correct copy of libgnutls-config. (In this case, you will have to
*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf
*** so that the correct libraries are found at run-time))
configure: error:
***
*** libgnutls 2.8.3 or greater was not found. You may want to get it from
*** ftp://ftp.gnutls.org/pub/gnutls/
【解决方案】
1、获取符合要求版本的gnutls库安装文件。
ftp://ftp.gnutls.org/gcrypt/gnutls/v2.8/gnutls-2.8.3.tar.bz2
2、解压
#tar -jxvf gnutls-2.8.3.tar.bz2
3、安装
#cd gunutls-2.8.3/
#mkdir build_gnutls
#cd build_gnutls
#../configure
configure: summary of build options:
version: 2.8.3 shared 40:10:14
Host type: i686-pc-linux-gnu
Install prefix: /usr/local
Compiler: gcc -std=gnu99
Warning flags: errors: warnings:
Library types: Shared=yes, Static=yes
Valgrind: valgrind
Guile wrappers: yes
C++ library: yes
OpenSSL library: yes
#make
#make install
4、执行filezilla client安装
#../configure
checking pkg-config is at least version 0.9.0... yes
checking for LIBGNUTLS... yes
checking tinyxml.h usability... no
checking tinyxml.h presence... no
LIBGNUTLS已经ok。