Simple, basic Linux question - how do I simply run a program?

Jeff7

Lifer
Jan 4, 2001
41,596
20
81
Using Knoppix to try to stress test a hard-driveless laptop. Downloaded the Linux version of Prime95, and extracted what I believe to be the executable file in the tar.gz file. So how do I get it to do anything now? Clicking on the file does nothing. Open With makes it ask for a program to open the file with. How do I just flat out run the program?
 

wkinney

Senior member
Dec 10, 2004
268
0
0
open terminal, cd to its location, tar -zxvf the .tar.gz file, 'more' the readme.
type ./<nameofexecfile>
 

Jeff7

Lifer
Jan 4, 2001
41,596
20
81
Originally posted by: wkinney
open terminal, cd to its location, tar -zxvf the .tar.gz file, 'more' the readme.
type ./<nameofexecfile>

The readme's instructions for "run the file" are just that - decompress the archive (did that, with that tar -zxvf command), and then it says "Run the mprime executable.
I typed this in:
./mprime
It says "Error while loading shared libraries."


Edit: Ok, with that in mind, I tried the "statically linked" download file. Now it's working.
Isn't there a way of just running an executable through the GUI?
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
Originally posted by: Jeff7
Edit: Ok, with that in mind, I tried the "statically linked" download file. Now it's working.
Isn't there a way of just running an executable through the GUI?

If it's a console app, it's pointless to run it from a file manager.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
./mprime
It says "Error while loading shared libraries."

You don't have all of the dependencies for it.

Isn't there a way of just running an executable through the GUI?

Don't know about Konquerer but Nautilus just seems to do nothing when I tell it to 'open' a console app.
 

niomosy

Junior Member
Dec 27, 2005
20
0
0
Originally posted by: Jeff7
Originally posted by: wkinney
open terminal, cd to its location, tar -zxvf the .tar.gz file, 'more' the readme.
type ./<nameofexecfile>

The readme's instructions for "run the file" are just that - decompress the archive (did that, with that tar -zxvf command), and then it says "Run the mprime executable.
I typed this in:
./mprime
It says "Error while loading shared libraries."


Edit: Ok, with that in mind, I tried the "statically linked" download file. Now it's working.
Isn't there a way of just running an executable through the GUI?

You're missing a library or libraries. You may see if there's any particular library requirements on there.