Ubuntu下的c++编程环境构建

一切都是在命令行下进行

首先确定计算机已经联网

然后在终端输入(这一步是下载编程所需要的编译工具等)

sudo apt-get install build-essential gcc make autoconf automake libtool gdb g++

如果出现password,输入密码,回车

之后选择一个自己喜欢的编辑器,如果是emacs,输入

sudo apt-get install emacs

或者是vim(我用的就是它),输入

sudo apt-get install vim

然后去学习一下编辑器怎么使用咯,这里我就偷一下懒,自己search去吧!~

说一下如何使vim打开语法染色功能

vim默认语法染色功能是关闭的,我们可以编辑/etc/vim/vimrc文件

把syntax on 前面的符号去掉,然后保存。就可以启动vim的语法染色功能。

还有一种是构建IDE的编程环境,我是没试过,这里转一下配置的方法。

1) 切换到root

sudo -s -H

2) 运行以下脚本安装anjuta集成开发环境

#!/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

Leave a Reply

Your email address will not be published.