Astra linux
Posted
#1
(In Topic #1146)
Regular

Please help me figure it out. Is it possible to install Gambas on this system?
Posted
Guru

EDIT: this comment was about "Astro" linux not "Astra" ,
for Astra linux see the next post.
Posted
Guru

But reading again i noticed you say Astra not Astro in the message.
Astra being the popular Russian replacement for M$ windows.
Astra is Debian based.
The launchpad method above does not work for debian systems only ubuntu derivatives sorry.
The "apt-cache" command will work to see if there is gambas available.
$ apt-cache search gambas3
If not you can compile and install it.
Look here..
/install - Gambas Documentation
select the debian version you have on your astro on that page and use the commands shown to compile and install
Posted
Guru

(I'm pretty sure it's okay to do this)
open the file /etc/apt/sources.list
add the following lines if they do not exist. (assuming your debian base is buster )
Astra 1.7 is Debian10 (buster) that is a pretty old debian !
By default you will only get Gambas 3.12 from Debian10 repository.
Code
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian-security buster/updates main contrib non-free
deb-src http://deb.debian.org/debian-security buster/updates main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
then run apt update
then you should be able to install gambas.
$ sudo apt install gambas3*
then you could remove the above sources from the apt list if you do not want them there.
Posted
Guru

Edit /etc/apt/sources.list with kate..
$ kate /etc/apt/sources.list
make sure the astra repositories are active by removing the # from the start of each line.
then add the debian buster repositories.
It should look something like this..
Then press save (type password to save system file)
# now add the debian keyring… (if you have not added the online astra repositories before you must update apt before you can install debian-archive-keyring)
$ sudo apt-get update
$ sudo apt install debian-archive-keyring
# now the repositories are added and the keyring installed we can update apt again to add the debian repositories without error.
$ sudo apt-get update
Now is probably also a good time to upgrade your system with any updates..
$ sudo apt dist-upgrade
Now you have 3 choices of gambas to install..
1. The debian10 repository version 3.12 (i do not recommend, it is very old, gambas is much better now)
2. The latest gambas stable version
3. the latest gambas development version.
For the debian10 gambas 3.12 just run synaptic package manager and search for gambas3 then install your required packages from there.
or use apt as i did.
$ sudo apt install gambas3
then i had this, old gambas 3.12 on Astra 1.7 SE …
For the latest stable or development gambas follow these instructions…..
# install git
$ sudo apt install git
download either the stable or development gambas.
$ cd ~
$ git clone –depth=1 –branch=stable Gambas / gambas · GitLab gambas-source
# or for development branch use this command
$ git clone –depth=1 –branch=master Gambas / gambas · GitLab gambas-source
now install all the debian buster dependencies for compiling gambas as described here /install/debian - Gambas Documentation
$ sudo apt-get update && sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev 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 libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev libssl-dev
I also was short 2 dependencies when configuring so i installed them.
$ sudo apt install gmime-3.0-dev libpcre2-dev
Note: repository gambas MUST NOT be installed by apt for this install method, as i installed gambas 3.12 i must now remove it to avoid conflict..
$ sudo apt remove gambas3*
Now compile and install gambas with the following commands…
Note: i could not install gb.qt4 or gb.qt5 they both had make errors
$ cd ~/gambas-source
$ ./reconf-all
$ ./configure -C -q –disable-keyring –disable-qt4 –disable-qt5
$ make -j$(nproc)
$ sudo make install
Now i have gambas 3.18 but it does not use QT only GTK
Posted
Regular

Posted
Guru

But you're welcome <EMOJI seq="1f601" tseq="1f601">😁</EMOJI>
Posted
Guru

Debian is at 12 now,
10 is very old.
I'd recommend just using latest Debian or Linux mint then things will be more up to date.
Perhaps you can add any Astra required packages to Debian by adding astra source repositories to Debian 11 or 12.
(Just like I added Debian repositories to Astra list)
Have fun
Posted
Regular

Posted
Regular

https://wiki.debian.org/SourcesList
Code
deb http://deb.debian.org/debian bookworm main non-free-firmware
deb-src http://deb.debian.org/debian bookworm main non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main non-free-firmware
Posted
Guru

I can guess but it's risky
Do you even NEED to use Astra linux? designed for Russian military use.
Are you in the Russian army and use gambas for military uses?
Why not just use latest debian from debian ?
Posted
Guru

Posted
Guru

Place Astra 1.8 DVD in the drive.
then type in terminal..
sudo apt-cdrom add
press return to add the disk to apt sources.
then update / upgrade apt
Posted
Guru

libalure-dev : breaks gb.openal (OpenAL 3D Audio library)
libdumb1-dev : does not seem to break anything
libsdl-sound1.2-dev : does not seem to break anything
all qt6 dependencies: no qt6 on Astra1.8 yet, only qt5
so this dependency list…
sudo apt-get update
<HIGHLIGHT highlight="shell">
sudo apt-get install -y build-essential g++ automake autoconf libbz2-dev libzstd-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libpoppler-cpp-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev qtwebengine5-dev libwebkit2gtk-4.0-dev git libssl-dev libmongoc-dev
</HIGHLIGHT>
And this ./configure line…
<HIGHLIGHT highlight="shell">
./configure -q -C –disable-keyring –disable-sqlite2 –disable-qt4 –disable-qt6 –disable-openal
</HIGHLIGHT>
then you can compile from source any version/branch of gambas you like.
Gambas / gambas · GitLab
If Astra1.8 had libalure-dev then EVERY component (except qt6 but there's still qt5) would be installed but I have never used OpenAL anyway?
1 guest and 0 members have just viewed this.





