Introduction: GCBASIC can be used with the Linux operating system.
These instructions are not distribution-specific, but are for Linux only (not Windows).
Instructions: Complete the following steps to compile and install GCBASIC for Linux:
- Install FreeBasic from your distribution’s repository or the FreeBASIC wiki
- Download the "GCBASIC - Linux Distribution" from SourceForge at sourceforge.net
- Unrar/unpack GCBASIC.rar to a location of your choice within your home directory (eg. within Downloads) with either a file manager or from a console.
- From a console, change to the GCBASIC Sources in the unpacked directory:
eg. cd ~/Downloads/sources/linuxbuild/
- Make sure that
install.shis set as executable (ie.chmod +x install.sh), and then execute:./install.sh build - You will need root privileges for this step. You can switch user (su) to root, or optionally use
sudo.
Execute: [sudo] ./install.sh install
- If you su’d to root, use
exitto drop back to your normal user. Then, be sure to follow the instructions given by the script for updating your path. - Confirm proper execution, and the version, of GCBASIC by executing:
gcbasic /version
Now you can create and compile GCBASIC source files.
Programming microcontrollers:
To program your microcontroller with your GCBASIC-created hex file, you will need additional programming and programmer software.
For Microchip PIC microcontroller programming, you might find what you need at: www.pickitplus.co.uk. The PICkitPlus Team provide programmers and Linux software.
For Atmel AVR microcontroller programming, you will need avrdude. It should be available in your distribution’s repository. If not, check here: avrdude website

