Linux console only app

Linux specific forum
a.ross
User
User
Posts: 21
Joined: Tue Dec 08, 2009 12:50 am

Linux console only app

Post by a.ross »

Is there a way to compile with out needing GLIBC_2.34 so the console apps will run purely in terminal without needing the GUI present, you know like running the app in init 3
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Linux console only app

Post by Fred »

glibc is a mandatory lib, may be you meant GTK. If you don't use any window/gadget/requester etc. libs it shouldn't use it.
a.ross
User
User
Posts: 21
Joined: Tue Dec 08, 2009 12:50 am

Re: Linux console only app

Post by a.ross »

This is probably my bad, I compiled on Ubuntu 20.04 and ran on rocky Linux 8.5 via putty.
I suspect it's a versioning issue.

Thanks for the reply!
User avatar
mk-soft
Always Here
Always Here
Posts: 6201
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Linux console only app

Post by mk-soft »

Which kernel version does your target system have?
Terminal -> uname -a or hostnamectl

For older kernel versions you must also use an older Purebasic version.

For example:
For kernel version 5.x -> PB v6.04 on linux with kernel 5.x
For kernel version 6.x -> PB v6.12 on linux with kernel 6.x
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
useful
Enthusiast
Enthusiast
Posts: 402
Joined: Fri Jul 19, 2013 7:36 am

Re: Linux console only app

Post by useful »

Linux
PureBasic free for Linux Debian 12 (x86)
PureBasic free for Linux Ubuntu 18.04 (x64)
PureBasic free for Linux Ubuntu 20.04 or 22.04 (x64)
PureBasic free for Linux Ubuntu 24.04 (x64)

In each of these lines, you need to add the glibc version

For code usage outside of the ubuntu/debian ecosystem, this information is more important.

p.s. https://en.wikipedia.org/wiki/Ldd_(Unix) https://linux.die.net/man/1/ldd
Dawn will come inevitably.
a.ross
User
User
Posts: 21
Joined: Tue Dec 08, 2009 12:50 am

Re: Linux console only app

Post by a.ross »

Cool, I made the mistake of compiling a gui version that "just worked" switching between versions (but that was using RHL v9).
I then made the assumption terminal (console) apps would just work without requiring any external library's (it was just one line printN("hello world") )

I have a few different varieties of linux at work and wanted an easy way to move terminal apps between versions, I'll look at getting rpm's to fill the gaps on the RHEL flavors.
Post Reply