Raspbian deprecated instructions
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
|
7
|
Wheezy
|
Unsupported
|
|
apt-get install gambas3
|
8
|
Jessie
|
Unsupported
|
|
apt-get install gambas3
|
9
|
Stretch
|
Unsupported
|
|
apt-get install gambas3
|
Gambas3 compilation
Installing binaries with a package management system is ALWAYS preferred over compilation and installation.
Compilation from sources (wheezy)
Gambas 3 (version <= 3.4.2)
IMPORTANT NOTE
Be aware that compiling Gambas from source on a Raspberry Pi takes a very long time.
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. When installing first update the sources:
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:
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.
Gambas 3 (version >= 3.5 and <= 3.6)
IMPORTANT NOTE
Be aware that compiling Gambas from source on a Raspberry Pi takes a very long time.
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. When installing first update the sources:
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.1-dev libalure-dev libgmp-dev libgtk-3-dev
Step 5. Go into the directory where the Gambas source file are located and run the script:
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.
Gambas 3 (version >= 3.7 and development version master)
IMPORTANT NOTE
Be aware that compiling Gambas from source on a Raspberry Pi takes a very long time.
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. When installing first update the sources:
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.1-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
/trunk
and 3.8 or higher add:
$ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev
Note: For trunk 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 5. Go into the directory where the Gambas source file are located and run the script:
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 (jessie)
Gambas 3 (version <= 3.4.2)
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 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-3.4-dev
Step 4. Go into the directory where the Gambas source file are located and run the script:
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.
Gambas 3 (version >= 3.5 and <= 3.6)
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 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.4-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:
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.
Gambas 3 (version >= 3.7 and development version master)
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 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.4-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
/trunk
and 3.8 or higher add:
$ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-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:
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.
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.
Page revisions
Raspbian depricated instructons by: W. Raets - June 17th, 2024