• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Code Blocks on Ubuntu 17.04

{{postValue.id}}

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.
opening

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

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.

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Is it possible to use Visual C++ 6.0 with Code Blocks?

A

Yes. See Integrating Microsoft Visual C 6 with Code::Blocks IDE for a detailed description on using VC++ 6.0 with Code::Blocks.

Q

I have downloaded MS VC++ Toolkit 2003 for a compiler. How do I tell Code Blocks that it is my compiler?

A

Click on "Project/Build options" and select the compiler you want for your project/target.

Q

Code Blocks does not force relink if the library is changed?

A

Open Project->Properties...->Build targets (tab) and select the executable. Click Dependencies... and add the name of the library (including its relative path) to External dependency files. A

Q

what are the supported platform for code blocks?

A

the supported platform for code blocks are

windows,Linux and mac OS

Q

how to install codeblocks in terminal?

A

install codeblocks in terminal by executing the below command
# apt-get install codeblocks -y

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.