Ubuntu上Code::Blocks的安装

1.在/etc/apt/sources.list 中添加:
  a. deb http://apt.tt-solutions.com/ubuntu/ edgy main
     or
     deb http://apt.tt-solutions.com/ubuntu/ feisty main
  b. deb http://apt.wxwidgets.org/ gutsy-wx main
  在a情况下:
  sudo wget http://www.tt-solutions.com/vz/key.asc
  sudo apt-key add key.asc
  在b情况下:
  sudo wget http://apt.wxwidgets.org/key.asc
  sudo apt-key add key.asc

2.sudo apt-get update
3.sudo apt-get install libwxgtk2.8-0 libwxgtk2.8-dev wx2.8-headers wx-common libwxbase2.8-0 libwxbase2.8-dev
4.sudo apt-get dist-upgrade
5.sudo update-alternatives --config wx-config(选择wxgtk2.8版本,如果装了好几个wxgtk版本)
6.下载code::blocks 8.02版本
7.sudo dpkg -i codeblocks-dev_8.02-0ubuntu1_i386.deb
8.安装成功,在应用程序/编程/code::blocks
  或者 在终端下输入codeblocks命令也可运行

你可能感兴趣的:(编程,ubuntu)