有新版本强迫症,装一个新版本试试
一。网络配置
做个备忘
1.使用vmware安装centos
版本:CentOS Linux release 8.1.1911 (Core)
2.配置NAT网络连接
推荐使用yum方式安装,可自动安装一些依赖的软件
安装教程网上都有,设置网络链接为NAT
如:https://blog.csdn.net/www520507/article/details/81632814
#ip配置文件
cd /etc/sysconfig/network-scripts
vim ifcfg-ens-160
image.png
#修改成下面范例信息
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens160"
UUID="9b42855c-1365-4013-824b-ec2204fafd86"
DEVICE="ens160"
ONBOOT="yes"
IPADDR=192.168.10.201
GATEWAY=192.168.10.2
NETMASK=255.255.255.0
DNS1=192.168.10.2
image.png
这是我的电脑的虚拟机配置
二. cmake安装
- 安装gcc、gcc-c++编译工具,与openssl-devel软件包
如果当前不是root用户,用
sudo yum install -y gcc gcc-c++ openssl-devel
2.解压下载的cmake文件
下载cmake-3.18.6.tar.gz,
#进入用户目录
cd ~
#下载cmake到当前目录
wget https://cmake.org/files/v3.18/cmake-3.18.6.tar.gz
#解压cmake-3.18.6.tar.gz到当前目录cmake-3.18.6,一些历史版本可查看https://cmake.org/files/
tar -zxvf cmake-3.18.6.tar.gz
3.进入cmake-3.18.6目录并执行bootstrap脚本
cd cmake-3.18.6/
./bootstrap
会提示没有找到make
CMake 3.18.6, Copyright 2000-2020 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate Makefile processor on this system.
Please specify one using environment variable MAKE.
---------------------------------------------
Log of errors: /home/atguigu/cmake-3.18.6/Bootstrap.cmk/cmake_bootstrap.log
需要安装make
sudo yum install make
#再次运行bootstrap
./bootstrap
安装完毕后有CMake has bootstrapped. Now run gmake.
#开始编译安装
gmake
#非root用户注意sudo
sudo gmake install
回到用户空间 cd ~
[atguigu@hadoop01 ~]$ gmake --version
GNU Make 4.2.1
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
这样表示安装成功了
网友评论