Ask Your Question

static program not working

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

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

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

villykruse gravatar image

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

Works for me

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

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

dnf install testdisk
edit flag offensive delete link more

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

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


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

Seen: 58 times

Last updated: Jun 14