- 安装centos7.9系统
- 语言选择:默认(English(United States)),选择支持“简体中文”
- 软件选择:Base Environment(GNOME Desktop); Add-Ons for Selected Environment(GNOME Applications;Compatibility Libraries;Devlopment Tools;Security Tools;System Administration Tools)
- 文件夹名:Desktop、Documents、Downloads、Music、Pubic等,保留英文名。
- 设置共享文件夹;安装VMware Tools;运行vmware-install.pl
VMware Tools installed on top of open-vm-tools has not added anything of
significance or potential benefit. VMware Tools is not needed.
Would you like to recover the wasted disk space by uninstalling VMware Tools at
this time? (yes/no) [yes] no(注意这里一定要选择no)
- 升级glibc2.23
- 超级用户下执行以下操作:
- mkdir glibc-build
- 直接运行../glibc-2.23/configure,会出现:
*** On GNU/Linux systems the GNU C Library should not be installed into *** /usr/local since this might make your system totally unusable. *** We strongly advise to use a different prefix. For details read the FAQ. *** If you really mean to do this, run configure again using the extra *** parameter `--disable-sanity-checks'. |
因此,运行:../glibc-2.23/configure --disable-sanity-checks
- make;无需更改源代码,不会有任何出错
- make install
- 升级gcc-7.5.0
- 运行:./contrib/download_prerequisites
配置时./contrib/download_prerequisites报错
gmp-6.1.0.tar.bz2: FAILED sha512sum: WARNING: 1 computed checksum did NOT match error: Cannot verify integrity of possibly corrupted file gmp-6.1.0.tar.bz2 |
直接拷贝至gcc-7.5.0文件:gmp-6.1.0.tar.bz2,isl-0.16.1.tar.bz2,mpc-1.0.3.tar.gz,mpfr-3.1.4.tar.bz2;再次运行./contrib/download_prerequisites。
- 创建文件夹:mkdir gcc-build
- 生成makefile: ../gcc-7.5.0/configure -enable-checking=release -enable-languages=c,c++ -disable-multilib
- # make
- # make install
- 升级make-4.2
tar xf make-4.2.tar.gz
cd make-4.2/
./configure
make
make install
make -v
# 此时的 make 还是3.82 与环境变量有关系
/usr/local/bin/make -v
# 这是我们刚安装的 make 它的版本是4.2
whereis make
# 找一下都有哪些 make
cd /usr/bin/
mv make make.bak
# 把默认的 make 改名
ln -sv /usr/local/bin/make /usr/bin/make
# 建立一个软连接
make -v
# 查看一下大功告成
- 编译出错解决办法
1、gl.h #在软件管理器安装mesa-libGL-devel
ln -s /usr/lib64/libssl.so.1.0.2k libssl.so.1.0.0
ln -s libcrypto.so.1.0.2k libcrypto.so.1.0.0
2、activemq-cpp-library-3.9.5编译
软件管理器安装:apr-devel;apr-util-devel