Install Gambas
TracNav
Gambas
Table of Contents
Supported Modules
- Intro
- RFXCom
- RRDTool
- Barcode
- HDDTemp
- Sound
- VoiceText
- Asterisk
- UPS
- Weeder
- Xanura CTX35
- Bluetooth
- Sony Visca
- 1-Wire
- XMLTV
- Heyu
- IRMan
- X10
- Plugwise
- Sony AIBO
- Fritz!Box
- IPVideo
- CER ELS1700
- Bwired
- DSC Security
- Falcom SMS
- KNX/EIB
- Z-Wave
- Pachube
- WeatherBug
- PLCBUS
Just Started
Requested
Development
More Info
Linux
Domotica Links
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.
Fedora 11 & 12
Fedora's Gambas packages are more up-to-date than Ubuntu's, so you can install the precompiled packages, and skip the download Gambas from svn and compiling steps below.
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
Install PHP-xmlrpc
$ sudo yum install php-xmlrpc
Checkout the code from SVN:
$ cd /opt/ $ mkdir domotiga $ svn co http://svn.domotiga.nl/domotiga/trunk/ 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 https://gambas.svn.sourceforge.net/svnroot/gambas/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
Downgrade libtool
Only needed if you are compiling a version older than 2.15.2 revision 2287 on Ubuntu!
$ cd ~/install $ sudo apt-get -f install i386: $ wget http://www.ftp.uni-erlangen.de/pub/mirrors/ubuntu/pool/main/libt/libtool/libtool_1.5.26-1ubuntu1_i386.deb $ sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_i386.deb x86_64: $ wget http://www.ftp.uni-erlangen.de/pub/mirrors/ubuntu/pool/main/libt/libtool/libtool_1.5.26-1ubuntu1_amd64.deb $ sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb
