You are not logged in.

#1 2014-02-12 08:54:10

saman_artorious
Member
Registered: 2013-05-30
Posts: 31

cannot execute a program remotely via ssh

I two linux machine, from the ubuntu machine I copied a program to the remote arch machine.
when I attempt to run the executable of the qt program I get the error:

#./xxx
#-bash: ./xxx: no such file or directory

what is the problem?

Offline

#2 2014-02-12 08:58:47

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: cannot execute a program remotely via ssh

What program did you copy over and why did you copy it over? How did you copy it there. Can you confirm on the arch machine itself that the program / files exist after copying it over?

Offline

#3 2014-02-12 08:59:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: cannot execute a program remotely via ssh

You are trying to run a 32-bit executable on a 64-bit system.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-02-12 09:21:50

saman_artorious
Member
Registered: 2013-05-30
Posts: 31

Re: cannot execute a program remotely via ssh

jasonwryan wrote:

You are trying to run a 32-bit executable on a 64-bit system.

Yes, you are right, my qt version is 32 bit system, the remote machine is 64 bit. How can I resolve this now?

Last edited by saman_artorious (2014-02-12 09:22:20)

Offline

#5 2014-02-12 09:24:05

saman_artorious
Member
Registered: 2013-05-30
Posts: 31

Re: cannot execute a program remotely via ssh

Kartious wrote:

What program did you copy over and why did you copy it over? How did you copy it there. Can you confirm on the arch machine itself that the program / files exist after copying it over?


Yes, I confirm it. I already tested this with a small c program. when I write and make the c program after connecting with ssh on the remote machine, it executes fine with ./a.out
However, if I make it on my own system and transfer the ./a.out executable with scp to the remote machine, it give the same error
./a.out No such file or directory

Offline

#6 2014-02-12 09:26:36

saman_artorious
Member
Registered: 2013-05-30
Posts: 31

Re: cannot execute a program remotely via ssh

I think I can solve this problem if I compile my program on the remote machine and then run it. do you agree?

Offline

#7 2014-02-12 10:34:29

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: cannot execute a program remotely via ssh

We agree. Either this or you install and link a multilib environment on both machines.

Offline

Board footer

Powered by FluxBB