栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

基于Centos7.9的Qt5.9.7之TensorFlow2.23编译环境配置

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

基于Centos7.9的Qt5.9.7之TensorFlow2.23编译环境配置

  • 安装centos7.9系统
  1. 语言选择:默认(English(United States)),选择支持“简体中文”
  2. 软件选择:Base Environment(GNOME Desktop); Add-Ons for Selected Environment(GNOME Applications;Compatibility Libraries;Devlopment Tools;Security Tools;System Administration Tools)
  3. 文件夹名:Desktop、Documents、Downloads、Music、Pubic等,保留英文名。
  4. 设置共享文件夹;安装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
  1. 超级用户下执行以下操作:
  2. mkdir glibc-build
  3. 直接运行../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

  1. make;无需更改源代码,不会有任何出错
  2. make install
  • 升级gcc-7.5.0
  1. 运行:./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。

  1. 创建文件夹:mkdir gcc-build
  2. 生成makefile: ../gcc-7.5.0/configure -enable-checking=release  -enable-languages=c,c++  -disable-multilib
  3. # make
  4. # 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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/831529.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号