centos7.x安装pureftpd会报两组错误:
1.会报–with-rfc2640错误 低版本的Linux不支持此协议,可以找到/www/server/panel/install/pureftpd.sh 删除此段代码,也可以在结尾加入 –with-eyerything
2.configure: error: The Sodium crypto library libraries not found. 会报此错误 sodium.h: No such file or directory
In file included from alt_arc4random.c:9:0: utils.h:5:21: fatal error: sodium.h: No such file or directory # include <sodium.h> ^ compilation terminated. make[2]: *** [alt_arc4random.o] Error 1 make[2]: Leaving directory `/root/pure-ftpd-1.0.49/src’ make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/pure-ftpd-1.0.49′ make: *** [all] Error 2
解决办法:
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18-stable.tar.gz
tar -zxf libsodium-1.0.18-stable.tar.gz
cd libsodium-stable
./configure –prefix=/usr
make && make check
make install
ldconfig
然后再重新执行安装或者ssh上执行
sh /www/server/panel/install/pureftpd.sh install
均可安装