共计 2544 个字符,预计需要花费 7 分钟才能阅读完成。
安装宝塔面板中的 Pure-ftpd 时,一直安装不上,出现以下报错
<pre id="execLog" class="command_output_pre"><code class='language-default'>--2024-12-18 20:38:01-- https://node.aapanel.com/install/1/pureftpd.sh Resolving node.aapanel.com (node.aapanel.com)... 2606:4700:3031::6815:4fc4, 2606:4700:3034::ac43:ab07, 104.21.79.196, ... Connecting to node.aapanel.com (node.aapanel.com)|2606:4700:3031::6815:4fc4|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6176 (6.0K) [application/octet-stream] Saving to:‘pureftpd.sh’0K ...... 100% 53.3M=0s 2024-12-18 20:38:01 (53.3 MB/s) -‘pureftpd.sh’saved [6176/6176] selecting download node... selecting download node... Installing pure-ftpd... configure: WARNING: unrecognized options: --with-rfc2640 checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking for ranlib... ranlib checking how to run the C preprocessor... /lib/cpp configure: error: in `/root/pure-ftpd-1.0.49': configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details make: *** No targets specified and no makefile found. Stop. ======================================================== CentOS Linux release 7.9.2009 (Core) Bit:64 Mem:979M Core:1 gcc:4.8.5 cmake:2.8.12.2 Linux 5.15.60-1.el7.x86_64 x86_64 ERROR: pure-ftpd installation failed. |-Successify --- Command executed! ---</code></pre>
发现主要是提示这个错误
configure: error: in `/root/pure-ftpd-1.0.49′: configure: error: C preprocessor “/lib/cpp” fails sanity check See `config.log’ for more details make: *** No targets specified and no makefile found. Stop.
google 了下,找到资料说是开启 BBR 升级内核时可能改动内核把一些依赖包给删掉了,缺少部分,依赖都已经安装, 没有找到 makefile
解决方法:
使用 yum
安装kernel header
`
yum install kernel-headers
yum -y install gcc gcc-c++ autoconf automake
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
安装完毕,然后到宝塔面板再进行安装Pure-ftpd
,就可以顺利安装了。
正文完