How can i install PB on Debian 12 (x64)?

Linux specific forum
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

How can i install PB on Debian 12 (x64)?

Post by Mijikai »

How can i install PB on Debian 12 (x64)?

I created the Apps folder with purebasic-v612 in it and installed pakages according INTSALL file (all non Ubuntu stuff).

When i tried installing
sudo apt-get install qt5-default qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5-plugins
qt5-default was not found !?

What are the steps needed for Debian 12?

Edit:
I tried to install: PureBasic 6.12 LTS for Linux (Debian 12 - x86)
Last edited by Mijikai on Sun Sep 29, 2024 7:02 am, edited 2 times in total.
PeDe
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Nov 26, 2017 3:13 pm

Re: How can i install PB on Debian 12 (x64)?

Post by PeDe »

Here are the steps I have installed, also Debian 12 x64 (Cinnamon):
PureBasic v6.12 (Ubuntu 22.04 Version)
1: sudo apt-get install build-essential gcc g++
2: sudo apt-get install libwebkit2gtk-4.0-dev
3: sudo apt-get install libgl1-mesa-dev libgl1-mesa-glx
4: sudo apt install libcanberra-gtk-module

If you want to compile the IDE yourself, this is still required:
5: sudo apt install zip
6: sudo apt install libxxf86vm-dev
7: sudo apt install libglu1-mesa-dev

Peter
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: How can i install PB on Debian 12 (x64)?

Post by Mijikai »

Thank you very much, it works now :D

I just made the switch from Windows 11 to Linux Debian 12 x64 - Cinnamon.
It already feels better than my old OS but i still need to get more familiar with it. :)

Its still a mystery to me why the Debian 12 PB Version (x86) did not work for me but the mentioned Version for Ubuntu (x64) does!? :?:

Why is there a separate Version of PB for Debian (if the others work) and why is there no Purebasic for Debian 12 x64?
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: How can i install PB on Debian 12 (x64)?

Post by moulder61 »

@Mijikai(and anyone else that is interested)

Ignore the fact that they are called Debian and Ubuntu. One is for x86 and the others for x86_64. They may well have been designed to work on those particular distributions, but you don't need to install Debian or Ubuntu for PB to work!

Use the one that matches your architecture. If you have an older PC/laptop that is 32 bit, use the Debian version, otherwise use the Ubuntu version/s.

I have managed to get PB running on various Linux distros, so it is possible, whatever flavour you choose. It just takes a bit more work to get the dependencies installed!

I'm currently using it in Void Linux. 8)

Moulder.


Image
Last edited by moulder61 on Mon Sep 30, 2024 4:23 pm, edited 1 time in total.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: How can i install PB on Debian 12 (x64)?

Post by Mijikai »

Thanks for the clarification @moulder61
User avatar
kenmo
Addict
Addict
Posts: 2043
Joined: Tue Dec 23, 2003 3:54 am

Re: How can i install PB on Debian 12 (x64)?

Post by kenmo »

qt5-default was not found !?
I had this error too, but it doesn't seem to be a problem, PB 6.12 x64 Linux is working fine for me!

I could not bear to even set up Windows 11 so I also took a dive into Linux :)
I've tried a few Linux over the years but I never stuck with it, this time I'm trying ElementaryOS (based on Ubuntu based on Debian) and it's my most successful try yet, been enjoying it for a couple weeks!
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: How can i install PB on Debian 12 (x64)?

Post by Mijikai »

@kenmo good luck with Elementary OS, it looks nice 8)
There are so many cool options.
Not sure what the qt5-default problem is all about i could not resolve it.
It seems like Linux is the only sane option for me going forward.

Im still having trouble getting the PB Icon to show for my .desktop file.
Does it work for you guys?
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: How can i install PB on Debian 12 (x64)?

Post by moulder61 »

@Mijikai

Glad my explanation helped. It's not the official explanation, it's my experience talking. I could be wrong!

Regarding the qt5-default issue, I'm using the gtk dependencies so I'm not having that problem. I can't tell you what is happening, but "maybe" if you installed the gtk and the qt dependencies there is some clash of interest? I'm just guessing?

Regarding the .desktop file, and I do tend to be a bit unconventional, but below is what mine has in it. Bear in mind I didn't use the PB installer so I had to create the .desktop file myself, and put everything where I wanted it, and get it all working. Did I mention I was unconventional? :lol:

[Desktop Entry]
Categories=Development;
Comment[en_GB]=PB IDE
Comment=PB IDE
Exec=/home/user/.local/bin/PB-611/compilers/purebasic
GenericName[en_GB]=
GenericName=
Icon=/usr/share/icons/pb.svg
MimeType=
Name[en_GB]=PureBasic611
Name=PureBasic611
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Exec= is pointing to the actual location of the PB compiler on my system.
Icon= points to the icon on my system.

You will usually find the real PB icon in the top level PB folder and it's called logo.png, so point yours there.

Looks like this on my system. I'm using the BeautyLine icon theme and I custom made the PB one.

Image

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: How can i install PB on Debian 12 (x64)?

Post by AZJIO »

For x86 I use Linux MX. Unlike Debian, there is no need to burn a CD/DVD or use the dd command for a flash drive. Linux MX can be installed from ISO. See other ISOs

Code: Select all

set isofile="/b/MX-23.4_386.iso"
search --no-floppy --file --set=root ${isofile}
loopback loop ${isofile}
linux (loop)/antiX/vmlinuz fromiso=${isofile} from=all nomodeset lang=ru_RU
initrd (loop)/antiX/initrd.gz
Instead of ru_RU, specify your language (only for LiveCD)
Mijikai wrote: Sun Sep 29, 2024 9:56 pm Im still having trouble getting the PB Icon to show for my .desktop file.
You can put the logo.png file in the /usr/share/pixmaps/purebasic.png folder, and specify Icon=purebasic in the .desktop file. See more
The default theme is \usr\share\icons\hicolor\. You can also add icons to \usr\share\icons\hicolor\48x48\apps\purebasic.png and use the filename without the path.

Use a regular text editor. And add this file to the \usr\share\applications\ folder, then it will appear in the main menu.

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=PureBasic
Exec=/home/user/Apps/purebasic/compilers/purebasic
Icon=/usr/share/pixmaps/purebasic.png
Categories=Development;IDE;TextEditor;
Comment=
MimeType=text/purebasic;
Mijikai wrote: Sat Sep 28, 2024 11:03 pm purebasic-v612
Don't specify a version, use the "purebasic" folder. When the new version comes out, your file associations and pb file icons will be broken. You will have to adjust this every time. When a new version comes out, you can rename the folder to “purebasic-v612”, and extract the new version with the “purebasic” folder into the Apps folder, and you won’t have to configure anything, neither icons nor shortcuts. Tested from my own experience, this has created problems for me many times.

you can copy the settings "C:\Users\Users\AppData\Roaming\PureBasic" to the "/home/user/.purebasic" folder.
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: How can i install PB on Debian 12 (x64)?

Post by Mijikai »

Thank you for all the replies :)

I ended up using the launcher option, i did not use it before as i was trying to follow the instructions
that came with the PB "Debian" x86 version...

So this turned out to be very easy. :oops:

What it looks now for me:
[Desktop Entry]
Name=PureBasic v.6.12
Exec=/home/user/Apps/purebasic-v612/compilers/purebasic
Comment=
Terminal=false
Icon=/home/user/Apps/purebasic-v612/logo.png
Type=Application
Name[en_US]=PureBasic 6.12
Image

@moulder61 you have a very cool setup but its to advanced for me to understand.
The PB-Team should look into the qt5 problem imho. (as it could lead to problems for other users).
Btw. i just extracted the .tgz and placed it in a folder (Apps) like i did before with the PB "Debian" version (is there an actual install routine?)
as i still had the instructions from the text-file in mind.

@AZJIO thanks for the x86 tip but i only plan to use x64 going forward.
I wanted to install PB "Debian" x86 only because i had the impression it was the only PB option for Debian (silly me).
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: How can i install PB on Debian 12 (x64)?

Post by AZJIO »

Mijikai wrote: Mon Sep 30, 2024 9:51 am I wanted to install PB "Debian" x86 only because i had the impression it was the only PB option for Debian.
I use x86 because there are people who ask for x86 for their computer at work or for some other reason. I have Arch_x64, Mint_x64, Fedora_x64, MX_x86 installed. I compile on all 4 OS. You can see in my archives 4 packages zst, rpm deb, deb_x86. Arch has package versions higher than Ubuntu, so for me it is important to compile on each OS rather than using one compilation for all.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: How can i install PB on Debian 12 (x64)?

Post by moulder61 »

@Mijikai

Glad you got it working. 8)

It's interesting that you think my set up is advanced! I have stripped my OS down to the minimum actually. :P

I have a very minimal XFCE setup. In fact there's not much XFCE in it at all, just the window manager, XFWM with tint2 panel and jgmenu for my applications menu.

PB(Linux versions) do come with an installer script, but they are geared towards Debian and Ubuntu because they use apt to install the dependencies. In my current OS(Void) that doesn't work, so it's a case of looking at the dependencies and trying to find the equivalent in the Void repos and installing them. Same with any other OS that doesn't use an apt based installer.

AZJIO's advice regarding not specifying a particular version is good advice. I just like to make things difficult for myself. :shock:

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
PBJim
Enthusiast
Enthusiast
Posts: 296
Joined: Fri Jan 19, 2024 11:56 pm

Re: How can i install PB on Debian 12 (x64)?

Post by PBJim »

kenmo wrote: Sun Sep 29, 2024 7:51 pm I've tried a few Linux over the years but I never stuck with it, this time I'm trying ElementaryOS (based on Ubuntu based on Debian) and it's my most successful try yet, been enjoying it for a couple weeks!
You got me interested in reading about ElementaryOS yesterday and it looks good. I've been considering a new distro for a machine that's sitting ready for deployment, but I needed XRDP and it's too troublesome on ElementaryOS. But, another time I'll probably try this OS on a desktop.
I could not bear to even set up Windows 11 so I also took a dive into Linux :)
Yes, feel the same way, just can't stand big tech's manipulative practices.
Post Reply