Cloud9 may be used for BASIC development, but by default a BASIC compiler is not installed. This is indicated by the following error when running a .bas file:

bash: line 1: ...: No such file or directory

To install the FreeBASIC compiler on Cloud9, enter the following commands at the bash prompt. If you don't see a bash prompt, open a New Terminal window.

mkdir ~/downloads
cd ~/downloads
mv download FreeBASIC-1.05.0-linux-x86_64.tar.gz
tar xzf FreeBASIC-1.05.0-linux-x86_64.tar.gz
cd FreeBASIC-1.05.0-linux-x86_64/
sudo ./ -i
cd ~/workspace
rm -r ~/downloads

Then add a new runner for BASIC files with the following configuration. Save the new runner as BASIC (QB).run.

  "script": [
    "fbc -lang qb \"$file\"",
  "info": "Compiling $file_name and running $file_base_name",
  "selector": "source.bas"

See Also