[Gambas-user] git wiki points!

Hans Lehmann hans at ...3219...
Tue Sep 5 16:08:01 CEST 2017


Am 05.09.2017 um 15:20 schrieb Tyrone Lucero:
> IT'S better join effors for better results...
O.K.


Installation of * stable * version of Gambas
----------------------------------------------
The installation was tested for MINT 17.1

(1)
Installing the git program if the program is not already installed:

hans at ...3686... ~ $ sudo apt-get install git

(2)
Installation of required packages:

hans at ...3686... ~ $ sudo apt-get install build-essential g++ automake 
autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev 
postgresql-server-dev-9.3 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 
libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev 
libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev 
libglew1.5-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-dev llvm llvm-3.5-dev 
libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev 
libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev 
libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev 
qtbase5-dev

(3)
Download
A copy of the repository is downloaded to the local PC in the ~ / gambas 
directory. The complete repository with about 100 MB must be downloaded 
only once in the Gambas life - if you do not change in the installation 
directory.

hans at ...3686... ~ $ git clone https://gitlab.com/gambas/gambas

(4)
Change to the * automatically * created directory 'gambas' in the home 
directory:

hans at ...3686... ~ $ cd ~/gambas

Check immediately after download:

hans at ...3686... ~/gambas $ git pull
Already up-to-date.

This result was to be expected ...

(5)
All tags - ie all stable versions - can be sorted sorted with this command:

hans at ...3686... ~ $ git tag | sort -V

The highest version number then appears at the bottom - which 
corresponds to the current, stable version (*).

hans at ...3686... ~/gambas $ git tag | sort -V
v1.9.44
v1.9.45
...
v3.9.1
v3.9.2
v3.10.0

The following command brings the source code to the current stable 
version - currently v3.10.0:

hans at ...3686... ~/gambas $ git checkout $(git tag | sort -V | tail -n 1)

Alternative: Direct input of the stable version from the exploration (*) 
of the current, stable version:

hans at ...3686... ~/gambas $ git checkout v3.10.0

Note: With 'checkout' you can quickly rebuild the repository file system 
so that it corresponds to the version version. This is extremely fast 
because you have the complete repository on the local disk.

(6)
The stable version is installed in the following steps:

(6.1) ./reconf-all
(6.2) LLVM_CONFIG=llvm-config-3.5 ./configure -C
(6.3) make
(6.4) sudo make install

(7)
(7.1) Start of Gambas in the console:

hans at ...3686... $ /usr/bin/gambas3    or
hans at ...3686... $ gambas3

Alternative:
(7.2)  Create a starter on the desktop
(7.2.1) Enter as command /usr/bin/gambas3
(7.2.2) Select a suitable icon for the starter

(8th)
Update for a new version:

(8.1) hans at ...3686... ~ $ cd ~/gambas
(8.2) hans at ...3686... ~ $ sudo make uninstall

Go to item 6 ...

Regards

Hans
www.gambas-buch.de




More information about the User mailing list