måndag 5 november 2012

Gambas3 Debian

The easiest way, if you are a Debian Etch User, is to use Synaptic and search for Gambas. Gambas Version 1.0.15 ist included in the Etch distribution. For a first start it may be sufficient.
Or you download the sources and compile yourself. Even then gb.gtk and gb will not work (because some libraries are out of date) . You have to use gb.qt instead. (I tried to download, compile and install newer libraries, but then the system was totally damaged - too much other software depends on the correct version of the important libraries as there are glibc???, libgtk??? and similar)

To get all needed information for compiling and installing on Debian, you can go to http://packages.debian.org/unstable/source/gambas2.

First of all, don't forget to install these packages :

$ aptitude install build-essential g++ automake autoconf bzip2 debhelper dpatch firebird2.0-dev
 gettext kdelibs4-dev libbz2-dev libcurl3-dev libgtk2.0-dev libjpeg62-dev
 libmysqlclient15-dev libpcre3-dev libpng12-dev libpoppler-dev libpq-dev
 libqt3-compat-headers libqt3-mt-dev librsvg2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev
 libsdl-mixer1.2-dev libsdl-sound1.2-dev libsdl1.2-dev libsqlite0-dev libsqlite3-dev
 libssl-dev libxml2-dev libxtst-dev mesa-common-dev unixodbc-dev zlib1g-dev libffi-dev
If you had already installed GAMBAS you must deinstall it, and remove some traces

cd /usr/local/bin
rm gambas*
rm gbx2
cd /usr/bin
rm gambas*
cd /usr/share
rm -R gambas
cd /usr/lib
rm -R gambas
cd /usr/share/doc
rm -R gambas
rm -R gambas*
cd /usr/share/man/man1
rm gambas*
cd /usr/share/pixmaps
rm gambas*
cd /usr/share/lintian/overrides
rm gambas*
cd /usr/share/applications
rm gambas.desktop
As well remove in the local users directory the file ./gambas

cd $HOME
rm .gambas
Then, download the source codes of GAMBAS and extract them into your home. (even if above is mentioned http://packages.debian.org/unstable/source/gambas2, I did downlaod the actual (2.9) sources from http://gambas.sourceforge.net/download.html)

Go into this directory and run the script :

$ ./reconf-all
Once this script is finished, you can run the common commands to compile and install a program under GNU/Linux :

$ ./configure
$ make
$ su
# make install
Now, Gambas is compiled and installed on your Debian :) .

If you want, you can make a shortcut in your menus to avoid to run Gambas into a console.

On Debian Etch the one and only graphical interface, which is working, is "QT" So if you try to run a project from the 2.9 examples, you get ../../error/unexpstop Then you need to go to the menu item "Project" "Properties..." tab "Components" deselect there "gb" and "gb.gtk" and select "gb.qt".
Skicka en kommentar