Astra linux

New to Gambas? Post your questions here. No question is too silly or too simple.
Post Reply
Umbridge
Posts: 5
Joined: Tuesday 28th November 2023 5:43pm

Astra linux

Post by Umbridge »

Astra Linux Special Edition 1.7.5 [amd64] 2xDVD

Please help me figure it out. Is it possible to install Gambas on this system?
Attachments
[NNMClub.to]_Astra Linux 1.7.5.torrent
(182.77 KiB) Downloaded 388 times
Last edited by Umbridge on Wednesday 29th November 2023 9:23pm, edited 1 time in total.
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astro linux

Post by BruceSteers »

Looks like it is LinuxMint based.

EDIT: this comment was about "Astro" linux not "Astra" ,
for Astra linux see the next post.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astro linux

Post by BruceSteers »

AAAH sorry, i looked at the title that said "Astro linux" , a linux for astrology. that is based on linux mint.

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..
https://gambaswiki.org/wiki/install#t9
select the debian version you have on your astro on that page and use the commands shown to compile and install
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astro linux

Post by BruceSteers »

also i think if it is debian based you should be able to add the main debian repositories to your source list.

(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: Select all

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.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astro linux

Post by BruceSteers »

Okay you can follow these instructions to get either the latest gambas 3.18 or to get the gambas that comes with debian10 gambas 3.12 ...

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..
Untitled.png
Untitled.png (189.46 KiB) Viewed 18765 times
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 ...
G3-12-astra.png
G3-12-astra.png (162.03 KiB) Viewed 18765 times
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 https://gitlab.com/gambas/gambas.git gambas-source

# or for development branch use this command
$ git clone --depth=1 --branch=master https://gitlab.com/gambas/gambas.git gambas-source

now install all the debian buster dependencies for compiling gambas as described here https://gambaswiki.org/wiki/install/debian#t17

$ 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 :( so i disabled qt4 and qt5 in configure.

$ 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
G3-18-astra.jpg
G3-18-astra.jpg (61.17 KiB) Viewed 18765 times
If at first you don't succeed , try doing something differently.
BruceS
Umbridge
Posts: 5
Joined: Tuesday 28th November 2023 5:43pm

Re: Astro linux

Post by Umbridge »

Спасибо за такой подробный ответ, буду пробовать!
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astra linux

Post by BruceSteers »

Sorry 😔 do not speak Russian

But you're welcome 😁
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1579
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Astra linux

Post by BruceSteers »

Ps Astra SE 1.7 kinda sucks and is quite outdated.

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
If at first you don't succeed , try doing something differently.
BruceS
Umbridge
Posts: 5
Joined: Tuesday 28th November 2023 5:43pm

Re: Astra linux

Post by Umbridge »

Thank you, your answer helped a lot. There were also errors with Qt 4 and 5. Tomorrow I will try to install an older version on another computer.
Post Reply