最近折腾谷歌BBR加速,安装BBR内核后、导致NGINX等软件无法编译安装……全网所有的教程解决方案都试了一遍,无效!什么依赖该装装、该升级升级,没用!最后自己突然想到把内核更新下试试,结果就OK了。写份“CentOS7.X更新最新版本内核「RPM直接安装内核」”,帮助很多遇到同样问题,却找不到解决办法的小伙伴(毕竟生产环境比额外加速啥的更重要啊)。
wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-5.5.9-1.el7.elrepo.x86_64.rpm
rpm kernel-ml-5.5.9-1.el7.elrepo.x86_64.rpm
grub2-editenv list
awk -F \' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
grub2-set-default 'CentOS Linux (5.5.9-1.el7.elrepo.x86_64) 7 (Core)'
grub2-editenv list
reboot
wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-headers-5.5.9-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-headers-5.5.9-1.el7.elrepo.x86_64.rpm
wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-devel-5.5.9-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-devel-5.5.9-1.el7.elrepo.x86_64.rpm
uname -a
rpm -qa | grep kernel
yum remove kernel-x.xx.x
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.
checking for uint32_t ... uint32_t not found, u_int32_t not found
./configure: error: can not define uint32_t
make: *** No rule to make target `build', needed by `default'. Stop.
make: *** No rule to make target `install'. Stop.
gmake: *** [default] Error 2
ERROR: failed to run command: gmake TARGET_STRIP=@: CCDEBUG=-g XCFLAGS='-DLUAJIT_ENABLE_LUA52COMPAT -msse4.2' CC=cc PREFIX=/www/server/nginx/luajit
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。