解决CentOS7宝塔面板无法安装Pure-ftpd

1,759次阅读

系统:CentOS Linux 7.6.1810 (Core)

错误信息一

configure: error: C preprocessor “/lib/cpp” fails

正在选择下载节点... Installing pure-ftpd... configure: WARNING: unrecognized options: --with-rfc2640 checking for a BSD-compatible install... /usr/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. ========================================================

问题出在这里configure: error: C preprocessor "/lib/cpp" fails

原因是缺少内核头文件

解决方法:

使用yum安装kernel header`:

yum install kernel-headers

安装时需要输入y

[root@server ~]# yum install kernel-headers Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.newmediaexpress.com * epel: sg.fedora.ipserverone.com * extras: mirror.newmediaexpress.com * updates: mirror.newmediaexpress.com Resolving Dependencies --> Running transaction check ---> Package kernel-headers.x86_64 0:3.10.0-957.27.2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================================================== Package Arch Version Repository Size =========================================================================================================================================== Installing: kernel-headers x86_64 3.10.0-957.27.2.el7 updates 8.0 M Transaction Summary =========================================================================================================================================== Install 1 Package Total download size: 8.0 M Installed size: 3.6 M Is this ok [y/d/N]: y Downloading packages: kernel-headers-3.10.0-957.27.2.el7.x86_64.rpm | 8.0 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: glibc-headers-2.17-260.el7_6.6.x86_64 has missing requires of kernel-headers >= ('0', '2.2.1', None) libdrm-devel-2.4.91-3.el7.x86_64 has missing requires of kernel-headers >= ('0', '2.6.27', '0.144.rc0.git2.fc10') Installing : kernel-headers-3.10.0-957.27.2.el7.x86_64 1/1 Verifying : kernel-headers-3.10.0-957.27.2.el7.x86_64 1/1 Installed: kernel-headers.x86_64 0:3.10.0-957.27.2.el7 Complete!

安装完毕,然后到宝塔面板再进行安装Pure-ftpd,就可以顺利安装了。

———————————————————————–

错误信息二

make: *** No targets specified and no makefile found. Stop

因为Linux下各种依赖都已经安装,是因为没有找到makefile。

如果是自己写的,确定在当前目录下;如果是源码安装,先运行./configure,生成makefile,再执行make,即可正常运行。

所以如果没有安装其他依赖先安装依赖

yum -y install gcc gcc-c++ autoconf automake

yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel

 (安装依赖zlib、openssl和pcre)

正文完
 0
HostZG
版权声明:本站原创文章,由 HostZG 于2020-09-16发表,共计3609字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
RackNerd Leaderboard Banner

HOSTZG

文章搜索
热门文章
搬瓦工上新电子商务+SLA保障套餐,美国洛杉矶DC5 SLA(USCA_5)

搬瓦工上新电子商务+SLA保障套餐,美国洛杉矶DC5 SLA(USCA_5)

搬瓦工今日发布了新产品线推出新款电子商务+SLA保障套餐(ECOMMERCE SLA LOS ANGELES ...
DMIT圣诞促销,洛杉矶VPS 8折起+10%返现,洛杉矶T1全新 AN5硬件设施

DMIT圣诞促销,洛杉矶VPS 8折起+10%返现,洛杉矶T1全新 AN5硬件设施

圣诞节即将来临,DMIT 推出 2025 年圣诞特别活动。这次活动聚焦于 LAX 系列产品线,包括 Pro、E...
DMIT VPS套餐全解析:洛杉矶·香港·东京多机房CN2 GIA高速优化

DMIT VPS套餐全解析:洛杉矶·香港·东京多机房CN2 GIA高速优化

最新DMIT全系VPS套餐深度解析!分为Tier1(经济型,高性价比入门级)、Pro(高端型,大带宽高负载优化...
[黑五]CloudCone,美国特价VPS仅$10.59/年起,机房可选洛杉矶/圣路易斯/雷斯顿

[黑五]CloudCone,美国特价VPS仅$10.59/年起,机房可选洛杉矶/圣路易斯/雷斯顿

CloudCone(简称CC)已正式开启黑色星期五年度促销活动,提供多款VPS、SC2云服务器及独立服务器套餐...
搬瓦工洛杉矶DC5测评,独享CPU,99.99% SLA保障,三网优化线路

搬瓦工洛杉矶DC5测评,独享CPU,99.99% SLA保障,三网优化线路

搬瓦工(BandwagonHost)近日推出全新DC5 SLA机房VPS套餐,专为跨境电商和高负载应用设计,位...
HOSTZG
HOSTZG
科技智变,云启未来!
文章数
747
阅读量
1797879