Ask Your Question
0

static program not working

asked 2018-06-13 14:09:10 -0600

I try to run a static program, for example testdiskstatic. The answer "bash: testdiskstatic: Befehl nicht gefunden..." (command not found) but with "ls" the program is showed and I am in the same directory al the program. The documentation says: "This Linux version of TestDisk & PhotoRec should work on any 2.6 i386 or x8664 kernel. It's a static version, the binary doesn't depend on shared libraries." I use fedora 28. I ask in the forum, because command nor found seems to be an mistake of fedora an not of the program If I try "sudo dnf install" also "Kein Treffer für Argument: testdiskstatic" (No hit for argument) greetings an thanks for any answers.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2018-06-13 19:17:02 -0600

villykruse gravatar image

updated 2018-06-13 19:18:18 -0600

Works for me

tar xf testdisk-7.0.linux26-x86_64.tar.bz2
testdisk-7.0/testdisk_static

Also note: testdisk is also provided in the fedora repository:

dnf install testdisk
edit flag offensive delete link more
1

answered 2018-06-14 09:50:22 -0600

fcomida gravatar image

When the binary you are trying to run is not in PATH (echo $PATH) you must provide its path for running it: ./testdisk since you are already into the same directory of your binary. bash searched for that binary in all the directories listed in PATH and rightly printed command not found. You can add any directory to PATH env variable editing ~/.bash_profile

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-06-13 14:09:10 -0600

Seen: 73 times

Last updated: Jun 14