[Gambas-user] program return error value 1

Gianluigi gradobag at gradobag.it
Wed Oct 25 11:01:07 CEST 2023


Il 24/10/23 22:15, T Lee Davidson ha scritto:
> On 10/24/23 09:35, roberto.premoli at tiscali.it wrote:
>> Hello all
>> igot a new conputer with he follow:
>> distro: devuan 5.0 "Dedalus" (the current stable)
>> ...
>
> It works fine here with v3.18.4; no error.
>
> Where are you seeing "error 1"? In the IDE console, or on the command 
> line when executing the compiled project?
>
> Perhaps your Gambas installation is corrupted.
>
> By the way, when attaching archive files, please use "zip", "tar.gz" 
> or the "gmail.txt" formats[1]. Gambas does not recognize the "7-zip" 
> format. You can make a "tar.gz" archive easily right within Gambas: In 
> the menu, Project > Make source archive.


+1

Why don't you compile Gambas3 stable to the latest version (3.18.4)?
First you need to eliminate Gambas3.18.0 from the system.
Second open a terminal and update (sudo apt upgrade).
Since version 5 is based on Debian 12, continue by issuing these commands:

To install the libraries (also includes git) the command is:

sudo apt 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-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 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 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 git libssl-dev

This command copies the stable version to the gambastable folder in your 
home:

git clone --branch stable --depth=1 https://gitlab.com/gambas/gambas.git 
gambastable

This is to move to the folder:

cd gambastable

Continue with these other commands:

./reconf-all && ./configure -C

and these (the second command is given as superuser and may ask for the 
password again, its output is in English):

make && LANG="C" sudo make install

If you end up getting some error, you report it here and it responds... 
Benoit :-D

Regards
Gianluigi




More information about the User mailing list