Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux's method to check whether gcc is installed

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of linux to check whether gcc has been installed, the article is very detailed, has a certain reference value, interested friends must read it!

Linux method to check whether gcc is installed: execute the [gcc-v] command, if the Linux system does not have a gcc compiler installed, it will prompt [Command not found]. If the gcc compiler is installed on the system, it will show which version of the gcc compiler is currently installed.

Linux's method to check if gcc is installed:

Execute the gcc-v command, prompting "Command not found" if the gcc compiler is not installed on the Linux system.

1. If the gcc compiler is installed on the system, this command shows which version of the gcc compiler is currently installed. As follows:

2. If the prompt command cannot be found, it is not installed, as follows:

Extended data:

Necessary to install GCC:

GCC can be used to compile programs in Cumberbatch +, FORTRAN, Java, OBJC, ADA and other languages, and you can choose which languages to install as needed.

Before installation, a compiler such as cc or gcc must be available on the system, or the compiler on the system must be specified with the environment variable CC. If there is no compiler on the system, you cannot install GCC 4.1.2 in source code form. If this is the case, you can find a binary GCC package suitable for the system, such as RPM, to install and use.

The original GCC compiler on the system may have stored gcc and other command files, library files, header files and so on in different directories in the system.

Instead, GCC now recommends that you install a version of GCC in a separate directory. The advantage of this is that you can easily delete the entire directory when you don't need it in the future (because GCC doesn't have the uninstall feature); the disadvantage is that you have to do some setup work to make the compiler work properly after installation.

The above is all the contents of linux's method to check whether gcc is installed. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report