In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Suse how to install gcc", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Suse how to install gcc" this article.
1. Acquisition program
Cpp-3.3.3-43.24.i586.rpm
Glibc-devel-2.3.3-98.28.i586.rpm
Gcc-3.3.3-43.24.i586.rpm
Supplement according to the packages that are missing during installation.
two。 Prepare to install GCC
# rpm-ivh gcc-3.3.3-43.24.i586.rpm
Error: Failed dependencies:
Glibc-devel is needed by gcc-3.3.3-43.24
Cpp = 3.3.3-43.24 is needed by gcc-3.3.3-43.24
3. Software required to install GCC
1) install glibc-devel
# rpm-ivh glibc-devel-2.3.3-98.28.i586.rpm
Preparing... # [100%]
1:glibc-devel # # [100%]
2) install cpp
# rpm-ivh cpp-3.3.3-43.24.i586.rpm
Preparing... # [100%]
Package cpp-3.3.3-43.41 (which is newer than cpp-3.3.3-43.24) is already installed
File / usr/bin/cpp from install of cpp-3.3.3-43.24 conflicts with file from package cpp-3.3.3-43.41
File / usr/lib/gcc-lib/i586-suse-linux/3.3.3/cc1 from install of cpp-3.3.3-43.24 conflicts with file from package cpp-3.3.3-43.41
File / usr/share/man/man1/cpp.1.gz from install of cpp-3.3.3-43.24 conflicts with file from package cpp-3.3.3-43.41
You can find that the system has cpp installed, but the version conflicts.
3) perform gcc installation
# rpm-ivh gcc-3.3.3-43.24.i586.rpm
Error: Failed dependencies:
Cpp = 3.3.3-43.24 is needed by gcc-3.3.3-43.24
It is found that the system still does not recognize cpp.
4) forced installation of version cpp-3.3.3-43.24
# rpm-ivh cpp-3.3.3-43.24.i586.rpm-nodeps-force
Preparing... # [100%]
1:cpp # # [100%]
5) install gcc again
# rpm-ivh gcc-3.3.3-43.24.i586.rpm
Preparing... # [100%]
1:gcc # # [100%]
6) Test gcc
# which gcc
/ usr/bin/gcc
# vi test.c
The test.c content is as follows:
# include
Main ()
{
Printf ("\ nGCC is OK!\ n\ n")
}
Compile test.c
# gcc-O test.c-o test
Generate the executable file test (as you can see through the ls command) and run test
#. / test
Screen output
GCC is OK!
Indicates that the GCC program is compiled correctly.
7) add the corresponding environment variable PATH,LD_LIBRARY_PATH.
This completes the steps for Suse to install gcc.
The above is all the contents of the article "how to install gcc in Suse". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.