Ubuntu14.04 下apt-get安装Code::Blocks

来源:互联网 发布:黑龙江省人工智能学会 编辑:程序博客网 时间:2024/06/01 08:39

原文是Ubuntu12.04的,我用的是Ubuntu14.04,过程是一样的。原文地址点击打开链接


在联网情况下,在Ubuntu 12.04 下输入以下指令进行安装。

1.安装基本编译环境

$sudo apt-get install build-essential

$sudo apt-get install gdb

2.安装codeblock

$sudo apt-get install codeblocks

$sudo apt-get install codeblocks-dbg

$sudo apt-get install wxformbuilder

($sudo apt-get install contrib,原文作者解释到,这是安装wxSmith,如果不安装就算是使用wxfb。)

或者直接在Ubuntu软件中心里,关键字搜索codeblock就能找到codeblock进行安装。

我是在软件中心安装的,然后又在终端安装了codeblocks-dbg,目前还不知道这个事干什么用的。就先装上了。

3.安装wxWidgets

$sudo apt-get install libwxbase2.8

$sudo apt-get install libwxbase2.8-dev

$sudo apt-get install libwxgtk2.8-0

$sudo apt-get install libwxgtk2.8-dev

$sudo apt-get install libwxgtk2.8-dbg

$sudo apt-get install wx-common

$sudo apt-get install wx2.8-headers

$sudo apt-get install wx2.8-i18n

($sudo apt-get install wx2.8-examples

$sudo apt-get install wx2.8-doc

以上两个为文档,选装)

4.安装完之后,打开Code::Blocks就能直接使用了。(在search中搜一下就有了)


0 0
原创粉丝点击