centos7.2 源码安装kernel 4.8.1
来源:互联网 发布:k线图基础知识 知乎 编辑:程序博客网 时间:2024/06/06 20:49
从https://www.kernel.org/下载最新的kernel,当前最新的版本为4.8.1。 将下载的kernel解压到/usr/src目录下:
tar -xzvf linux-4.8.1.tar.gz -C /usr/src/
进入到linux-4.8.1的目录下。运行make menuconfig 如果出现如下提示:
[root@localhost linux-4.8.1]# make menuconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/mconf.oIn file included from scripts/kconfig/mconf.c:23:0:scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory #include CURSES_LOC ^compilation terminated.make[1]: *** [scripts/kconfig/mconf.o] Error 1make: *** [menuconfig] Error 2
需要通过yum install ncurses ncurses-devel 来安装ncurses相关的文件。安装完再次运行make menuconfig即可看到图形化的界面,选中save回车即可。 运行make,如果出现如下的错误提示:
scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory #include <openssl/opensslv.h>
说明缺少openssl相关的文件。通过yum groups install "Development and Creative Workstation" "Compatibility Libraries" openssl openssl-devel -y来解决相关的依赖。 接下来运行 make clean && make -j4。此过程十分漫长,和机器性能有关,20分钟到几个小时不等。 然后运行 make modules_install 运行 make install 安装完毕,重启系统,注意选择启动项的时候要选择4.8.1。当然也可以在/boot/grub2/grub.cfg中设置相关的启动项。
terminal_output consoleif [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set default="0" //将第一个启动项设为默认启动项。 set timeout=5# Fallback normal timeout code in case the timeout_style feature is# unavailable.else set default="0" set timeout=5fi
0 0
- centos7.2 源码安装kernel 4.8.1
- centos7.2 源码安装mariadb10.1
- CentOS7.2 源码安装Nginx 1.10.2
- Centos7.2 源码包安装PHP7
- centos7.2源码安装Apache2.4
- centos7.2源码包安装mysql5.6
- CentOS7.2源码安装Subversion1.9.7【填坑记】
- centos7 源码编译安装scons-2.5.1
- Centos7 源码安装 Apache
- Centos7 源码安装 Apache
- centos7源码安装nodejs
- CentOS7 源码安装Xen
- Centos7源码安装mysql
- centos7 源码安装QEMU
- centos7源码安装postgresql
- Linux(centos7) 源码安装cmake
- Centos7下nginx源码安装
- Centos7源码安装Emacs24.5
- ObjC 类的加载和初始化(+load 和 +initialize 方法)
- linux stat函数讲解
- 多线程编程(一)FutureTask 测试类
- 【web】a标签点击时跳出确认框
- openssl编译安装-各种蛋疼
- centos7.2 源码安装kernel 4.8.1
- CSS 相对定位
- java.lang.NullPointerException at org.apache.jsp.index_jsp._jspInit(index_jsp.java:23)
- json和jsonp的区别
- skynet框架 源码分析 二
- 关于form提交表单和onclick事件的触发
- Android 热修复三部曲之基本的Ant打包脚本
- This version of Android Studio is incompatible with the Gradle Plugin used
- myeclipse10破解中 run.bat 闪退