Ubuntu 安装 Code Blocks 16.01

1. Ubuntu 16.04 安装 Codeblocks 13.12

通过 Ubuntu Software Center 安装的 Codeblocks 13.12 会经常出现卡死 / 崩溃现象。

2. Ubuntu 16.04 安装 Code Blocks 16.01

strong@foreverstrong:~$ sudo apt-get autoremove codeblocks
[sudo] password for strong:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'codeblocks' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 132 not upgraded.
strong@foreverstrong:~$

1. Before installing the code blocks, we will need to install the required PPA repositories.
在安装 code blocks 之前,我们将需要安装所需的 PPA repositories。

sudo add-apt-repository ppa:damien-moore/codeblocks-stable  # Install PPA Repository
strong@foreverstrong:~$ sudo add-apt-repository ppa:damien-moore/codeblocks-stableCurrent stable version of Code::Blocks IDE (16.01)To install Code::Blocks from this PPA, open a terminal and type:sudo add-apt-repository ppa:damien-moore/codeblocks-stable
sudo apt-get update
sudo apt-get install codeblocks codeblocks-contribMore info: https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable
Press [ENTER] to continue or ctrl-c to cancel adding itgpg: keyring `/tmp/tmp91zbyu8v/secring.gpg' created
gpg: keyring `/tmp/tmp91zbyu8v/pubring.gpg' created
gpg: requesting key C99E40E1 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp91zbyu8v/trustdb.gpg: trustdb created
gpg: key C99E40E1: public key "Launchpad PPA for spillz" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
strong@foreverstrong:~$

2. After installing the PPA repository for code blocks just update the packages & repositories using below command.
在为 code blocks 安装 PPA repository 后,只需使用以下命令更新软件包和存储库。

sudo apt-get update   # Update Packages & Repositories
strong@foreverstrong:~$ sudo apt-get update
Get:1 file:/var/cuda-repo-8-0-local-ga2  InRelease
Ign:1 file:/var/cuda-repo-8-0-local-ga2  InRelease
Get:2 file:/var/cuda-repo-8-0-local-ga2  Release [574 B]
Get:2 file:/var/cuda-repo-8-0-local-ga2  Release [574 B]
Get:4 http://linux.teamviewer.com/deb stable InRelease [9,388 B]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:6 http://www.scootersoftware.com bcompare4 InRelease
Hit:7 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [831 kB]
Hit:10 http://www.scootersoftware.com bcompare4 Release
......

3. During the installation process it will ask for confirmation, Just enter y to continue the installation process.
在安装过程中,它将要求您进行确认。只需输入 y 即可继续安装过程。

sudo apt-get install codeblocks  # Install code blocks 16.01 Package
strong@foreverstrong:~$ sudo apt-get install codeblocks
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:codeblocks-common libcodeblocks0 libwxbase2.8-0 libwxgtk2.8-0
Suggested packages:libwxgtk2.8-dev | libwxgtk3.0-dev wx-common codeblocks-contrib
The following NEW packages will be installed:codeblocks codeblocks-common libcodeblocks0 libwxbase2.8-0 libwxgtk2.8-0
0 upgraded, 5 newly installed, 0 to remove and 133 not upgraded.
Need to get 10.7 MB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 libwxbase2.8-0 amd64 2.8.12.1+dfsg2-ppa1~ubuntu16.04.1 [551 kB]
Get:2 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 libwxgtk2.8-0 amd64 2.8.12.1+dfsg2-ppa1~ubuntu16.04.1 [2,611 kB]
Get:3 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 libcodeblocks0 amd64 16.01~ubuntu16.04.1 [2,352 kB]
Get:4 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 codeblocks-common all 16.01~ubuntu16.04.1 [3,321 kB]
Get:5 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 codeblocks amd64 16.01~ubuntu16.04.1 [1,868 kB]
Fetched 10.7 MB in 34s (307 kB/s)
Selecting previously unselected package libwxbase2.8-0:amd64.
(Reading database ... 340266 files and directories currently installed.)
Preparing to unpack .../libwxbase2.8-0_2.8.12.1+dfsg2-ppa1~ubuntu16.04.1_amd64.deb ...
Unpacking libwxbase2.8-0:amd64 (2.8.12.1+dfsg2-ppa1~ubuntu16.04.1) ...
Selecting previously unselected package libwxgtk2.8-0:amd64.
Preparing to unpack .../libwxgtk2.8-0_2.8.12.1+dfsg2-ppa1~ubuntu16.04.1_amd64.deb ...
Unpacking libwxgtk2.8-0:amd64 (2.8.12.1+dfsg2-ppa1~ubuntu16.04.1) ...
Selecting previously unselected package libcodeblocks0.
Preparing to unpack .../libcodeblocks0_16.01~ubuntu16.04.1_amd64.deb ...
Unpacking libcodeblocks0 (16.01~ubuntu16.04.1) ...
Selecting previously unselected package codeblocks-common.
Preparing to unpack .../codeblocks-common_16.01~ubuntu16.04.1_all.deb ...
Unpacking codeblocks-common (16.01~ubuntu16.04.1) ...
Selecting previously unselected package codeblocks.
Preparing to unpack .../codeblocks_16.01~ubuntu16.04.1_amd64.deb ...
Unpacking codeblocks (16.01~ubuntu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.2) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libwxbase2.8-0:amd64 (2.8.12.1+dfsg2-ppa1~ubuntu16.04.1) ...
Setting up libwxgtk2.8-0:amd64 (2.8.12.1+dfsg2-ppa1~ubuntu16.04.1) ...
Setting up libcodeblocks0 (16.01~ubuntu16.04.1) ...
Setting up codeblocks-common (16.01~ubuntu16.04.1) ...
Setting up codeblocks (16.01~ubuntu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
strong@foreverstrong:~$

4. We have installed Code Blocks 16.01 package successfully.
我们已经成功安装了 Code Blocks 16.01 软件包。

sudo dpkg -l codeblocks   # Confirm the Installed Package
strong@foreverstrong:~$ sudo dpkg -l codeblocks
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                           Version              Architecture         Description
+++-==============================-====================-====================-=================================================================
ii  codeblocks                     16.01~ubuntu16.04.1  amd64                Code::Blocks integrated development environment (IDE)
strong@foreverstrong:~$

5. To open the Code Blocks application just enter the command codeblocks on shell.
要打开 Code Blocks 应用程序,只需在 shell 上输入命令 codeblocks

codeblocks   # Open the application
strong@foreverstrong:~$ codeblocks
......

You can also open the Code Blocks application graphically using Search your Ubuntu Applications box. Refer to the snapshot below.
您还可以使用 Search your Ubuntu Applications 框以图形方式打开 Code Blocks 应用程序。请参考下面的快照。

References

https://yongqiang.blog.csdn.net/

Ubuntu 安装 Code Blocks 16.01相关推荐

  1. [转]ubuntu 安装code blocks全记录

    ubuntu 安装code blocks全记录 转载来自 csdn 日志 (一)安装步骤: 1.先把编译环境,C库.C++库和Boost库装好,如下: sudo apt-get install bui ...

  2. ubuntu 安装code blocks全记录

    ubuntu 安装code blocks全记录   (一)安装步骤: 1.先把编译环境,C库.C++库和Boost库装好,如下: sudo apt-get install build-essentia ...

  3. 转载:ubuntu 安装code blocks全记录

    (一)安装步骤: 1.先把编译环境,C库.C++库和Boost库装好,如下: sudo apt-get install build-essential * 有可能安装 build-essential  ...

  4. Code::Blocks 16.01 改变注释的的颜色

    进入settings-->editor,在Syntax Highlighting中可选择设置如下: (1)common(normal) //块注释 (2)common line(normal)/ ...

  5. linux下如何安装自带编译器的codeblocks,在Ubuntu 16.04系统中使用PPA源安装Code Blocks的方法...

    本文介绍在Ubuntu 16.04操作系统中使用PPA源安装Code Blocks的方法,可以先参考在Ubuntu系统中安装Code::Blocks的方法一文. 使用PPA源安装Code Blocks ...

  6. ubuntu 下code blocks 安装全过程

    ubuntu 安装code blocks全记录 (一)安装步骤: 1.先把编译环境,C库.C++库和Boost库装好,如下: sudo apt-get install build-essential ...

  7. ubuntu下安装code::blocks

    简介 Code::Blocks,有时也简单打成"CodeBlocks",是一款全新的C++集成设置环境软件(IDE). 作为一款C++的IDE,Code::Blocks至少有以下几 ...

  8. Code::Blocks 2023.01 全中文汉化-优化版

    Code::Blocks 是一款开放源码.功能全面的跨平台集成开发环境(IDE),通过集成相应的编译器,可以支持使用广泛的C和C++程序开发.而且通过集成各种插件,可以实现各种扩展功能. 目前在中文网 ...

  9. CentOS7 安装code::Blocks

    1.下载code blocks yum repo rpm 访问 https://rpm.jenslody.de 下载rpm for Redhat/CentOS 2. 安装yum repo rpm rp ...

最新文章

  1. 【PHPMailer】写一封邮件
  2. 读书笔记之快速排序(一)
  3. php去掉两个数组重复数据,php两个数组怎么去除重复
  4. tomcat的根路径设置
  5. 【渝粤题库】广东开放大学 统计基础 形成性考核
  6. 【Leetcode | 13】56. 合并区间
  7. CentOS 7安装和部署Docker
  8. Swift UIColor 添加从十六进制值初始化的扩展
  9. python基础学习1-字典的使用
  10. java抽象类的字段_java打印出继承体系的类(包括抽象类)、接口、域字段
  11. 动态规划-最少硬币问题
  12. Tensorflow:常见错误
  13. delphi xe10.4.2 datasnap客户端接收dataset返回值
  14. STM32的定时器中断与实例
  15. 奇迹Mu分析 - 各种主流BT功能实现
  16. Android 发短信功能实现
  17. 利用python进行TEQC质量检核结果绘图
  18. 基于python的Poisson-Gumbel 泊松耿贝尔复合极值分布实现
  19. 爬虫小白第一课、从安装python到写出第一个爬虫程序、Pycharm安装详解
  20. Swift基础之实现下拉变大和OC下拉变大上拉缩小Demo

热门文章

  1. 计算机网络复习(下)
  2. [BUAA软工第二次]个人作业-软件案例分析
  3. 清华计算机系超算团队,清华超算团队第5次获得世界大学生超级计算机竞赛总冠军...
  4. cap流程图_工艺流程图(中英文标准模板)
  5. weblogic卸载
  6. mysql reopen table_mysql报错Can't reopen table: 'n'解决方案
  7. 关于找回电脑删除的文件的密码,已破解…
  8. PDF怎么加书签与页码
  9. Pgpool安装部署(亲测可用)
  10. jenkins_轮训SCM