Debian

The following instructions to install Gambas on Debian are also applicable for other Debian based distributions like Devuan or LMDE.

Gambas 3 is available in the Debian official repositories.


Installing official packages


In your Debian installation, open a terminal and enter these commands as super user "root":

$ apt-get install gambas3

In a Debian or Devuan desktop installation, sudo is available, but the usage of su command is the common and preffered way to gain root privileges. If you do want to take a shot at using sudo like other Debian based distributions look at this section of this guide and get back here.

Once installed Gambas will appears in the Programing menu category. Depending of your version of Debian installed this will install an officially supported version by Debian Maintainers.

Version Name Branch Gambas version available Install command
8 Jessie Unsupported apt-get install gambas3
9 Stretch Unsupported apt-get install gambas3
10 Buster Old old Stable apt-get install gambas3
11 Bullseye Old Stable apt-get install gambas3 Old Stable-bpo (backports) apt-get install gambas3
12 Bookworm Stable apt-get install gambas3
13 Trixie Testing apt-get install gambas3

After installation you will find Gambas 3 installed in menu 'Programming'.


Installing from compilation


  • Installing binaries with a package management system is ALWAYS preferred over compilation and installation.

  • If you not have sudo, use the su command to gain root privileges or please take a shot at using sudo like other derivatives section of this guide and get back here.


Compilation from sources for Debian wheezy (7)


Gambas 3 (version <= 3.4.2)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git and Downloading Gambas from Gitlab repository

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. When installing first update the sources:

$ sudo apt-get update

Step 4. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgmime-2.6-dev llvm-3.1-dev

Step 5. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 6. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 7. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.5 and <= 3.6)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git and Downloading Gambas from Gitlab repository

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. When installing first update the sources:

$ sudo apt-get update

Step 4. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev libgmp-dev libgtk-3-dev

NOTE

When running above line those packages missing in Debian wheezy will be mentioned. For the availability of these packages see A note on package dependencies
For example your missing packages are in the jessie repository. Open sources.list with nano editor.

$ sudo nano -w /etc/apt/sources.list

Add these lines to sources.list :

deb http://ftp.nl.debian.org/debian/ jessie main
deb-src http://ftp.nl.debian.org/debian/ jessie main

Save the result (<ctrl> + O -> <enter>) and close the sources.list (<ctrl> + X)

Next update the sources and install the missing packages (or better use apt preferences):

$ sudo apt-get update
$ sudo apt-get install <name-of-missing-package-01> <name-of-missing-package-02> ...

Doing sudo apt-get update and upgrade later on, will pull in a lot more and might mess up your system install.
So directly after the installation of the missing packages it is strongly advised to remove the jessie entry from sources.list.

For this do:

$ sudo nano -w /etc/apt/sources.list

Add # to these lines in the sources.list to comment them out:

#deb http://ftp.nl.debian.org/debian/ jessie main
#deb-src http://ftp.nl.debian.org/debian/ jessie main

Save the result (<ctrl> + O -> <enter>) and close the sources.list (<ctrl> + X)

If you do want to keep both wheezy and jessie in the sources.list and not mess up your system, the have a look at Apt Preferences, as it explains how to grab packages from a later release but leave the rest as-is.

Step 5. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 6. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 7. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.7 and <= 3.8)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git and Downloading Gambas from Gitlab repository Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. When installing first update the sources:

$ sudo apt-get update

Step 4. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev

For version on master and 3.8 or higher add:

$ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev

Note: For development version you might need to install more dependencies as new components get developed.
For availability of packages in your specific distribution version see A note on package dependencies

NOTE

When running above line those packages missing in Debian wheezy will be mentioned. For the availability of these packages see A note on package dependencies
For example your missing packages are in the jessie repository. Open sources.list with nano editor.

$ sudo nano -w /etc/apt/sources.list

Add these lines to sources.list :

deb http://ftp.nl.debian.org/debian/ jessie main
deb-src http://ftp.nl.debian.org/debian/ jessie main

Save the result (<ctrl> + O -> <enter>) and close the sources.list (<ctrl> + X)

Next update the sources and install the missing packages (or better use apt preferences):

$ sudo apt-get update
$ sudo apt-get install <name-of-missing-package-01> <name-of-missing-package-02> ...

Doing sudo apt-get update and upgrade later on, will pull in a lot more and might mess up your system install.
So directly after the installation of the missing packages it is strongly advised to remove the jessie entry from sources.list.

For this do:

$ sudo nano -w /etc/apt/sources.list

Add # to these lines in the sources.list to comment them out:

#deb http://ftp.nl.debian.org/debian/ jessie main
#deb-src http://ftp.nl.debian.org/debian/ jessie main

Save the result (<ctrl> + O -> <enter>) and close the sources.list (<ctrl> + X)

If you do want to keep both wheezy and jessie in the sources.list and not mess up your system, the have a look at Apt Preferences, as it explains how to grab packages from a later release but leave the rest as-is.

Step 5. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 6. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 7. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Compilation from sources for Debian jessie (8)


Gambas 3 (version <= 3.4.2)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.5 and <= 3.6)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev libalure-dev libgmp-dev libgtk-3-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.7 and <= 3.8)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev

For version on master and 3.8 or higher add:

$ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev

Note: For git master/development version you might need to install more dependencies when new components get developed.
For availability of packages in your specific distribution version see A note on package dependencies

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Compilation from sources for Debian stretch (9)


Gambas 3 (version <= 3.4.2)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs5-dev firebird-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgsl0-dev libncurses5-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgmime-2.6-dev llvm-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.5 and <= 3.6)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev libalure-dev libgmp-dev libgtk-3-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.7 and <= 3.8)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get install build-essential g++ automake autoconf libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev

For version 3.8 or higher add:

$ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.9 and <= 3.11)


Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev libssl-dev

Only for the Gnome desktop add:

$ sudo apt install libcanberra-gtk-module

Note: For git master/development version you might need to install more dependencies when new components get developed.
For more recent versions of Debian you might need higher versions of dependencies than mentioned above.
For availability of packages in your specific distribution version see A note on package dependencies

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C
$ make
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Gambas 3 (version >= 3.12 and development version on master)

(Updated 2023.07.08)
Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev libwebkit2gtk-3.0-dev libssl-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C --disable-gtk3webview --disable-qt5webview --disable-zstd
$ make -j$(nproc)
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Compilation from sources for Debian buster (10)


Gambas 3 (version >= 3.12 and development version on master)

(Updated 2023.07.08)
Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev libssl-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C --disable-keyring
$ make -j$(nproc)
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Compilation from sources for Debian bullseye (11)


Gambas 3 (version >= 3.15 and development version on master)

(Updated 2023.07.08)
Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev libssl-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C --disable-keyring --disable-sqlite2 --disable-qt4
$ make -j$(nproc)
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Compilation from sources for Debian bookworm (12) and Debian trixie (13)


Gambas 3 (version >= 3.16 and development version on master)

(Updated 2023.07.08)
Step 1. Get the source code (either download and extract the package from main Gambas website or use git clone/checkout)

Note: For using Git checkout see A note on installing from git

Step 2. Open a terminal (make sure your user account is part of sudo group)

Step 3. Install these packages :

$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev libssl-dev

Step 4. Go into the directory where the Gambas source file are located and run the script :

$ ./reconf-all

Step 5. Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure -C --disable-keyring --disable-sqlite2 --disable-qt4
$ make -j$(nproc)
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3


Important notes

A note on installing from git


If you want to compile the latest development version or a stable version from Gitlab Gambas repository, you need to install Git first.

To do this open a terminal and do:

$ sudo apt-get install git

You will now be able to do a git clone or git checkout.


Downloading Gambas from Gitlab repository


Everybody can make a copy of the repository on his hard disk by using the following command:

For development version

$ git clone --depth=1 https://gitlab.com/gambas/gambas.git

For current stable version

$ git clone --branch stable --depth=1 https://gitlab.com/gambas/gambas.git

For an specific old stable version (e.g. 3.6)

  $ wget https://gitlab.com/gambas/gambas/repository/v3.6.0/archive.tar.gz -O gambas-3.6.0.tar.gz
  $ tar -zxvf gambas-3.6.0.tar.gz
  $ cd gambas-v3.6.0-*

For more info about using Gitlab Gambas repository see in the Git development guide for Gambas


Using sudo like other derivatives


Debian does not use the sudo command as other Debian derived works, due its not the default.

This simply means not have the sudo command. You can install sudo package and add your user to the group sudo.

These are the steps to correct this problem:

1. Open a terminal and type:

$ su root

Enter the root password and hit <enter>.

Install the sudo package and hit <enter>.

2. Type:

# apt-get install sudo

Added your USERNAME to the sudo group and hit <enter>.

3. Type:

# adduser USERNAME sudo

Replace USERNAME with your account name.

4. Type (yes do it twice):

# exit
# exit

5. Restart your session, then, sudo will work in a terminal for the user you added to sudo group.


A note on package dependencies


As dependencies may change over time it is always a good thing to know what is available on Debian and in what repository.

Check Debian packages search page for the availability of needed dependency packages on Debian.

At the top of the page, in the right upper corner, here the "searchhere" word, type the package name or keyword package name to check availability.


Page revisions


Debian Gambas 3 instructions by: W. Raets - Sept 8th, 2013
- Updated: Oct 18th, 2017 by PICCORO Lenz McKAY (mckaygerhard)
- Updated: Nov 9th, 2018 by Gianluigi Gradaschi
- Updated: Oct 23th, 2019 by W. Raets (gbWilly)
- Updated: Oct 7th, 2020 by B. Steers
- Added Debian Buster dependency list
- Updated: Dec 13th 2021 by M. Belmonte
- Updated Debian Buster dependency list
- Added Bullseye and Bookworm entries
- Updated: Apr 19th 2023 by W. Raets (gbWilly)
- Added stable backports and updated testing to proper Gambas version
- Bit of improvement on the English used here and there
- Bit of improvement on the layout of page revisions
- Updated: June 27th 2023 by W. Raets (gbWilly)
- Updated table for binary install with new stable release
- Added compilation and installation for trixie (current testing)
- Corrected some in page links to point to the proper paragraphs
- Updated: Juli 8th 2023 by W. Raets (gbWilly)
- Updated compilation ./configure instructions for buster, bullseye, bookworm and trixie
- Added compilation and installation for gambas3 >= 3.12 on stretch