Page 1 of 3

Simple install of PureBasic (Ubuntu, Mint, Raspberry)

Posted: Sun Mar 15, 2020 5:26 pm
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

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

Posted: Sun Mar 29, 2020 10:42 am
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Fri Apr 17, 2020 1:39 am
by juror
Interesting and informative.
Many thanks.

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Apr 18, 2020 10:03 am
by AZJIO
code highlighting for Geany - download

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Thu Apr 30, 2020 10:25 pm
by dj_papeles
Thank you very much for this guide, it helps me a lot!

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 10:03 am
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 11:25 am
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).

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 1:07 pm
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 2:41 pm
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 3:13 pm
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'

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 3:26 pm
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 3:29 pm
by mk-soft
Which linux version do you use?
Which vm ware do you use? (VirtualBox, e.g.)

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 3:31 pm
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 4:03 pm
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

Re: Simple install of PureBasic (Ubuntu, Mint)

Posted: Sat Jun 06, 2020 4:23 pm
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.