manjaro安装gcc
manjaro这玩意,没有自身带gcc,不知道是不是自己按照版本的原因,反正需要自己手动安装
两步即可完成,没必要手段去下载gcc文件自己编译
一.查询gcc
pacman -Ss gcc
得到如下结果:
core/gcc 10.2.0-2 (base-devel)The GNU Compiler Collection - C and C++ frontends
core/gcc-ada 10.2.0-2Ada front-end for GCC (GNAT)
core/gcc-d 10.2.0-2D frontend for GCC
core/gcc-fortran 10.2.0-2Fortran front-end for GCC
core/gcc-go 10.2.0-2Go front-end for GCC
core/gcc-libs 10.2.0-2 [已安装]Runtime libraries shipped by GCC
core/gcc-objc 10.2.0-2Objective-C front-end for GCC
core/lib32-gcc-libs 10.2.0-2 (multilib-devel) [已安装]32-bit runtime libraries shipped by GCC
extra/libgsystem 2015.2+4+gd606bec-3"Copylib" for system service modules using GLib with GCC
community/aarch64-linux-gnu-gcc 10.2.0-1The GNU Compiler Collection - cross compiler for ARM64 target
community/arduino-avr-core 1.8.3-1Arduino AVR core with upstream avr-gcc and avrdude
community/arm-none-eabi-gcc 10.2.0-1The GNU Compiler Collection - cross compiler for ARM EABI (bare-metal)target
community/avr-gcc 10.2.0-1The GNU AVR Compiler Collection
community/colorgcc 1.4.5-2A Perl wrapper to colorize the output of compilers with warning/errormessages matching the gcc output format
community/gcc8 8.4.0-1The GNU Compiler Collection - C and C++ frontends (8.x.x)
community/gcc8-fortran 8.4.0-1Fortran front-end for GCC (8.x.x)
community/gcc8-libs 8.4.0-1Runtime libraries shipped by GCC (8.x.x)
community/gcc9 9.3.0-3The GNU Compiler Collection - C and C++ frontends (9.x.x)
community/gcc9-fortran 9.3.0-3Fortran front-end for GCC (9.x.x)
community/gcc9-libs 9.3.0-3Runtime libraries shipped by GCC (9.x.x)
community/ghdl-gcc 0.37-9VHDL simulator (GCC backend)
community/lm32-elf-gcc 10.1.0-1The GNU Compiler Collection - cross compiler for LatticeMico32(bare-metal) target
community/mingw-w64-gcc 10.2.0-1 (mingw-w64-toolchain mingw-w64)Cross GCC for the MinGW-w64 cross-compiler
community/nds32le-elf-gcc 10.1.0-1The GNU Compiler Collection - cross compiler for Andes 32 little-endian(bare-metal) target
community/or1k-elf-gcc 10.1.0-1The GNU Compiler Collection - cross compiler for OpenRISC 1000(bare-metal) target
community/riscv64-elf-gcc 10.1.0-1The GNU Compiler Collection - cross compiler for RISCV64 (bare-metal)target
community/riscv64-linux-gnu-gcc 10.2.0-1 (risc-v)Cross compiler for 32-bit and 64-bit RISC-V
archlinuxcn/arm-linux-gnueabihf-gcc 9.1.0-2The GNU Compiler Collection - C and C++ frontends (arm-linux-gnueabihf)
archlinuxcn/arm-linux-gnueabihf-gcc-fortran 9.1.0-2Fortran front-end for GCC (arm-linux-gnueabihf)
archlinuxcn/arm-linux-gnueabihf-gcc-libs 9.1.0-2Runtime libraries shipped by GCC (arm-linux-gnueabihf)
archlinuxcn/arm-linux-gnueabihf-gcc-objc 9.1.0-2Objective-C front-end for GCC (arm-linux-gnueabihf)
archlinuxcn/emake-git 3.6.9.r60.a0bf239-1Yet the simplest build toolchain for gcc/clang projects
archlinuxcn/libgccjit 10.2.0-3Just-In-Time Compilation using GCC.
archlinuxcn/mingw-w64-gcc-base 10.1.0-1 (mingw-w64-bootstrap mingw-w64)Cross GCC for the MinGW-w64 cross-compiler (bootstrap)
二.安装
[aspiree1431 opt]# pacman -S core/gcc
正在解析依赖关系...
正在查找软件包冲突...软件包 (5) binutils-2.35-2 elfutils-0.181-1 libmicrohttpd-0.9.71-1libmpc-1.1.0-2 gcc-10.2.0-2下载大小: 31.59 MiB
全部安装大小: 181.53 MiB:: 进行安装吗? [Y/n] y
:: 正在获取软件包......libmpc-1.1.0-2-x... 65.1 KiB 160 KiB/s 00:00 [##################] 100%gcc-10.2.0-2-x86_64 31.5 MiB 122 KiB/s 04:25 [##################] 100%
(5/5) 正在检查密钥环里的密钥 [##################] 100%
(5/5) 正在检查软件包完整性 [##################] 100%
(5/5) 正在加载软件包文件 [##################] 100%
(5/5) 正在检查文件冲突 [##################] 100%
(5/5) 正在检查可用存储空间 [##################] 100%
:: 正在处理软件包的变化...
(1/5) 正在安装 libmicrohttpd [##################] 100%
(2/5) 正在安装 elfutils [##################] 100%
(3/5) 正在安装 binutils [##################] 100%
(4/5) 正在安装 libmpc [##################] 100%
(5/5) 正在安装 gcc [##################] 100%
gcc 的可选依赖lib32-gcc-libs: for generating code for 32-bit ABI [已安装]
:: 正在运行事务后钩子函数...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...
[zl-aspiree1431 opt]# gcc
gcc: 致命错误:没有输入文件
编译中断。
至此,gcc安装成功了
manjaro安装gcc相关推荐
- Manjaro安装YCM
Manjaro安装YCM 系统信息 系统:Linux EwenPC 4.19.8-2-MANJARO #1 SMP PREEMPT Sat Dec 8 14:45:36 UTC 2018 x86_64 ...
- linux卸载mpfr,Red Hat Linux在安装gcc时遇到的问题汇总
找到了一个比较老的RedHatlinux,想要装上apache+tomcat.由于是在虚拟机中运行,我想先装一个vmware-tools提高性能. 但是安装的过程中我发现竟然找不到gcc.于是我就去网 ...
- 怎样在Red Hat Enterprise Linux 5.4版本上安装GCC?
注意:如果打算使用GUI的方式安装,需要导入GPG-Key(否则在使用GUI时会出现public key for *.rpm is not installed) 请切换到安装光盘目录下: cd /me ...
- 在RedHat上安装gcc,java 和 eclipse-rcp
本文全是如何用rpm包在红帽子54上安装gcc,automake,java和eclipse等,不是源代码编译,请大家不要误会了. 其实通过rpm包安装东西很简单,麻烦的是有很多rpm是要根据顺序进行先 ...
- RHCE6.4 rpm 安装gcc
先将gcc的iso里的Packages拷贝到根目录下,方便以后使用,再找gcc的rpm包安装: 网上说有以下依赖,需要按照一下顺序安装: rpm -ivh cpp*****.rpm rpm -i ...
- suse linux 软件包安装,SUSE Linux 11系统rpm包离线安装GCC
SUSE Linux 11系统rpm包离线安装GCC 1.问题显示 编译失败 python2.6环境下编译pycrypto-2.6.1 src/hash_template.c:360: warning ...
- 在Windows平台下使用安装GCC
我想将linux机 器上的一个程序拿到Windows下用.直接将souWindowsrce codes拷贝到Windows下无法用Windows的C编译器编译,大概是缺少一些库吧.后来,想到Linux ...
- suse linux c 编译环境,SUSE 11中安装GCC开发环境
SUSE11中安装GCC开发环境 安装包下载网站:http://213.174.32.130/sles/distribution/11.0-SP1/repo/disk1/suse/x86_64/ RP ...
- Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题)
Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题) 参考文章: (1)Linux安装gcc时碰到的有关问题解决(解决gcc依赖有关问题) (2)https://www.cnblogs. ...
最新文章
- static的三种用法,定义静态变量,静态函数,静态代码块!
- Hbuilder开发HTML5 APP之打开新页面
- 【GNN】啥是GNN?GNN咋学?GNN何用?
- BizTalk开发系列(九) MAP的连接方法
- Android打电话功能权限报错,从打电话权限报错看Android6.0权限变化
- 程序员是终身学习的职业,应该怎么学习?
- java当前路径_java获取当前路径的几种方法
- 回溯---含有相同元素求子集
- python画50个图-python 实现在一张图中绘制一个小的子图方法
- Visual Studio 2010 SP1将支持HTML5和CSS3
- 吴恩达 深度学习 2021版 作业
- tp5接收前台传的值_tp5数据接收
- 全球及中国电解电容器(E-Cap)供给能力与竞争状况分析报告2022~2027年
- SE14激活并调整数据库时报数据库对象不一致错误
- 十分钟搞懂Lombok使用与原理
- 南昌治疗糖尿病的医院
- 利用HTML5 canvas元素+原生JS编写贪吃蛇
- IDENTIFIED BY PASSWORD
- [易飞]没做采购变更单,采购单被指定结束了?
- 【转】干货分享|给正在构思论文的同学们分享个实用小技巧(一般写作,制作PPT也适合)
热门文章
- mtk平台 mt_usb设备以及otg初始过程
- 方正中间件SOA解决方案(下)
- 线性位置检测 - CHI612替代TLE4997、MLX90251
- 【数据恢复软件】来,认识一下
- 利用Word的邮件合并功能,自动发送工资表邮件(亲自实践)
- 360手机刷机:360N6lite刷机
- 3dsMax——开启捕捉之后锁定x/y/z轴
- 腾讯地图 省市区县 信息展示
- 在uni-app当中引入本地图片注意事项以及阿里矢量图iconfont.css当中文件查找失败:‘./iconfont.eot解决办法
- 五年级计算机课做什么电子报,电子工业版五年级信息技术5册教案1、小报版面先设计...