如何看gcc版本|怎么查看linux 是否安装gcc

❶ 怎样查看linux里gcc的版本号

1. gcc -v[root@localhost /]# gcc -vReading specs from /usr/i386-glibc-2.1-linux/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specsgcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)2. rpm -qa|grep gccrpm -qi gcc[root@localhost /]# rpm -qa|grep gccgcc-3.2.2-5gcc-c++-3.2.2-5libgcc-3.2.2-5compat-gcc-7.3-2.96.118gcc-g77-3.2.2-5gcc-java-3.2.2-5gcc-gnat-3.2.2-5compat-gcc-c++-7.3-2.96.1183. gcc -mpversion (Display the version of the compiler)[root@localhost /]# gcc -mpversionegcs-2.91.66

❷ 怎么查看linux 是否安装gcc

正确的方法是,抄sudo apt-get install build-essential这个才是你的袭系统应该用的,装好后命令行下运行gcc -v就会打印出你使用gcc的版本信息了,然后就可以用了,比如gcc -o test test.c就会编译test.c,生成可执行文件 test然后./test就会运行test 我再晕,推荐参考《Linux就该这样学》,提示你没有test.c,你的C源文件呢?我这里是用test.c做例子,你的源文件叫什么名字,你就把test.c换成你的文件的名字啊。另外,你要把你的源文件先保存在linux机器上,比方说放到了 /home/yourname/aaa那你要先cd /home/yourname/aaa然后再gcc -o test test.c

❸ red hat linux下查看gcc版本命令

直接gcc之后应该会在终端下弹出一个菜单,上面有一系列的命令以及命令作用的解释!我用的是UBUNTU,说实话没用过 red hat 不过应该是一样的

❹ 在linux中, 如何看GCC的版本,用什么命令

gcc –version

❺ Linux 下查看 gcc 版本:gcc -v 和rpm -q gcc 区别

gcc -v是查看系统目前使用的gcc版本。 rpm -q gcc是Redhat/CentOS/Fedora/SuSE查看系统中是否安装了gcc rpm包。Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。

❻ 如何查看Linux或者gcc版本

1. 查看Linux版本cat/etc/issueLinaro 12.07 \n \l2. 查看内核版本1)cat/proc/versionLinux version 2.6.38-13-generic(buildd@rothera) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)) #57-Ubuntu SMP Mon Mar 5 18:10:14 UTC 2012Linux version 3.4.29+ (ubuntu@linux-server) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #7 PREEMPT Mon Aug 5 13:37:28 CST 20132) uname命令uname-aLinux ubuntu 2.6.38-13-generic#57-Ubuntu SMP Mon Mar 5 18:10:14 UTC 2012 i686 i686 i386GNU/LinuxLinux ubuntu 3.4.29+ #7 PREEMPT Mon Aug 5 13:37:28 CST 2013 armv7l armv7l armv7l GNU/Linux[——————————————————————————–a, –all print all information, inthe following order, 查看全部信息except omit -p and -i ifunknown:-s, –kernel-name print the kernelname 查看内核名字-n, –nodename print the network nodehostname-r, –kernel-release print the kernelrelease 查看内核发行版本-v, –kernel-version print the kernelversion 查看内核版本-m, –machine print the machinehardware name-p, –processor print the processortype or "unknown"-i, –hardware-platform print thehardware platform or "unknown"-o, –operating-system print theoperating system 查看操作系统–help display this help andexit–version output version informationand exit————————————————————————————–]3.查看系统位数1) getconfWORD_BIT322)file/bin/bash/bin/bash: ELF 32-bit LSB executable,Intel 80386, version 1 (SYSV), dynamically linked (uses sharedlibs), for GNU/Linux 2.6.15, stripped/bin/bash: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=, stripped4. 查看gcc版本gcc–versiongcc (Ubuntu/Linaro 4.5.2-8ubuntu4)4.5.2gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

❼ linux系统版本如何查看

查看系统发型版本方法1、对于linux系统而已,有成百上千个发行版。对于发行版的版本号查看方法:如以centos为例。输入lsb_release -a即可。该命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版! 方法2、如果如上图,没有这个命令可以通过查看 Cat /etc/xxx-release XX为发行版名称。如 centos-release! 方法3、也可以通过查看/etc/issue文件查看发行版版本号END 查看系统内核版本,对于不同的发行版而言,很多版本的内核都是一样的。具体查看方法 方法1、Uname -r查看系统内核版本。如 2.6.32-358.el6.x86_64 表示最新的内核为2.6.32 方法2、通过查看内核版本号文件,如 more /proc/versionEND其他操作系统信息查看系统位数、同样对于Linux系统而言也有32和64位之分。用上述查看内核方法,输入Uname -a 或 more /proc/version在内核版本后面会有一个X86_64就是表示64为系统啦。Yum更新版本查询:除此之外对于使用yum更新的系统,还可以通过输入yum info 查看当前更新到的系统版本号。如下图最新的 3.e16。请多看看《linux就该这么学》。


赞 (0)