Dokumentaro de Gambaso
Compilation & Installation
Ubuntu 7.04 (Feisty Fawn)
Components
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Raspbian

Last edit: 2024-06-17 by gbWilly

Gambas 3 is available in the Raspbian official repositories.

Installing official packages


In your Raspbian installation, open a terminal and enter these commands:

$ sudo apt-get update
$ sudo apt-get install gambas3

Once installed Gambas will appears in the 'Programming' 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
10 Buster Old Stable apt-get install gambas3
11 Bullseye Stable apt-get install gambas3
12 Bookworm Testing apt-get install gambas3

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


Gambas3 compilation


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


Compilation from sources (Buster)


Gambas 3 (version >= 3.9 and <=3.18

(updated 2020-10-08)
Step 1. Get the source code.

Note: 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 default-libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-11 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 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 libwebkit2gtk-4.0-dev git libssl-dev

Note: For trunk 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

Step 4. 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 Gambas.


Compilation from sources (Bullseye)


Gambas 3 (version >= 3.15 and <= 3.18)

(updated 2024-06-15)
Step 1. Get the source code.

Note: 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 git libssl-dev

Note: For trunk 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

Step 4. 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:

$ GAMBAS_CONFIG_FAILURE=1 ./configure -C --disable-keyring --disable-sqlite2 --disable-qt4 --disable-qtwebkit
$ make -j$(nproc)
$ make install

Step 7. Type gambas3:

Gambas should start and run.

Note: You can make a symlink to start Gambas.


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

(Updated 2024.06.15)
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 && 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 libncurses-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.1-dev git libssl-dev libmongoc-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  --disable-qt6
$ 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 (Bookworm)


Gambas 3 (version >= 3.16 and <= 3.18)

(updated 2024-06-15)
Step 1. Get the source code.

Note: 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 git libssl-dev

Note: For trunk 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

Step 4. 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:

$ GAMBAS_CONFIG_FAILURE=1 ./configure -C --disable-keyring --disable-sqlite2 --disable-qt4 --disable-qtwebkit
$ make -j$(nproc)
$ make install

Step 7. Type gambas3:

Gambas should start and run.

Note: You can make a symlink to start Gambas.

Tip: If you are having trouble finding the errors when running ./configure -C try...:
$ ./configure -C >/dev/null

That way will only output the error messages and nothing else making it easier to see.


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

(Updated 2024.06.15)
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 && 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 libncurses-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.1-dev git libssl-dev qt6-base-dev qt6-webengine-dev qt6-svg-dev libmongoc-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 (for trixie add --disable-gtkopengl)
$ make -j$(nproc)
$ sudo make install

Step 6. Type gambas3

Gambas should start and run.

Note: You can make a symlink to start gambas3

Tip: If you are having trouble finding the errors when running ./configure -C try...:
$ ./configure -C >/dev/null

That way will only output the error messages and nothing else making it easier to see.


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


What are the latest dependencies to install


As dependencies change over time it is always a good thing to know what you need to install for what Raspian version.

Check gitlab-ci.yml for the exact needed dependencies to install latest Gambas3 on Raspian. Search for your corresponding Debian version and follow the exact instructions there.


Outdated instructions


See the Raspbian deprecated instructions.


Page revisions


Raspbian Gambas 3 instructons by: W. Raets - April 9th, 2014
- Updated: Aug 8th, 2017 by W. Raets (gbWilly)
- Updated: Oct 7th, 2020 by B. Steers
- Added compilation and installation for Buster
- Updated: Apr 21th, 2023 by W. Raets (gbWilly)
- Added Stretch, Buster and Bullseye to binary install
- Ordered binary install in a table for better overview
- Updated: Jun 28th, 2023 by W. Raets (gbWilly)
- Added Bookworm to binary install
- Added compilation and installation for Bullseye and Bookworm
- Corrected some in page links to point to the proper paragraphs
- Updated: March 21st 2024 by S. Ploetz (PZ0151)
- Minor formatting and translation to DE
- Updated: Jun 15th, 2024 by W. Raets (gbWilly)
- Corrected Bookworm version from 11 to 12 for binary install
- Added compilation and installation for Bullseye for Gambas 3.19 and higher
- Added compilation and installation for Bookworm for Gambas 3.19 and higher
- Added 'What are the latest dependencies to install'
- Updated: June 17th 2024 by W. Raets (gbWilly)
- changed title for buster compilation to <= 3.18
- Added 'Outdated instructions'