Running purebasic in Linux - No such file

Linux specific forum
CaptBenB
New User
New User
Posts: 7
Joined: Tue Apr 30, 2024 10:34 pm

Running purebasic in Linux - No such file

Post by CaptBenB »

I'm having difficulty trying to run purebasic on Linux (Debian). Not sure what I'm doing wrong.

I've tried a vm in TrueNas on Debian 10 and 12 and also in VirtualBox (on mac with Debian 10) and the appropriate versions of purebasic in each case.

I've followed the INSTALL instructions on each and in all cases when I go to run purebasic I get the following error(s) all identical to each install so I must be doing something incredibly simply wrong. I just can't figure it out.

If mouse clicking the desktop file from terminal it just opens as a text file
(it doesn't show up on the desktop and it is set to run as a program with full permissions)

in all cases ./register.sh returns that it has successfully registered the extensions

in all cases I get the following errors(note that the version here is the most recent i tried):
running launch.sh
~/Apps/purebasic_v604$ ./launch.sh
./launch.sh: line 1: ./compilers/purebasic: No such file or directory

~/Apps/purebasic_v604/compilers$
./purebasic
bash: ./purebasic: No such file or directory

and of course I can attest that the files are indeed there.

Suggestions?

Thanks in advance.

Ben
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Running purebasic in Linux - No such file

Post by mk-soft »

Did you also unpack the package with Linux and not with Windows or macOS?
Otherwise the attributes will be lost.

Also installed the developer pack. The IDE requires the libwebkit2gtk in any case

You can also find up-to-date installation instructions here
Link: Simple Install Of 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
CaptBenB
New User
New User
Posts: 7
Joined: Tue Apr 30, 2024 10:34 pm

Re: Running purebasic in Linux - No such file

Post by CaptBenB »

Thanks for responding...

Just now I tried again - I downloaded using firefox on a new install of Debian12 (VirtualBox)

'Did you also unpack the package with Linux and not with Windows or macOS?'
yes

'Also installed the developer pack. The IDE requires the libwebkit2gtk in any case'
yes

'You can also find up-to-date installation instructions here...'
yes I used that link and followed the instructions

I must be missing something. I have not tried Ubuntu - but I prefer debian cause that's what my server is running and I want to be sure I compile in the dev box that is a replica of my server.
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

Hi CaptBen,

Having read your post and tried a few experiments on my machine, the only thing I can come up with would be that you are using the Debian 32 bit version on a 64 bit system.
Although I'm using Void Linux right now, the error I get when trying to run the 32 bit executable from the terminal is:

[moulder@home compilers]$ ./purebasic
bash: ./purebasic: cannot execute: required file not found

Maybe try the latest 64 bit Ubuntu version? If you have already installed the required dependencies it should work. I say "should" only because I have managed to get PB running on various Linux distros and the Linux Ubuntu 20.04 or 22.04 (x64) version is the one I tend to go for.

Also, the terminal is a good way to find out what dependencies might be missing if you get beyond the executable not being found.
Because I tend to use minimal Linux spins or create my own, I know from experience that the terminal output can be helpful in that scenario.

Good luck,

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
CaptBenB
New User
New User
Posts: 7
Joined: Tue Apr 30, 2024 10:34 pm

Re: Running purebasic in Linux - No such file

Post by CaptBenB »

OK - so I just downloaded the latest version of Ubuntu Desktop. Loaded into VirtualBox.
Followed all the instructions as I did on the Debian images.
On Ubuntu it works - even the desktop icon.
--------------------
Must be something else in the version of Debian 64bit causing it not to work. I tried 64 bit versions 10 and 12. I did notice on the Ubuntu version there is a check install script. That script did not exist in the Debian install.
-------------------
I copied the checkinstall script from the Ubuntu Install to Debian12 and ran it ...
./checkinstall.sh
This script try to detect if all developments packages are correctly installed. If you are using a Debian or Ubuntu like distribution, you can use the following line to install all needed packages:

$ sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libssl-dev

If you want to use the QT subsystem for the GUI, you will need additional dev package:

$ sudo apt-get install qt5-default libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev

libgnome devel package need to be installed to use PureBasic
--------------------
searching for libgnome

./apt-cache search libgnome
libgnome-autoar-0-0 - Archives integration support for GNOME
libgnome-autoar-0-dev - Archives integration support for GNOME - development files
libgnome-autoar-doc - Archives integration support for GNOME - documentation
libgnome-autoar-gtk-0-0 - GTK+ widgets for the GNOME Autoar library
libgnome-autoar-gtk-0-dev - GTK+ widgets for the GNOME Autoar library - development files
libgnome-bluetooth-dev - GNOME Bluetooth tools - support library development files
libgnome-bluetooth13 - GNOME Bluetooth tools - support library
libgnome-bluetooth-3.0-13 - GNOME Bluetooth 3 support library
libgnome-bluetooth-3.0-dev - GNOME Bluetooth 3 library - development files
libgnome-bluetooth-doc - GNOME Bluetooth 3 support library - reference docs
libgnome-bluetooth-ui-3.0-13 - GNOME Bluetooth 3 UI support library
libgnome-bluetooth-ui-3.0-dev - GNOME Bluetooth UI 3 library - development files
libgnome-bg-4-2 - Utility library for background images - runtime files
libgnome-bg-4-dev - Background image library for GNOME - development files (GTK 4)
libgnome-desktop-3-20 - Utility library for the GNOME desktop - GTK 3 version
libgnome-desktop-3-dev - Utility library for the GNOME desktop - development files (GTK 3)
libgnome-desktop-3-dev-bin - Installed test files for GNOME desktop - transitional
libgnome-desktop-4-2 - Utility library for the GNOME desktop - runtime files
libgnome-desktop-4-dev - Utility library for the GNOME desktop - development files (GTK 4)
libgnome-desktop-doc - API documentation for libgnome-desktop
libgnome-rr-4-2 - Utility library for display information - runtime files
libgnome-rr-4-dev - Display information library for GNOME - development files (GTK 4)
libgnome-menu-3-0 - GNOME implementation of the freedesktop menu specification
libgnome-menu-3-dev - GNOME implementation of the freedesktop menu specification
libgnome-panel-dev - library for GNOME Panel modules - development files
libgnome-panel-doc - library for GNOME Panel modules - documentation files
libgnome-panel0 - library for GNOME Panel modules
libgnome-games-support-1-3 - library for common functions of GNOME games
libgnome-games-support-1-dev - library for common functions of GNOME games (dev files)
libgnome-games-support-common - library for common functions of GNOME games (common files)
libgnomecanvas2-0 - powerful object-oriented display engine - runtime files
libgnomecanvas2-common - powerful object-oriented display engine - common files
libgnomecanvas2-dev - powerful object-oriented display engine - development files
libgnomecanvas2-doc - powerful object-oriented display engine - documentation files
gir1.2-gkbd-3.0 - GObject introspection data for the GnomeKbd library
gkbd-capplet - GNOME control center tools for libgnomekbd
libgnomekbd-common - GNOME library to manage keyboard configuration - common files
libgnomekbd-dev - GNOME library to manage keyboard configuration - development files
libgnomekbd8 - GNOME library to manage keyboard configuration - shared library
libmenu-cache3 - LXDE implementation of the freedesktop Menu's cache
vim-syntax-gtk - Syntax files to highlight GTK+ keywords in vim

------
its asking for ...
libgnome devel package need to be installed to use PureBasic

I installed the deskop*dev, games*dev, menu*dev

anything else anyone can think of?
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

I was guessing you were using the 32 bit Debian version of PB which doesn't work on a 64 bit OS.
If your Debian OS install is 64 bit and you went for the Debian version of PB rather than the Ubuntu version, you would have a problem running it.
Did you try running the Ubuntu version on your Debian install? If you got it running on an Ubuntu install I can only assume that's because Ubuntu is a 64 bit OS so it would probably work OK.
I have had PB running nicely on Debian, Devuan, Void, Arch and Ubuntu at the very least. On all of them I used the newest Ubuntu version of PB.
Sometimes there are some dependencies missing and they are named differently in different distros. It's a bit trial and error to get it running.
I don't use virtual machines myself, so I don't know if that's a factor?
I suppose basically, what I'm saying is you should be able to get PB running on any Linux OS with some messing about, but the 32/64 bit architecture could be what's causing the problem.

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
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Running purebasic in Linux - No such file

Post by mk-soft »

Have you not ready my link to simple Install of purebasic ...
Libgome2-dev ist obsoleted.
Libwebkit2gtk4-0-dev is needed
Use the linux Ubuntu v20.04 and Higher of purebasic for x64
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
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

Hi CaptBen,

Because I'm curious, I installed a minimal Debian distro called Beardog that is based on Debian 12 Bookworm and is x64.

I went for a minimal install to make it harder for myself on purpose. :)

I installed and updated it, then here's what I did next:

1. Extracted the Purebasic Linux Ubuntu 20.04 or 22.04(x64) to my desktop.

2. Navigated to the compilers folder and double clicked the purebasic executable.

3. Instant success. It opened up straight away. :D

4. Bad news, the program I'm working on wouldn't run because gcc was missing.

5. Looked at the INSTALL file instructions in the Purebasic folder but didn't do all the steps, just the following:

i. Update compiler and default libraries
-------------------------------------
sudo apt-get install build-essential gcc g++

ii. 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

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

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

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

v. Ubuntu missing default libs (Without developer packages)
------------------------------------------------------
gtk2:
sudo apt-get install libgtk2.0

vi. * Ubuntu 20.04 / Raspberry PI Desktop
sudo apt-get install libwebkit2gtk-4.0

6. My program seems to work nicely and has sound. :wink:

I skipped creating a .desktop file because I'm not intending to keep this OS, it was just a test. I didn't install the Qt dependencies because I'm mostly using GTK based Window Managers. If you are using LXQt or Plasma you'll probably need those too.

Here's a picture of it in action. https://u.pcloud.link/publink/show?code ... QXyhcXNSyV

Regards,

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
CaptBenB
New User
New User
Posts: 7
Joined: Tue Apr 30, 2024 10:34 pm

Re: Running purebasic in Linux - No such file

Post by CaptBenB »

Hi,

Thanks for the info.

I finally got around to digging more into this and found the following.

I am able to run purebasic in Debian 12 but only after I followed these instructions...

taken from:
https://unix.stackexchange.com/question ... ile-manage

Debian gnome3 fix desktop icons

apt-get install nemo

edit ~/.config/autostart/nemo-autostart-with-gnome.desktop

[Desktop Entry]
Type=Application
Name=Nemo
Comment=Start Nemo desktop at log in
Exec=nemo-desktop
OnlyShowIn=GNOME;
AutostartCondition=GSettings org.nemo.desktop show-desktop-icons
X-GNOME-AutoRestart=true
NoDisplay=true

logout / login desktop icons will work and purebasic will also work.

However, when I try to perform these steps on a 64 bit version of Debian 10 I get the same error message and symptoms as before. At least I know about where the issue is.

My server is running Debian 10, but I am leaning toward rebuilding all of the code into an Ubuntu server. I like their versioning as it's a bit easier to understand, i.e. LTS 2404 = April of 2024.

I have years of coding programs in this particular Debian 10 server. This is my personal 'business' server for when I retire. I work on it late nights and weekends.

However, it will take a large effort on my part to migrate everything that I built in here to a newer system. If I'm willing to migrate it one more time, I think the next version should outlast me.

Thanks for all your help and input.

Ben
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

Hi CaptBen,

It sounds to me like you were missing the facility to have icons on the desktop? You've basically set up a file manager to manage the desktop now, which is what typically happens with a window manager like Openbox for example.
A desktop environment like XFCE, Gnome or KDE etc would usually have that built in.
That shouldn't stop PureBasic from working though?
Just to clarify, are you using the Ubuntu version of PureBasic(64 bit) on a Debian installation(64 bit)?
When you say server, presumably you mean a Desktop based installation of Debian but it's being used as a server, mainly?
I'm no expert but it sounds like it should work. Unless there is something drastically different between Debian 10 and 12, which could cause an issue, other than it being a lot more up to date.
Maybe try an older 64 bit version of PB from the archives?
Not sure if any of that is helpful, but if you tell me exactly which Debian system you have installed I can try to replicate that on my box and see if I can discover anything?

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
CaptBenB
New User
New User
Posts: 7
Joined: Tue Apr 30, 2024 10:34 pm

Re: Running purebasic in Linux - No such file

Post by CaptBenB »

Hi Moulder,

Well I had prepared a nice long explanation - got interrupted - clicked save draft - but now I can't find the draft.

Short version: I started this project pre-covid using rather expensive cross platform compatible software - it works just great - but I can't keep spending that kind of money when I finally retire less than a decade from now. The cost to me personally is at a minimum 900 to 2500 per year to keep it up. I've used that for my day job for over 20 years, but after I retire, I will not spend that anymore. This is why I want to switch to PureBasic or other cross platform. I've used several over the years but I think PureBasic will suffice.

To add salt into the wounds, the service I was using went defunct just in these past two-four weeks - so - that's about five-six years of work down the drain for one of my main programs that was finally coming together. That's a lot of time and money I won't get back.

To answer your question - but please don't waste any time on it as I've decided not to user that version of debian 10 anyway. But only if your curious...
the uname -a command returns ...
Linux 4.19.0 #1 SMP Wed Jul 12 12:00:44 MSK 2023 x86_64 GNU/Linux

the debian 10 version running in VBox7 on my mac that I got working plus the ubuntu version on my host provider also works, returns the same data
Linux 5.2.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 x86_64 x86_64 GNU/Linux

Thanks,
Ben
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

Hi CaptBen,

Basically, it looks like you are running 64 bit(x86_64) operating systems. The kernels that are running on those system are not the most recent, shall we say! I don't know whether that would make much difference though?

Even though in your original post you said you tried various methods and used the appropriate PB versions, I'm still not 100% sure which version of PureBasic you were trying to install on your Debian 10? I wonder if there is some confusion over the naming of the PureBasic binaries, namely that the 32 bit(x86) is called the Debian version, and the 64 bit is called the Ubuntu version.

The main reason being that you got this error message:
~/Apps/purebasic_v604/compilers$
./purebasic
bash: ./purebasic: No such file or directory

So, forgive me if I'm terribly mistaken, but it looked like you were trying to run the 32 bit PureBasic binary on the 64 bit Debian operating system, which in my experience doesn't work. It tends to not find the binary at all, as it says in the error message.

If you run the 64 bit Ubuntu version, either 18.04 or 20.04/22.04, on your Debian 64 bit OS, it should work. Even if there are missing dependencies required to get programs running, the PB IDE should at least start up.

Again, I don't know if any of this is helpful, but I'm happy to try to help you get it all working nicely so you can get on with doing what you need to do. :)

I don't know if you saw the link I posted before, but here is PB in action on my Beardog Debian 12(64 bit) install running PB 6.10 LTS(the 64 bit Ubuntu 20.04/22.04 version) showing the game I'm working on. ;)

https://u.pcloud.link/publink/show?code ... QXyhcXNSyV

Regards,
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
User avatar
mk-soft
Always Here
Always Here
Posts: 6245
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Running purebasic in Linux - No such file

Post by mk-soft »

The Linux version information on the PureBasic page tells you on which system it was tested and compiled.
But it does not say that it can also run on other Linux systems.

So:
OS Linux 64bit Intel: Ubuntu 20.04 and higher (x64)
OS Linux 32bit Intel: Linux Debian 12 (x86)
For OS Linux ARM the Raspberry version. Also on VM Linux ARM on host system macOS (M1/M2)
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
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Running purebasic in Linux - No such file

Post by StarBootics »

I'm using the x64 Ubuntu version of PureBasic on Debian 12 x64 without any problems.

It would be nice to mention that on the PureBasic web site.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Running purebasic in Linux - No such file

Post by moulder61 »

@mk-soft

Maybe, but I have it running on various "untested" Linux operating systems and it seems to work pretty well.

Debian obviously, Ubuntu(with some messing around, it didn't like Gnome on my machine), Void, Arch, Devuan and Antix.
Most of which are/were minimal net installs, so a good chance of having dependencies missing, yet I managed to get PB running. :)

I haven't tried the likes of Slackware, OpenSuse, Fedora, Puppy etc because I don't tend to use those systems. I'm just happy to try to help someone using Linux get started if I can.

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
Post Reply