Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Linux specific forum
Fred
Administrator
Administrator
Posts: 16581
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by Fred »

I will put this file on the public git repo, so if someone wants to amend it, it will be easy.
User avatar
vividpixel
New User
New User
Posts: 7
Joined: Tue Aug 09, 2022 9:36 am
Location: United States

Unpack PureBasic & Create Shortcut via Terminal Commands

Post by vividpixel »

These instructions only streamline the process of extracting PureBasic and creating a functional desktop shortcut. You will still want to install the other necessary packages using apt-get. Tested on Ubuntu 22.04.1 LTS 64-bit.
  1. Creating Apps folder in current user's home directory.

    Code: Select all

    mkdir ~/Apps
  2. Extracting PureBasic's tar-gzip from Downloads into the Apps folder. The file names are inconsistent between the demo and full versions, but with enough wildcards we can use the same command for either. However, this means it will fail if you have more than one copy of PureBasic in Downloads.

    Code: Select all

    tar -xvzf ~/Downloads/*ure*asic*.tgz -C ~/Apps
    On the demo version, the directory name is different, so let's rename it. For the full version, skip this command entirely.

    Code: Select all

    mv ~/Apps/purebasic_demo ~/Apps/purebasic
    We won't include a version number when renaming, as these commands along with the desktop shortcut would need changing every time PureBasic is updated.
  3. Creating a shortcut on the desktop.

    Code: Select all

    echo -e "[Desktop Entry]\nType=Application\nIcon=/home/$USER/Apps/purebasic/logo.png\nName=PureBasic\nComment=Developer Utility\nExec=/home/$USER/Apps/purebasic/compilers/purebasic\nPath=/home/$USER/Apps/purebasic/compilers\nStartupNotify=false\nTerminal=false" >> ~/Desktop/PureBasic.desktop
  4. Setting execute permission for the shortcut.

    Code: Select all

    chmod +x ~/Desktop/PureBasic.desktop
  5. Setting shortcut as trusted to allow launching.

    Code: Select all

    gio set ~/Desktop/PureBasic.desktop metadata::trusted true
Do tell me if this helps you, so I know my first post in the community was worth the effort. :)
Coding on MacOS 13, Windows 11 Pro under VMWare Fusion.
AZJIO
Addict
Addict
Posts: 1298
Joined: Sun May 14, 2017 1:48 am

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by AZJIO »

vividpixel wrote: Wed Aug 10, 2022 9:00 pm~/Desktop/
I don't have any folder. I have a folder name in Russian (Desktop, Downloads). Many will have problems.
User avatar
vividpixel
New User
New User
Posts: 7
Joined: Tue Aug 09, 2022 9:36 am
Location: United States

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by vividpixel »

AZJIO wrote: Wed Aug 10, 2022 9:33 pm
vividpixel wrote: Wed Aug 10, 2022 9:00 pm~/Desktop/
I don't have any folder. I have a folder name in Russian. Many will have problems.
Simple solution is just change "Desktop" to the Russian equivalent, yeah?
Coding on MacOS 13, Windows 11 Pro under VMWare Fusion.
AZJIO
Addict
Addict
Posts: 1298
Joined: Sun May 14, 2017 1:48 am

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by AZJIO »

Create a variable, get the interface language and use the folder name taking into account the language settings. But the folder names are stored somewhere in the OS, since the installation distribution is multilingual. Since you've started writing installation commands, you might be able to auto-detect the folder names.

Code: Select all

Define i, tmp$
Global UserIntLang$, PathLang$
If ExamineEnvironmentVariables()
	While NextEnvironmentVariable()
		If Left(EnvironmentVariableName(), 4) = "LANG"
			; 		   	LANG=ru_RU.UTF-8
			; 		   	LANGUAGE=ru
			UserIntLang$ = Left(EnvironmentVariableValue(), 2)
			Break
		EndIf
	Wend
EndIf
Axolotl
Enthusiast
Enthusiast
Posts: 432
Joined: Wed Dec 31, 2008 3:36 pm

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by Axolotl »

Hey folks,

many thanks to @mk-soft and @vividpixel for there great information.

I'm a little euphoric right now.... :oops:
Started today with VirtualBox, Ubuntu 2022.04 and Purebasic....
Had some problems with 'libsdl2-dev', but after I installed 'systemd' again, that worked too.

Mmmhh now I just have to get rid of the linker error with the C-Backend....

And a lot to learn on linux as well
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mk-soft »

I have added the installation for Arch Linux and Manager PACMAN. Also tested Rasperry PI 400 (Arm64). Should also work with Intel Linux.

Install of Purebasic with PACMAN
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
mestnyi
Addict
Addict
Posts: 995
Joined: Mon Nov 25, 2013 6:41 am

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mestnyi »

Here is a warning because of what could be? Debian GNU/Linux 11 (bullseye)
[WARNING] GLib-GIO (Debug): _g_io_module_get_default: Found Default implementation gvfs (GDaemonVfs) For ‘gio-vfs’
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mk-soft »

mestnyi wrote: Tue Jan 17, 2023 4:26 pm Here is a warning because of what could be? Debian GNU/Linux 11 (bullseye)
[WARNING] GLib-GIO (Debug): _g_io_module_get_default: Found Default implementation gvfs (GDaemonVfs) For ‘gio-vfs’
Nothing to do with the installation.
Please move to Linux: Compiler Warning Messages (Internal PB Libraries)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
HeX0R
Addict
Addict
Posts: 973
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by HeX0R »

I guess I'm the only one who seems to step into the very same trap all over again.
You should avoid to extract PB into a folder with spaces in it, since I'm a Windows guy I seem to not even think about it and just using spaces here and there.
But if you extract PB into ... dunno /home/me/purebasic/PB 6.xx/ you will not have much fun.
It doesn't seem to find most resources then, you can't change language, the theme is the old one (because the icons from the new one can not be found) and so on.

Not sure if that is worth mentioning in the docs, since no one ever complaint, this might be my very personal problem.
Fred
Administrator
Administrator
Posts: 16581
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by Fred »

I need to tackle this space problem in path, we do it shortly if I don't forget again :)
Cezary
User
User
Posts: 89
Joined: Sun Feb 12, 2017 2:31 pm

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by Cezary »

I see this thread has been revived, so I'll add something. I'm trying to use PB 6.01 beta in Mint Cinnamon 21.1 and debugger isn't working properly (built-in IDE and standalone). After trap or STOP stops execution and takes step (F8), the debugger loses control and the program stops responding. It is then only possible to kill the program and run it again.
PB is unpacked in the user's home directory. Could this be the same source of the problem?
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mk-soft »

Cezary wrote: Tue Jan 24, 2023 2:39 pm I see this thread has been revived, so I'll add something. I'm trying to use PB 6.01 beta in Mint Cinnamon 21.1 and debugger isn't working properly (built-in IDE and standalone). After trap or STOP stops execution and takes step (F8), the debugger loses control and the program stops responding. It is then only possible to kill the program and run it again.
PB is unpacked in the user's home directory. Could this be the same source of the problem?
Runs here under Mint Linux 20, Mint Linux LMDE 5, Ubuntu 20.04.5,
Raspberry PI Bullseye (Arm64)

Must be a different problem ...

P.S. You took a wrong turn. Here is the install thread for linux
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
emm
New User
New User
Posts: 7
Joined: Tue Oct 18, 2022 7:47 pm

Simple install of PureBasic 6.01 Ubuntu 22.04 LTS

Post by emm »

Hello There!

I try to install PureBasic 6.01 from https://www.purebasic.com/download/pure ... mo_x64.tgz on Ubuntu 22.04 LTS
BUT PureBasic 6.01 is available for 20.04 not 22.04

Once I'm trying to install the dependencies apt get stuck on:

1. qt5 default:

sudo apt install qt5-default
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package qt5-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qt5-default' has no installation candidate

2. libgnome-2.0

sudo apt install libgnome-2.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libgnome-2.0
E: Couldn't find any package by glob 'libgnome-2.0'

Those 2 packages are not available for Ubuntu 22.04 according to packages.ubuntu.com and

libgnome-2.0:
https://packages.ubuntu.com/search?suit ... bgnome-2.0
-> don't exist for any ubuntu release... Name is surely misspelled

qt5 default:
https://packages.ubuntu.com/search?suit ... chon=names

I tried to add the repositories for bionic but that don't work for security reasons.

Any idea to finish the install on Ubuntu 22.04? PB previous version was working fine on this same Ubuntu.

Thanks for your most welcome help.
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mk-soft »

Update 2024/03/06
- Added developer packet for new PB v6.10 SysTray
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply