Project

General

Profile

Install Gambas

This programming environment is very cool, running on Linux, and you can get it for free too!
This page describes how to get the latest Gambas 2.x version from svn to compile and install on your system.

There are RPM's available for Gambas for selected distro's, but I advice to use the latest svn code, since RPM's run behind on patches.
You need to have a bit of Linux knowledge to be able to get through this guide.

here you will find how to install an Linux OS.
here you will find how to install optional software.

Gambas Pre-requisites

Ubuntu Hardy 8.04

Install pre-requisite packages for building Gambas:

$ sudo apt-get install subversion build-essential g++ automake autoconf libbz2-dev libmysqlclient15-dev \
libgtk2.0-dev libcurl3-dev libgtkglext1-dev libqt3-mt-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 librsvg2-dev \
libpoppler-dev libpoppler-glib-dev libasound2-dev libartsc0-dev libesd0-dev libesd-alsa0 libdirectfb-dev \
libaa1-dev libarts1-dev kdelibs4-dev libffi4-dev libxtst-dev gettext mysql-client-5.0 mysql-server-5.0

This will use a whooping 425Mb of disk-space, but don't worry it's well spent .. :-)

Ubuntu Intrepid 8.10

Install needed packages:

$ sudo apt-get install subversion build-essential autoconf libbz2-dev libmysqlclient15-dev libgtk2.0-dev \
libldap2-dev libcurl4-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 librsvg2-dev libpoppler-dev libpoppler-glib-dev \
libasound2-dev libartsc0-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libarts1-dev libxtst-dev \
libffi-dev kdelibs4-dev

Ubuntu Jaunty 9.04

Install needed packages:

$ sudo apt-get install build-essential subversion autoconf libbz2-dev libgnorba-dev libfbclient2 libmysqlclient15-dev \
unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-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 libasound2-dev libesd0-dev libesd-alsa0 libdirectfb-dev libaa1-dev libxtst-dev \
libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev mysql-client mysql-server

Ubuntu Karmic 9.10 and Lucid Lynx 10.04

Install needed packages:

$ sudo aptitude install build-essential subversion autoconf libbz2-dev libfbclient2 libmysqlclient15-dev \
unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-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 libasound2-dev \
libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev \
mysql-client mysql-server

NOTE: There is an issue with the database manager and viewing table contents with Ubuntu Karmic.
But DomotiGa runs ok with it.

Ubuntu Maverick 10.10 & Natty 11.04

Install needed packages:

$ sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev \
libsqlite0-dev libsqlite3-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 libasound2-dev libesd0-dev \
libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev \
libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev mysql-client-core-5.1 mysql-server

Ubuntu Oneiric Ocelot 11.10

NOTE: Because of Unity things like NX Client/Server don't run straight out of the box anymore without applying numerous tweaks.

$ sudo apt-get install build-essential autoconf subversion libbz2-dev libfbclient2 libmysqlclient-dev unixodbc-dev libpq-dev \
libsqlite0-dev libsqlite3-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 libasound2-dev libesd0-dev \
libdirectfb-dev libaa1-dev libxtst-dev libffi-dev firebird2.1-dev libqt4-dev libglew1.5-dev \
libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev mysql-client-core-5.1 mysql-server \
libc6 libqt3-mt-dev libqt3-mt libstdc++6 libqt3-headers

Fedora 11 & 12

Fedora's Gambas packages are more up-to-date than Ubuntu's, but they still have some minor bugs, so compiling from svn code it the best you can do.
At the time of writing these packages cause a segmentation fault with the latest version of DomotiGa. Use git instead. See Install

Install RPMs:

$ sudo yum install gambas2-gb-db gambas2-gb-db-form \
gambas2-gb-db-mysql gambas2-gb-desktop \
gambas2-gb-form gambas2-gb-form-dialog \
gambas2-gb-form-mdi gambas2-gb-net \
gambas2-gb-net-curl gambas2-gb-net-smtp \
gambas2-gb-qt gambas2-gb-qt-ext \
gambas2-gb-settings gambas2-gb-xml \
gambas2-gb-xml-rpc gambas2-runtime \
gambas2-gb-web gambas2-gb-pcre

Install PHP-xmlrpc

$ sudo yum install php-xmlrpc

Checkout the code from GIT:

$ cd /opt/
$ git clone https://github.com/DomotiGa/DomotiGa.git domotiga

Remember the MySQL root password you entered, you need it later.

Cleanup afterwards ...

$ sudo apt-get clean all

Get Gambas

Getting latest source code.

$ mkdir -p  ~/install/gambas
$ cd ~/install/gambas
$ svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/branches/2.0
$ cd 2.0

Note: If you want to update your copy later to the latest version, you just type 'svn update' inside this directory and repeat the steps below.

Configure Gambas

$ make distclean
$ ./reconf-all && ./configure -C

This will take a bit of time ... and you will get this in the end:
THESE COMPONENTS ARE DISABLED:
gb.qte

This is the QT embedded component which is not needed ...

Build and Install Gambas

$ sudo make install

You are ready to start Gambas IDE and look at the examples that came with it.
If you don't have a Gambas menu entry below Application/Programming you can start it manually from a terminal window by typing gambas2 in a terminal window.

Or you can make a Application Launcher with a right click on the desktop which has these properties:
Command gambas2
Logo ~/install/gambas/2.0/app/src/gambas2/img/logo/new-logo.png

Related Resources

    Updated by: jessekerkhoven, Updated over 5 years ago
    Access count: 78424 since 2011-08-25

    Attached Files

    Also available in: PDF HTML TXT