D
D
Def4lt2016-04-04 18:32:29
ubuntu
Def4lt, 2016-04-04 18:32:29

Can't execute file?

There is a file compiled in C

$ ls -l
total 12
-rwxrwxrwx 1 test test 8324 нояб. 13  1998 hoze

When I try to execute it, I get an error that this file does not exist.
$ ./hoze 
bash: ./hoze: No such file or directory

I can't figure out what's wrong.
PS Only recently switched to linux and I may not know something.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2016-04-04
@saboteur_kiev

Your binary requires some libs that are not installed on the system. And the fact that the file is not found - it is he who swears at some kind of lib.
Look at the output
of ldd ./hoze
and see if there are any missing items from the list - they will need to be reinstalled.

M
mureevms, 2016-04-04
@mureevms

The binary is compiled for another platform, Recompile on the current system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question