Gambas
Posted: Fri Oct 24, 2008 12:07 am

<h2>Gambas</h2>I don't like this kind of seafood, but this programming environment is very cool, running on Linux, and you get it for free too!
This section is dedicated to getting the latest version 2.9 from svn to compile and install.
The official version of 2.9 will be release any day now.
You need to have a bit of Linux knowledge to be able to get through this guide.
At the bottom you will find reference links, where you can find other Gambas related info.
I will describe a Debian/Ubuntu setup, other distro's are similar and you can find notes how to install it on the gambasdoc wiki here:
http://www.gambasdoc.org/help/install
<h3>Ubuntu Install</h3>Download the desktop iso called 'ubuntu-8.04.1-desktop-i386.iso' or the latest Intrepid Ibex 'ubuntu-8.10-desktop-i386.iso' and burn it to disc.
If you don't have a CD-ROM or DVD drive create a boot-able USB key with the use of the tool UNetbootin.
If you have an Asus eee-box use this guide to create a bootable usb key:
http://openclue.org/tag/gadgets/
If you have a Asus eee-pc install Ubuntu-eee on it.
After the install procedure (search the web if you don't know how to complete this) you end up with a basic desktop environment.
Update all the packages with the update manager, reboot and continue...
If you want remote login, install ssh and nomachine's nx:
Code: Select all
$ sudo apt-get ssh
Code: Select all
$ mkdir ~/install/nx
$ cd ~/install/nx
$ wget http://64.34.161.181/download/3.2.0/Linux/nxclient_3.2.0-14_i386.deb
$ wget http://64.34.161.181/download/3.2.0/Linux/nxnode_3.2.0-13_i386.deb
$ wget http://64.34.161.181/download/3.2.0/Linux/FE/nxserver_3.2.0-16_i386.deb
$ sudo dpkg -i nxclient_3.2.0-14_i386.deb
$ sudo dpkg -i nxnode_3.2.0-13_i386.deb
$ sudo dpkg -i nxserver_3.2.0-16_i386.deb
http://www.nomachine.com/download.php
<h3>Pre-requisites</h3>
Install pre-requisite packages for building Gambas:
Code: Select all
$ 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
NOTE: Replace 'libffi4-dev' above with 'libffi-dev' if you are running Ubuntu 8.10.

Remember the MySQL root password you entered, you need it later.
Cleanup afterwards ...
Code: Select all
$ sudo apt-get clean all
Getting latest source code.
Code: Select all
$ mkdir -p ~/install/gambas
$ cd ~/install/gambas
$ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0
$ cd 2.0
<h3>Configure Gambas</h3>
Code: Select all
$ ./reconf-all && ./configure -C
THESE COMPONENTS ARE DISABLED:
- gb.db.firebird
- gb.db.odbc
- gb.db.postgresql
- gb.db.sqlite2
- gb.db.sqlite3
- gb.qte
These are unused database drivers and the QT embedded component which is not needed ...
<h3>Build Gambas</h3>
Code: Select all
$ sudo make install
If you don't have a gambas menu entry below Application/Programming you can start it manually from a terminal window by typing gambas2
Or you can make a Application Launcher with right click on the desktop which has
Command gambas2
Logo ~/install/gambas/2.0/app/src/gambas2/img/logo/new-logo.png
To be continued ...
<h2>Reference Links</h2><h3>Offical</h3>http://gambas.sourceforge.net
http://www.gambasdoc.org
<h3>Forums</h3>http://forum.stormweb.no/index.php
http://www.gambas-club.de/
http://www.expertaccess.com.br/forum/fo ... FID=9&PN=0
http://www.linuxbasic.net/index.php?PHP ... 7f6d2a;www
http://www.gambas-it.org/gmbs/modules/newbb/
<h3>Tips and Tricks</h3>http://de.wikibooks.org/wiki/Gambas [ur ... rgmini.htm
http://gambas.noxqs.org/
http://gambaslinux.wordpress.com/
http://andreabertini.wordpress.com/
http://www.linux.com/feature/122049
<h3>Example programs</h3>The first one is Gambas IDE itself.
Point your project browser to ~/install/gambas/2.0/app/src...
http://gambas.magic-systems.net/
<h3>Manuals/Books</h3>http://vectorlinux.osuosl.org/Uelsk8s/g ... -guide.pdf
http://www.geocities.com/nalinivasudeva ... gambas.pdf
http://www.linuxformat.co.uk/pdfs/downl ... gambas.pdf
http://mercury.chem.pitt.edu/~sasha/Lin ... 3-0329.pdf