ubuntu下C/C++基本开发环境的配置
2008-05-31 17:26
791 查看
首先更改源,可以参考另外一篇关于源设置的文章
QUOTE:
sudo cat > /etc/apt/sources.list
把下面的东东贴到里面
QUOTE:
deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse
gutsy是7.10的代号, 如果你的系统是7.04 或 6.06之类的, 将gutsy换成你的系统的代号, 下面是对应的版本和代号
QUOTE:
6.06LTS Dapper
6.10 Edgy
7.04 Feisty
7.10 Gutsy
然后更新一下数据库
QUOTE:
sudo apt-get update
随便升一下级
QUOTE:
sudo apt-get upgrade
好, 现在能上网, 也能更新软件了, 开始配开发环境, 不用装好几百M的集成开发环境, 只需要几个命令就完成
装基本开发环境
QUOTE:
sudo apt-get install build-essential gcc make
装编辑器
QUOTE:
sudo apt-get install vim emacs
装基本开发库
QUOTE:
sudo apt-get install libc6 libc6-dev
装manpage, 装了之后可以直接用 man printf 查阅printf的详细用法
QUOTE:
sudo apt-get install manpages-dev
Ok , 基本的开发环境已经安装完毕, 下面写一个小程序看看开发过程
linux下的开发流程基本上是"编码 -> 编译 -> 调试 -> 编码 ..."一个过程
QUOTE:
sudo cat > /etc/apt/sources.list
把下面的东东贴到里面
QUOTE:
deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse
gutsy是7.10的代号, 如果你的系统是7.04 或 6.06之类的, 将gutsy换成你的系统的代号, 下面是对应的版本和代号
QUOTE:
6.06LTS Dapper
6.10 Edgy
7.04 Feisty
7.10 Gutsy
然后更新一下数据库
QUOTE:
sudo apt-get update
随便升一下级
QUOTE:
sudo apt-get upgrade
好, 现在能上网, 也能更新软件了, 开始配开发环境, 不用装好几百M的集成开发环境, 只需要几个命令就完成
装基本开发环境
QUOTE:
sudo apt-get install build-essential gcc make
装编辑器
QUOTE:
sudo apt-get install vim emacs
装基本开发库
QUOTE:
sudo apt-get install libc6 libc6-dev
装manpage, 装了之后可以直接用 man printf 查阅printf的详细用法
QUOTE:
sudo apt-get install manpages-dev
Ok , 基本的开发环境已经安装完毕, 下面写一个小程序看看开发过程
linux下的开发流程基本上是"编码 -> 编译 -> 调试 -> 编码 ..."一个过程
相关文章推荐
- Linux:UbuntuServer14.04.1 C++开发环境配置
- Ubuntu使用点滴(3)-C/C++开发环境配置
- ubuntu下配置c/c++开发环境
- Ubuntu下用Eclipse搭建C/C++开发环境中FFTW的配置
- ubuntu 12.04 配置 Eclipse的 C/C++开发环境
- Ubuntu配置wxWidgets跨平台C++开发环境的方法
- ubuntu下c/c++开发环境配置
- ubuntu 16.04 VSCode 配置C++开发环境
- Ubuntu 16.04安装Eclipse + C/C++开发环境配置
- ubuntu下c/c++开发环境配置
- ubuntu17.04安装并配置C\C++开发环境
- Ubuntu使用点滴(3)-C/C++开发环境配置
- ubuntu环境下使用eclipse手动配置c/c++开发环境
- ubuntu下配置c/c++开发环境
- linux 下 VNC Server安装配置及 eclipse CDT C/C++ 开发环境搭建(我用的是阿里云服务器 ubuntu 12.04 64-bit,无图形化界面)
- ubuntu下c/c++开发环境配置
- ubuntu下c/c++开发环境配置
- ubuntu安装eclipse、jre、cdt配置C++开发环境
- Ubuntu c++ 开发环境配置
- Ubuntu C/C++开发环境的安装和配置