Geany installion guide

Step 1: Install Geany and GCC according to your operating system

Step 2: It’s recommended to add a few configurations to geany for a better experience. Look into the last tab.

LinuxWin 10 (newer)Win 10 (older) / 8.1 / 8Win 7Geany configuration

The setup in Linux is the most straight forward. The guide should function on all debian-based Linux distros.

If your distro has a different package manager, then you should read into its manual or use the graphic interface.

  1. Open the terminal / console. Typically it is available both from the launcher or by right-clicking the mouse.
  2. Run the following commands:
You’re done!

First of all, you should download 2 programs:

  1. Geany: http://www.geany.org/Download/Releases
  2. MinGW package (used to download GCC compiler): https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/ 

Let’s start from the compiler

  1. Run and install the MinGW package manager
  2. Now we have to choose the packages that will be installed. We will need ‘mingw32-base’ (1). Select it and mark it for installation (2). Now all that remains is to confirm our selection and for that choose ‘Installation’ (3) and ‘apply changes’
  3. In the next window we can confirm that the wanted components are selected and start the install.
  4. Now that the compiler is installed, we can go ahead and set up Geany. The setup is straight forward and can be installed with the default settings.

 

The required components are now installed. Now we need to make them communicate with each other and for that we need to modify the environment.

  1. Click the right mouse button over the start button and select ‘System’
  2. Now go to ‘Advanced system settings’
    win2
  3. From here we choose ‘Environment variables’ from the ‘Advanced’ tab.
    win3
  4. Look for the ‘Path’ variable under ‘System variables’ (this can also be written in uppercase) and click ‘Edit’.win4
  5. Now we need to enter the location of our GCC compiler. For this, first click the ‘New’ button and then type or copy in the location to the compiler.
    The default location is ‘C:\MinGW\bin’.
    If you’re not sure about it, You can look if ‘gcc.exe’ is located in that folder or search for it in your computer.gcc
  6. Now confirm all the changes we made and test if we were successful. For this, we can just start the console (command prompt) and see if the compiler will be found (run ‘gcc –version’ for an example) or use Geany to compile Your first program on Your computer.

Common issues:

  1. If in the end of the tutorial you can’t see GCC version, then you have missed a step in the installation process
  2. If some of the screenshots don’t match, it’s because Windows 10 changes how things look and where they are hidden twice a year. Due to constant changes variety of builds that are still considered “latest”, it is impossible to  have a single Windows 10 guide. The required pages and options should still be named and placed similarly.
  3. If you try to compile your first program, but it fails, it’s likely blocked by the antivirus software you have on your computer. Check what components and folders need to be whitelisted and how the antivirus software needs to be configured to allow for compiling programs. This is dependent on your particular configuration and antivirus software.

First of all, you should download 2 programs:

  1. Geany: http://www.geany.org/Download/Releases
  2. MinGW package (used to download GCC compiler): https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/ 

Let’s start from the compiler

  1. Run and install the MinGW package manager
  2. Now we have to choose the packages that will be installed. We will need ‘mingw32-base’ (1). Select it and mark it for installation (2). Now all that remains is to confirm our selection and for that choose ‘Installation’ (3) and ‘apply changes’
  3. In the next window we can confirm that the wanted components are selected and start the install.
  4. Now that the compiler is installed, we can go ahead and set up Geany. The setup is straight forward and can be installed with the default settings.

 

The required components are now installed. Now we need to make them communicate with each other and for that we need to modify the environment.

  1. Click the right mouse button over the start button and select ‘System’
  2. Now go to ‘Advanced system settings’
    win2
  3. From here we choose ‘Environment variables’ from the ‘Advanced’ tab.
    win3
  4. Look for the ‘Path’ variable under ‘System variables’ (this can also be written in uppercase) and click ‘Edit’.win4
  5. Now we need to enter the location of our GCC compiler. For this, first go to the end of the ‘Variable value’ field (do not overwrite what’s already there), insert a semicolon and copy the path You installed gcc in during the MinGW setup phase.
    The default location is ‘C:\MinGW\bin’.
    If you’re not sure about it, You can look if ‘gcc.exe’ is located in that folder or search for it in your computer.Win5
  6. Now confirm all the changes we made and test if we were successful. For this, we can just start the console (command prompt) and see if the compiler will be found (run ‘gcc –version’ for an example) or use Geany to compile Your first program on Your computer.
    win6

Common issues:

  1. If in the end of the tutorial you can’t see GCC version, then you have missed a step in the installation process.
  2. If you try to compile your first program, but it fails, it’s likely blocked by the antivirus software you have on your computer. Check what components and folders need to be whitelisted and how the antivirus software needs to be configured to allow for compiling programs. This is dependent on your particular configuration and antivirus software.

First of all, you should download 2 programs:

  1. Geany: http://www.geany.org/Download/Releases
  2. MinGW package (used to download GCC compiler): https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/ 

Let’s start from the compiler

  1. Run and install the MinGW package manager
    mingw1_w7
  2. Now we have to choose the packages that will be installed. We will need ‘mingw32-base’ (1). Select it and mark it for installation (2). Now all that remains is to confirm our selection and for that choose ‘Installation’ (3) and ‘apply changes’
    mingw2_w7
  3. In the next window we can confirm that the wanted components are selected and start the install.mingw4_w7
  4. Now that the compiler is installed, we can go ahead and set up Geany. The setup is straight forward and can be installed with the default settings.

The required components are now installed. Now we need to make them communicate with each other and for that we need to modify the environment.

  1. Open the start menu, right click over ‘Computer’ and select ‘Properties’
    win1_w7
  2. Now go to ‘Advanced system settings’
    win2_w7
  3. From here we choose ‘Environment variables’ from the ‘Advanced’ tab.
    win3_w7
  4. Look for the ‘Path’ variable under ‘System variables’ (this can also be written in uppercase) and click ‘Edit’.
    win4_w7
  5. Now we need to enter the location of our GCC compiler. For this, first go to the end of the ‘Variable value’ field (do not overwrite what’s already there), insert a semicolon and copy the path You installed gcc in during the MinGW setup phase.
    The default location is ‘C:\MinGW\bin’.
    If you’re not sure about it, You can look if ‘gcc.exe’ is located in that folder or search for it in your computer.
    win5_w7
  6. Now confirm all the changes we made and test if we were successful. For this, we can just start the console (command prompt) and see if the compiler will be found (run ‘gcc –version’ for an example) or use Geany to compile Your first program on Your computer.
    win6_w7

Common issues:

  1. If in the end of the tutorial you can’t see GCC version, then you have missed a step in the installation process.
  2. If you try to compile your first program, but it fails, it’s likely blocked by the antivirus software you have on your computer. Check what components and folders need to be whitelisted and how the antivirus software needs to be configured to allow for compiling programs. This is dependent on your particular configuration and antivirus software.

There are a few configuration tweaks that we can make to Geany to make it more useful.

Highly recommended modifications

Go to Edit -> Preferences

  • Showing indentation guides
    Go to Editor -> Display
    Enable “Show indentation guides”
  • Setting the maximum line length
    Go to Editor -> Display
    Change the Column  marker from 72 to 80

Modifications some may prefer:

  • Dark (and other) themes:
    https://github.com/geany/geany-themes
  • Automatic closing brackets, quotes etc.
    The feature is also built into Geany (Editor -> Completions), but it doesn’t give the best experience. For a more pleasing experience we will use a plugin
    1) Choose Tools -> Plugin manager


    2) Turn on Auto-CloseYou can also edit what gets closed and change the behavior under plugin preferences.I also recommend checking out other plugins – some might be preferred (e.g. auto-mark)
  • Making the line length marker more aggressive. If the subtle vertical line is not enough for you to notice, change it to an aggressive highlight
    Go to Editor -> Display
    Change line marker from Line -> Background
    Change the color to something more agressive