Build a c ++ programming environment in Ubuntu

Source: Internet
Author: User
C ++ programming environment construction in Ubuntu-general Linux technology-Linux programming and kernel information. The following is a detailed description. Everything is done under the command line
First, make sure that the computer is connected to IOT platform.
Then input it on the terminal (this step is to download the compilation tool required for programming, etc)
Sudo apt-get install build-essential gcc make autoconf automake libtool gdb g ++

If the password appears, enter the password and press Enter.

Select a favorite editor. For emacs, enter
Sudo apt-get install emacs

Or vim (I use it), input
Sudo apt-get install vim

Then I will learn how to use the editor. Here I will steal the lazy and search it myself !~

Let's talk about how to enable the syntax coloring function of vim.
The default syntax coloring function of vim is disabled. You can edit the/etc/vim/vimrc file.
Remove the symbols before syntax on and save them. You can start the syntax coloring function of vim.

Another method is to build an IDE programming environment. I have never tried it. Here I will go through the configuration method.
1) switch to root

Sudo-s-H

2) run the following script to install the anjuta integrated development environment.

#! /Bin/bash
#===================================================== ======================================
#
Apt-get install anjuta
Apt-get install anjuta-common
Apt-get install apache
Apt-get install at-spi-doc
Apt-get install autobook
Apt-get install autoconf
Apt-get install autoconf2.13
Apt-get install autoconf-archive
Apt-get install autogen
Apt-get install automake
Apt-get install bison
Apt-get install ctags
Apt-get install cvs
Apt-get install devhelp
Apt-get install devhelp-books
Apt-get install exuberant-ctags
Apt-get install flex
Apt-get install g ++
Apt-get install g77
Apt-get install gcc
Apt-get install gcj
Apt-get install gda2-freetds
Apt-get install gda2-mysql
Apt-get install gda2-odbc
Apt-get install gda2-postgres
Apt-get install gda2-sqlite
Apt-get install glade-2
Apt-get install glade-doc-2
Apt-get install glade-gnome-2
Apt-get install gnome-devel
Apt-get install gnu-standards
Apt-get install gnutls-bin
Apt-get install httpd
Apt-get install indent
Apt-get install libcompress-zlib-perl
Apt-get install libgail-doc
Apt-get install libglib2.0-doc
Apt-get install libgnome2-dev
Apt-get install libgnome2-doc
Apt-get install libgnomecanvas2-doc
Apt-get install libgnomemm2.0-dev
Apt-get install libgnomeui-doc
Apt-get install libgtk2.0-dev
Apt-get install libgtk2.0-doc
Apt-get install libgtkmm2.0-dev
Apt-get install libgtkmm2.0-doc
Apt-get install libhtml-format-perl
Apt-get install libio-socket-ssl-perl
Apt-get install libltdl3-dev
Apt-get install libmailtools-perl
Apt-get install libpango1.0-doc
Apt-get install libpcre3
Apt-get install libstdc ++ 5-3.3-doc
Apt-get install libtool
Apt-get install libtool-doc
Apt-get install manpages-dev
Apt-get install menu
Apt-get install orbit2
Apt-get install stl-manual
Apt-get install shared-mime-info
Apt-get install ttf-thryomanes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.