In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you the "Ubuntu network environment how to install GCC and its header files", 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 "how to install GCC and its header files in the Ubuntu network environment" this article.
Steps to install GCC and its header files in Ubuntu network environment:
1. Configure GCC in Ubuntu environment
The newly installed GCC can not compile anything, because there are no necessary header files, so to install build-essential, installing this package will install many necessary software and header files, such as glossaries, libc6, Libc6, Libc6, devizable, Linux, libc, and other necessary software and header files.
Sudo apt-get install build-essential
After the installation, write a C language program testc.c to test it.
# include int main () {printf ("Hello Ubuntu!\ n"); return 0;} $gcc testc.c-o testc $. / testc
Display
Hello Ubuntu!
C language compiler installed successfully
2. Install the GTK environment
To install the GTK environment, you only need to install a gnome-core-devel, which integrates a lot of other packages. In addition, you have to transfer some other things, such as libglib2.0-doc, libgtk2.0-doc help documents, devhelp help documents view, glade-gnome, glade-common, glade-doc graphical interface design and so on.
Sudo apt-get install gnome-core-devel sudo apt-get install libglib2.0-doc libgtk2.0-doc sudo apt-get install devhelp sudo apt-get install glade-gnome glade-common glade-doc
3. Test program
Compile and run with the following command
A window with a button is displayed. The window closes when the button is clicked, and the command line displays Hello Ubuntu!
4. QT installation
Libqt4-core qt4-designer qt4-dev-tools qt4-qtconfig libqt4-dev libqt4-gui libqt4-debug libqt4-sql
I haven't used this much yet. Search QT4 in Synaptic, and it looks like almost all of them have been installed.
5. Install an IDE
There is a C C++ IDE called Geany in Linux. In the menu "Apps"-> "add and remove programs", just look for it in the program.
The above is all the contents of the article "how to install GCC and its header files in Ubuntu network environment". 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.