HOW TO INSTALL CODE BLOCKS 16.01 IN UBUNTU 16.04
Introduction
In this article we are going to discuss on How to install Code Blocks 16.01 in Ubuntu 16.04. Code Blocks is a open source application, is a platform for coding programming languages such as C, C++..etc…Code Blocks is a cross platform application available for all major operating systems i.e. Linux, Microsoft Windows, MacOS, Solaris, OpenBSD…etc..This application was developed by Code Blocks team on year 2005 under GNU GPLv3 license. The latest version of Code Blocks application which is available on official website is Code Blocks 16.01 which was released on 28th January 2016.
Follow the below steps to install Code Blocks 16.01 in Ubuntu 16.04
Before we start the installation of Code Blocks 16.01 we have to install required PPA Repositories for that. to do so follow the below command.
elinuxbook@ubuntu:~$ sudo add-apt-repository ppa:damien-moore/codeblocks-stable # Install PPA Repository
[sudo] password for elinuxbook:
Current 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-contrib
More info: https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpi1bhpjt9/secring.gpg' created
gpg: keyring `/tmp/tmpi1bhpjt9/pubring.gpg' created
gpg: requesting key C99E40E1 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpi1bhpjt9/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
Also Read :
- HOW TO INSTALL PYTHON 3.6 ON UBUNTU 16.04
- HOW TO INSTALL LAMP STACK ON UBUNTU 16.04
- HOW TO INSTALL WORDPRESS 4.6.1 WITH LAMP STACK ON UBUNTU 16.04
After installing the PPA repository for code blocks just update the packages & repositories using below command.
elinuxbook@ubuntu:~$ sudo apt-get update # Update Packages & Repositories Get:1 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial InRelease [17.6 kB] Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:3 http://apt.nylas.com/ubuntu vivid InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease Get:5 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main amd64 Packages [5,972 B] Get:6 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main i386 Packages [5,980 B] Get:7 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu xenial/main Translation-en [3,740 B] Hit:8 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:9 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease Fetched 33.3 kB in 1s (21.1 kB/s) Reading package lists... Done
Now let’s go ahead and install the code blocks 16.01 package using below command. During the installation process it will ask for confirmation, Just enter “y” to continue the installation process.
elinuxbook@ubuntu:~$ sudo apt-get install codeblocks # Install code blocks 16.01 Package
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 135 not upgraded.
1 not fully installed or removed.
Need to get 10.7 MB/11.0 MB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
We have installed Code Blocks 16.01 package successfully. You can refer the below command to confirm the same.
elinuxbook@ubuntu:~$ sudo dpkg -l codeblocks # Confirm the Installed Package
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)
To open the Code Blocks application just enter the command codeblocks on shell. refer the command below.
elinuxbook@ubuntu:~$ codeblocks # Open the application
Below snapshot is showing installed compilers, So just click on OK to continue.
Snap : 1
Snap : 2
You can also open the code blocks 16.01 application graphically through package manager. Refer the snapshot below.
If you found this article useful then Like Us, Share Us, Subscribe our Newsletter OR if you have something to say then feel free to comment on the comment box below.