Simple install of PureBasic (Ubuntu, Mint)

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

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by mk-soft »

If you want to test the programs or just want to try them on Linux, the way via virtual machines is the right way.

The PB programs run to 99.9999% on virtual machines, so it is better to test them on them.

With me everything runs in VM's (Hostsystem Mac-Mini 2018,I7,32 GB Ram)
Windows XP, 7, 10; Linux x86 and x64

But first test the PB-version 5.70 on your laptop
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace
deeproot
Enthusiast
Enthusiast
Posts: 217
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by deeproot »

Thanks very much mk-soft - simple install guide is very useful :)

For information of others: - instructions also work fine for the MX Linux distro, both 64-bit and 32-bit, latest version 19.2 (at time of writing!) but also apply to previous releases 17 and 18. The Webkit situation is the same as for Ubuntu and is no longer available with 19.x
User avatar
PB_Rainer
User
User
Posts: 77
Joined: Fri Jun 07, 2019 1:56 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by PB_Rainer »

Hello,

because I hate unsolved problems, I'm back again with Linux here. I have installed it on an external USB-HDD with Grub-bootmenu, so that I can start Win10 from intrernal HDD or Linux from the external HDD. It's working well.

Here systeminfo:
System: Host: rainer-Precision-M4500 Kernel: 5.0.0-32-generic i686 bits: 32 compiler: gcc
v: 7.4.0 Desktop: Cinnamon 4.4.8 wm: muffin dm: LightDM Distro: Linux Mint 19.3 Tricia
base: Ubuntu 18.04 bionic
Machine: Type: Laptop System: Dell product: Precision M4500 v: 0001 serial: <filter> Chassis:
type: 9 serial: <filter>
Mobo: Dell model: 0RRH3K v: A00 serial: <filter> BIOS: Dell v: A04 date: 07/08/2010
Battery: ID-1: BAT0 charge: 75.7 Wh condition: 75.7/73.3 Wh (103%) volts: 12.3/11.1
model: Samsung SDI DELL H139197 serial: <filter> status: Full
CPU: Topology: Dual Core model: Intel Core i5 M 520 bits: 64 type: MT MCP arch: Nehalem
rev: 2 L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19150
Speed: 2633 MHz min/max: 1199/2400 MHz Core speeds (MHz): 1: 2648 2: 2714 3: 2642
4: 2765
Graphics: Device-1: NVIDIA GT216GLM [Quadro FX 880M] vendor: Dell driver: nvidia v: 340.108
bus ID: 01:00.0 chip ID: 10de:0a3c
Display: x11 server: X.Org 1.19.6 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1600x900~60Hz
OpenGL: renderer: Quadro FX 880M/PCIe/SSE2 v: 3.3.0 NVIDIA 340.108 direct render: Yes
I installed "anyway" a PureBasic Version and this is working too, not sure if everything is ok.
Version 5.70 LTS (Linux - X86)
I have tried all other versions without any success)
But now I have the next problem which I will describe in the "I hope" right thread.

Regards Rainer (who calls himself after installing Linux and PB for Linux "SUDO-kan Rainer")
User avatar
SnowyDog
New User
New User
Posts: 4
Joined: Tue Jun 10, 2014 8:18 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by SnowyDog »

mk-soft wrote: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
So, is there a fix for the ZLIB problem on a real machine? I need to install PB on Ubuntu 16.04 LTS (32-bit) but am hitting this problem.

Thanks
Robin
GPI
PureBasic Expert
PureBasic Expert
Posts: 1382
Joined: Fri Apr 25, 2003 6:41 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by GPI »

First of all, thank you for your guide, without purebasic would not run. Fred should really add a install.sh and update _checkinstall.sh - seams outdated...

but i don't understand this:
mk-soft wrote: Desktop Link File for Purebasic
- Create desktop file with GEdit
- Change path to purebasic and save as "purebasic-v5.72.desktop" on desktop folder.
- Change property of desktop file to enable "Run As Program"
[Desktop Entry]
Type=Application
Icon=/home/michael/Apps/purebasic-v572/logo.png
Name=Purebasic v5.72
Comment=Developer Utility
Exec=/home/michael/Apps/purebasic-v572/compilers/purebasic
Path=/home/michael/Apps/purebasic-v572/compilers
StartupNotify=false
Terminal=false
it seems, that ubuntu (downloaded today - so up to date) don't want links any more. I activated icons on desktop with the tweak-app, but i can't create functional "purebasic.desktop".
User avatar
mk-soft
Addict
Addict
Posts: 3084
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by mk-soft »

You have to edit the file in the folder /home/[user]/desktop and then allow it to start from the desktop, with the right mouse button (contents)

The "Allow Start" is new in Ubuntu 20.04

I can't say exactly how it is in English under Ubuntu, because I have the German GUI
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace
ricardo_sdl
User
User
Posts: 52
Joined: Sat Sep 21, 2019 4:24 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by ricardo_sdl »

Thank you mk-soft! Your instructions worked. For the games part I also had to run these:
sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx
You can check my games at:
https://ricardo-sdl.itch.io/
filip
New User
New User
Posts: 4
Joined: Sat Aug 11, 2018 7:31 pm

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by filip »

Thank you mk-soft ;-)

It works also on ZORIN OS V15.3
User avatar
mk-soft
Addict
Addict
Posts: 3084
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Simple install of PureBasic (Ubuntu, Mint)

Post by mk-soft »

Update
- Added: Install packets for games
- Added: How to install zlib-1.2.9 for older Linux and Mint version

:wink:
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace
Post Reply