N
N
NO_GLITCH2015-08-04 02:43:52
GCC
NO_GLITCH, 2015-08-04 02:43:52

Why won't applications compiled on another machine run?

There is no C++ compiler on machine A
On machine B, which has the same kernel as machine A, I compile the application
I transfer it to machine A, I do chmod +x test
I run ./test and an error is generated that the file was not found
Tell me why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-08-04
@NO_GLITCH

You are missing something. Most likely, where you are compiling the application, either are installed, for example, to support 32bit applications.
check through ldd what is missing and deliver
for example to ubuntu this is most often
sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question