Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Linux specific forum
User avatar
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Post by mk-soft »

Unpack Purebasic
- Create on "Private Folder" an Apps folder
- Unpack Purebasic into this folder
- Rename folder with versions number. Example "purebasic" -> "purebasic-v610"

Install Developer Packets
- Info: Required Webkit not available on Ubuntu bigger version 18.04. Support of Webkit2gtk with Purebasic v6.00+ (Ubuntu 20.04/gtk3)
- Start Terminal and install packets

Update 2024/03/06
Update compiler and default libraries
-------------------------------------
sudo apt-get install build-essential gcc g++

Developer Libraries
-------------------
sudo apt-get install libxxf86vm-dev libxine2-dev unixodbc-dev libsdl1.2-dev libsdl2-dev libssl-dev

sudo apt-get install libgtk2.0-dev libgtk-3-dev

* Systray / Ubuntu 20.04 & Raspberry PI Desktop
sudo apt-get install libappindicator3-dev

* WebKit / Ubuntu 18.04
sudo apt-get install libwebkitgtk-dev libwebkitgtk-3.0-dev

* Webkit / Ubuntu 20.04 & Raspberry PI Desktop
sudo apt-get install libwebkit2gtk-4.0-dev


* Movie / Ubuntu
sudo apt install xine*

* Movie / Raspberry PI Desktop
sudo apt-get install libvlc-dev


Developer Libraries For Games
-----------------------------
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx

Subsystem qt
------------
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5-plugins


Canberra for PB-IDE (Raspberry PI not need)
-------------------
sudo apt install libcanberra-gtk-module


Obsoleted
---------
;sudo apt-get install libgnome2-dev
;sudo apt-get install libgnomeprintui2.2-dev libxine-dev


Ubuntu missing default libs (Without developer packets)
-------------------------------------------------------

gtk2:

sudo apt-get install libgtk2.0

gtk3:

* Ubuntu 18.04
sudo apt-get install libwebkitgtk-3.0

* Ubuntu 20.04 / Raspberry PI Desktop
sudo apt-get install libwebkit2gtk-4.0
sudo apt-get install libappindicator3-1

Movie
sudo apt install xine*

qt:
sudo apt install qt5-default


Ubuntu 16.04 and missing zlib-1.2.9
-----------------------------------
1. Download form "https://zlib.net/fossils/" "zlib-1.2.9.tar.gz"
2. Unpack *.gz
3. Open folder "zlib-1.2.9" into terminal
4. Do
./configure
make
sudo make install
Create desktop icon
- Open gedit and save it as purebasic-v610.desktop in the desktop user folder.
- Since 20.04 you have to be able to launch the icon via context on the desktop.
- Check the path to purebasic!
[Desktop Entry]
Type=Application
Icon=/home/michael/Apps/purebasic-v610/logo.png
Name=Purebasic v6.10
Comment=Developer Utility
Exec=/home/michael/Apps/purebasic-v610/compilers/purebasic
Path=/home/michael/Apps/purebasic-v610/compilers
StartupNotify=false
Terminal=false
Categories=Development
Last edited by mk-soft on Wed Mar 06, 2024 6:42 pm, edited 21 times in total.
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
mk-soft
Always Here
Always Here
Posts: 5313
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Arch-Linux with PACMAN)

Post by mk-soft »

Install of Purebasic with Arch-Linux and PACMAN

I once installed and testet with Manjaro on my PI 400.
Unpacked Purebasic for Raspberry (Arm64) and started it. It runs.

Because I have no experience with package manager "PACMAN", which packages I have to install, I installed all "base-devel".
sudo pacman -S base-devel
For the WebGadget and the OpenGLGadget I installed the following packages.
sudo pacman -S webkit2gtk
sudo pacman -S glfw-x11
sudo pacman -S glu
After that, so far the examples of Purebasic ran. :D

Install of Purebasic on Fedora 35
Link: Install Purebasic v5.72 and v6.00 - Fedora 35
sudo dnf install gcc gcc-c++ libstdc++ c++-gtk-utils-gtk2-devel gtk+ gtk+-devel gtk+extra gtk+extra-devel libgnome-devel libgnomeui-devel libXinerama libXinerama-devel SDL-devel unixODBC-devel c++-gtk-utils-gtk3-devel
Last edited by mk-soft on Sun Mar 19, 2023 2:17 pm, edited 8 times in total.
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
juror
Enthusiast
Enthusiast
Posts: 228
Joined: Mon Jul 09, 2007 4:47 pm
Location: Courthouse

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by juror »

Interesting and informative.
Many thanks.
AZJIO
Addict
Addict
Posts: 1298
Joined: Sun May 14, 2017 1:48 am

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by AZJIO »

code highlighting for Geany - download
dj_papeles
New User
New User
Posts: 6
Joined: Mon Sep 02, 2019 7:46 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by dj_papeles »

Thank you very much for this guide, it helps me a lot!
User avatar
PB_Rainer
User
User
Posts: 80
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

Hello,

I'm totally new with linux!

Did everything what is described in this posting.

When I want to start the program by click onto the icon I get this error:

Failed to execute child process "Path" (Permission denied")

What to do to start the Purebasic?

Thanks for your help in advance

Rainer
Bitblazer
Enthusiast
Enthusiast
Posts: 730
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by Bitblazer »

The official way is to run checkinstall.sh and then if everything is ok, run launch.sh. You unzip, untar the purebasic archive and then "cd purebasic" into the extracted folder.

I start the (custom bugfixed version from mk-soft i got from the purebasic discord chat - join it!) IDE manually by first elevating my terminal user rights (sudo /bin/bash) and then run the IDE directly purebasic/compilers/purebasic
That works and avoids trouble with user rights the IDE otherwise might have, but linuxers will likely tell you never to do that because of the potential security risk (any breach of the purebasic IDE will get the attacker a root shell to your machine).
webpage - discord chat links -> purebasic GPT4All
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)

Post by mk-soft »

There should be no legitimate problems in personal folders (not documents folders) to run apps.
Don't know what it looks like under all Linux distributions.

Maybe unpacked in the wrong folder
or not set the option "Run as Program" in the properties of Icon.

The bugfixed Linux IDE can be found here:
- AutoComplete Bugfix
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
PB_Rainer
User
User
Posts: 80
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

Hi, tested this too.

No success.

I think I will give up with linux, all things with this OS are so horrible complicated.

Thanks a lot
Rainer
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)

Post by mk-soft »

Give up so easily?

1. Correct version taken. PB X64 for Linux X64
2. Double-click on Archives and then drag and drop the folder into your Personal Folder. (Create folder 'Apps')
3. Installed the required libs in the terminal

4. Open PB folder (./Apps/purebasic/compilers) and double click on program 'purebasic'
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
PB_Rainer
User
User
Posts: 80
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

mk-soft wrote:Give up so easily?

1. Correct version taken. PB X64 for Linux X64
2. Double-click on Archives and then drag and drop the folder into your Personal Folder. (Create folder 'Apps')
3. Installed the required libs in the terminal

4. Open PB folder (./Apps/purebasic/compilers) and double click on program 'purebasic'
Hi, thanks, I did all this without any success.

I'm programming all apps for Windows. I simply wanted to test if my sources are also running under Linux, and how they are looking.

Rainer
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)

Post by mk-soft »

Which linux version do you use?
Which vm ware do you use? (VirtualBox, e.g.)
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
PB_Rainer
User
User
Posts: 80
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

mk-soft wrote:Which linux version do you use?
Hi it's installed on an old IBM-Laptop. The version is Linux Mint Mate 13 32bit. An I used the 86 version from PureBasic.

Rainer
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)

Post by mk-soft »

Ah,
Ok, use older version from purebasic (pb v5.70)
Its a problem with zlib.
You can see the problem, when you starting the ide from terminal.
michael@Ubuntu-1604:~/Apps/purebasic-v572/compilers$ ./purebasic
./purebasic: /lib/i386-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by ./purebasic)
My fixed IDE can work with pb v5.70

P.S. Alternate
Install VirtuelBox and VirtualBox Extension Pack on windows
Create Linux Machines: Examples
- Ubuntu 18.04 LTS (If used WebGadget)
- Ubuntu 20.04 LTS

Link: https://www.virtualbox.org/wiki/Downloads
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
PB_Rainer
User
User
Posts: 80
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

Thank you very much for your help.

I have invested a long time to install Linux on this old machine. Even this was difficult and a lot of commands in the terminal have been necessary. Started my programming with MSDOS and then from Windows 1 to 10. So I'm an experienced user of Windows. Click INSTALL and ready! It was a horrible experience even to install Linux, tested a lot of versions, not one was installing without my deep editing help.

At least this version was running. But not PB.

It's not so important for me, just curious.

Thanks, Rainer.
Post Reply