How to install Code Blocks on Ubuntu 17.04
How to install Code Blocks on Ubuntu 17.04
The Code Blocks is a free, open-source cross platform IDE that supports multiple compilers including GCC, Clang and Visual C++. It has its own compilers, code editor, debugger, GUI desinger, user migration and more. This tutorial covers the installation of Code Blocks on Ubuntu.
Installation procedure
To start the installation procedure, add the repo by executing the following command.
root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.
+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
packaged in this and related PPAs. End users and administrator are responsible for
runtime licensing and possible legal consequences
* Some packages provided with their dependencies while some might require additional
Ubuntu repositories and external PPAs. Below is the list of
.
.
.
gpg: keybox ' /tmp/tmp3mbvc_er/pubring.gpg' created
gpg: /tmp/tmp3mbvc_er/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+" imported
gpg: Total number processed: 1
gpg:imported: 1
OK
The repositories are added successfully. Now update the repo by executing the apt-get update command.
root@linuxhelp1:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease
Get:2 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [3,924 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [3,916 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [3,140 B]
Fetched 26.3 kB in 1s (18.7 kB/s)
Reading package lists... Done
The target system is updated with the repositories. Next, install the code blocks package and press y to continue the installation.
root@linuxhelp1:~# apt-get install codeblocks -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
codeblocks-common libcodeblocks0 libwxbase3.0-0v5 libwxgtk3.0-0v5
Suggested packages:
libwxgtk3.0-dev codeblocks-contrib
The following NEW packages will be installed:
codeblocks codeblocks-common libcodeblocks0 libwxbase3.0-0v5 libwxgtk3.0-0v5
0 upgraded, 5 newly installed, 0 to remove and 46 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 42.2 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libwxbase3.0-0v5 amd64 3.0.2+dfsg-4 [968 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libwxgtk3.0-0v5 amd64 3.0.2+dfsg-4 [4,347 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 libcodeblocks0 amd64 16.01+dfsg-2 [1,987 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 codeblocks-common all 16.01+dfsg-2 [2,489 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 codeblocks amd64 16.01+dfsg-2 [1,917 kB]
Fetched 11.7 MB in 1min 37s (121 kB/s)
Selecting previously unselected package libwxbase3.0-0v5:amd64.
(Reading database ... 168833 files and directories currently installed.)
Preparing to unpack .../libwxbase3.0-0v5_3.0.2+dfsg-4_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.2+dfsg-4) ...
Selecting previously unselected package libwxgtk3.0-0v5:amd64
Preparing to unpack .../libwxgtk3.0-0v5_3.0.2+dfsg-4_amd64.deb ...
Unpacking libwxgtk3.0-0v5:amd64 (3.0.2+dfsg-4) ...
Selecting previously unselected package libcodeblocks0.
Preparing to unpack .../libcodeblocks0_16.01+dfsg-2_amd64.deb ...
Unpacking libcodeblocks0 (16.01+dfsg-2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ..
Setting up codeblocks-common (16.01+dfsg-2) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Setting up libwxgtk3.0-0v5:amd64 (3.0.2+dfsg-4) ...
Setting up libcodeblocks0 (16.01+dfsg-2) ...
Setting up codeblocks (16.01+dfsg-2) ...
Processing triggers for libc-bin (2.24-9ubuntu2) ...
For opening the package, type the package name in the ubuntu dashboard and click on the icon to run the application.

The code blocks application is running successfully. Now the application can be used for various compilation purposes.

For removing the package, execute the following remove command and press y to continue with the uninstallation.
root@linuxhelp1:~# apt-get remove codeblocks -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
codeblocks-common libcodeblocks0 libwxbase3.0-0v5 libwxgtk3.0-0v5
Use ' apt autoremove' to remove them.
The following packages will be REMOVED:
codeblocks
0 upgraded, 0 newly installed, 1 to remove and 46 not upgraded.
After this operation, 7,642 kB disk space will be freed.
(Reading database ... 169904 files and directories currently installed.)
Removing codeblocks (16.01+dfsg-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Wasn' t that an easy installation procedure? The code blocks also supports the user migration and also has a custom project files and build system.
Comments ( 0 )
No comments available