Open In App

Steps to Install Geany IDE

Improve
Improve
Like Article
Like
Save
Share
Report

Geany is a lightweight, high-performance Integrated Development Environment system that supports the most used programming languages, i.e  C/C++, Java, Python2.x/3/x, etc. It was developed in such a manner that it has the least dependency on other packages, thus it is quite fast, as compared to code-blocks or devc++. Special care has been taken to make it as independent as possible from a particular desktop environment such as KDE, GNOME. This article lists step-by-step instructions to download and set up Geany IDE for the Windows operating system.

Installing Geany:

  • Geany is distributed under GNU General Public License as published by the Free Software Foundation. This GNU General Public License (GNU GPL or simply GPL) is a series of widely used free software licenses that guarantee end-users the freedom to run, study, share, and modify the software as per their needs. It can easily be downloaded from its official website by clicking here.
Geany Releases

Download executable installer as mentioned above.

  • There is also the freedom to install only the setup by clicking on geany-1.37.1_setup.exe, version may be different as per the latest update, but the executable file for the Windows OS looks just like that. Geany, by default, has a few plugins included (Classbuilder, Export, Filebrowser, HTML Characters, Save Actions, and Split Window). To download many more plugins along with the executable, scroll a bit down and download the file from the Geany-plugin release.

Geany Plugin release

  • In this article, let’s continue with the executable installer only. After downloading, double-click on the file to open the installation wizard.

install geany

  • This is the setup wizard that will help to install geany-1.37.1 to the system. Click next to proceed.

Geany setup

  • Click on I Agree, to agree to the terms and conditions as per the license.

Click on I Agree

  • Take a look at the components it installs by default. There are some minimal runtime dependencies it installs by default. A good tip is to have a look and click on next, as it is not recommended to play with these components.

Components installed

  • Select any desired location to install geany.
Select install location

Select whether you want to install shortcuts for geany.

  • Select whether it is required o install the start menu shortcut for Geany. If not, then one can mark the box which reads Do not create shortcuts.  Click on install to complete the installation process.

Installing TDM-GCC:

  • TDM-GCC is a compiler suite for Windows. It’s a unique combination of the latest version of GCC compiler and some patches for it to run smoothly on Windows. It is available in a 32/64-bit binary version, which can be downloaded as per the requirements.
  • Let’s download this wonderful, lightweight compiler suite from here. Click on the blue label which looks similar to that-

Download TDM-GCC

  • Open the executable installer, then afterward click on Create, which will appear like this-
Click create

To create a new installation click on “Create”.

  • A dialogue box will appear, prompting some essential downloads.

Download box

  • Next, it will take forward to select which binary one wants to install. Select the option depending on the architecture.
Select edition

Select between the two depending on your system architecture.

  • Next, if it is required to install it at any other location, other than C drive, you can choose here.
Select install location

Select any desired location you want to install TDM-GCC.

  • The next step is to select or deselect the components you want to install along with this compiler.
TDM-GCC Setup

Scroll down to look at the components.

  • It is a command-line tool, so,  it must be configured to be used at build/compile time in a visual editor.
  • Thankfully, TDM-GCC does it by default. In the components menu that appears just before the installation starts, it can be noticed that Add to PATH  was selected by default.

Add to path

  • The installation process is now complete. Move forward to writing your first program on Geany IDE.

Build/Compile on Geany: Below is the code to write a hello world or two number sum program on the IDE:

C++




// C++ program to implement
// the above approach
#include <bits/stdc++.h>
using namespace std;
 
// Driver code
int main()
{
    cout << "Hello world!" << endl;
    cout << "Geany is successfully installed and "
            "integrated with its pal TDM-GCC."
         << endl;
    return 0;
}


Output

Hello world!
Geany is successfully installed and integrated with its pal TDM-GCC.

Steps to Compile Program:

  • Save it with any valid name, with .cpp  extension.
  • Find a button just in the toolbar area that reads Compile along with Build and Execute. 

Compile button

  • Click on Compile, if the code is written correctly, it will produce a message similar to this.
Compile successful

Message after compilation.

  • If there is an error in your code, fix it, and compile it again.
  • When the compilation process is complete, click on the Build button. Again, a message will appear similar to this.

Build button

  • After doing this, click on the Execute button, which will open a terminal/shell with the output written above.

Execute



Last Updated : 02 Nov, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads