Ubuntu Linux 安装 GCC Compiler
Ubuntu Linux 安装 GCC Compiler
Auto-Configuration Error: Cannot find gcc or CC; either correct your path or set the CC environment variable
1. Installing GCC Compiler on Ubuntu
The default Ubuntu repositories contain a meta-package named build-essential
that contains the GCC compiler and a lot of libraries and other utilities required for compiling software.
默认的 Ubuntu repository 包含一个名为 build-essential
的 meta-package,其中包含 GCC 编译器和许多编译软件所需的库和其他实用程序。
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ which gcc
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ sudo apt update
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ sudo apt install build-essential
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ sudo apt-get install manpages-dev
(1) Start by updating the packages list:
sudo apt update
(2) Install the build-essential
package by typing:
sudo apt install build-essential
The command installs a bunch of new packages including gcc, g++ and make. You may also want to install the manual pages about using GNU/Linux for development:
sudo apt-get install manpages-dev
2. 查看 GCC 版本
The default version of GCC available in the Ubuntu 18.04 repositories is 7.5.0:
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ which gcc
/usr/bin/gcc
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$
(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.(base) yongqiang@yongqiang:~/tensorflow_work/tensorflow$
References
https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/
Ubuntu Linux 安装 GCC Compiler相关推荐
- Ubuntu上安装GCC编译器
Ubuntu上安装GCC编译器 GNU编译器集合(GCC)是C.C ++.Objective-C.Fortran.Ada.Go和D编程语言的编译器和库的集合.许多开源项目包括GNU工具和Linux内核 ...
- Redhat linux 安装 gcc编译器,Gcc源码包,rpm包安装方法!
点评:分两种情况: 先看这篇转过来的文章,俺老孙懒得写了. Linux软件安装通用思路 在Linux系统中,软件安装程序比较纷繁复杂,不过最常见的有两种: 1)一种是软件的源代码,您需要自己动手编译它 ...
- linux csh 安装,linux安装gcc的shell脚本
原标题:linux安装gcc的shell脚本 GCC是GUN Compiler Collection的简称,除了编译程序之外,它还含其他相关工具,它能把易于人类使用的高级语言编写的源代码构建成计算机能 ...
- 【ubuntu(Linux)安装Vs code并配置c++编译及cmake多文件编译】
目录标题 VS code配置c++编译环境 1. Linux系统安装 2. 在Ubuntu中安装VS code 2.1. 首先下载对应系统的VS code安装包 2.2. 安装VS code 3. 在 ...
- Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题)
Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题) 参考文章: (1)Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题) (2)https://www.cnblogs. ...
- Ubuntu Linux 安装后,建立嵌入式开发环境
Ubuntu Linux 安装后,建立嵌入式开发环境 from:http://xfenglin.com/a/12001485885.html 浏览: 10 发布日期: 2016-08-17 分类: u ...
- 如何在Ubuntu上安装GCC编译器
如何在Ubuntu上安装GCC编译器 1.首先更新包列表 sudo apt update 2.安装build-essential软件包: sudo apt install build-essentia ...
- 即兴操作:详解Linux安装GCC方法-------------------------这操作很简单搞一波试试看
详解Linux安装GCC方法 起锅烧油先准备七个包配置文件以便于查看 上传http-2.4.25.tar.gz软件包到/opt目录下 解压压缩包 修改配置文件 修改配置文件并启动服务 inux中访问h ...
- Ubuntu Linux安装PyQt5并配置Qt Designer
Ubuntu Linux安装PyQt5并配置Qt Designer PyQt5 创建独立环境 创建conda环境 安装pyqt5 查看版本 安装图形界面Qt Designer pycharm 配置 v ...
最新文章
- php udp发送和接收_php socket通信(tcp/udp)实例分析
- Asp.net,C# 加密解密字符串
- libtorch error C1021: 无效的预处理器命令“warning”
- Head First JSP---随笔八(传统标记)
- 重要接口—RandomAccess接口
- linux shell 输出日期格式,Linux下Shell日期的格式
- 栈溢出笔记1.1 函数调用过程
- Jmeter接口测试使用beanshell断言json返回
- python语言开发环境搭建_Python开发环境搭建-Go语言中文社区
- 原创 | 职场二十年(一)电话风波
- 数字图像处理理论课件(清华大学计算机科学与技术)
- 网线水晶头接法图解8根线芯顺序排序图示
- java field.gettype_Java Field getGenericType()用法及代码示例
- JDK1.6支持TSL1.2协议
- linux 不小心删除ls,浅谈Linux系统误删除文件恢复方法
- 【2016】【论文笔记】差频可调谐THz技术——
- 我用nodejs给朋友发了一份邮件
- Qt在mac上的字体
- 高数篇:01函数的中值定理
- 基础案例学习(工匠工坊案例)