Troubleshooting advice for: -bash: cannot execute binary file: Exec format error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am new to Linux so would love a simple explanation of how to troubleshoot this problem:



I have a mining rig and am trying to run a program ./garlicoind but I get this error:



-bash: ./garicoind: cannot execute binary file: Exec format error


Is this a common problem? What does it indicate?







share|improve this question






















  • Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
    – yeti
    Jan 31 at 19:26










  • For debugging askubuntu.com/questions/648555/…
    – user13107
    Feb 1 at 4:35














up vote
0
down vote

favorite












I am new to Linux so would love a simple explanation of how to troubleshoot this problem:



I have a mining rig and am trying to run a program ./garlicoind but I get this error:



-bash: ./garicoind: cannot execute binary file: Exec format error


Is this a common problem? What does it indicate?







share|improve this question






















  • Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
    – yeti
    Jan 31 at 19:26










  • For debugging askubuntu.com/questions/648555/…
    – user13107
    Feb 1 at 4:35












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am new to Linux so would love a simple explanation of how to troubleshoot this problem:



I have a mining rig and am trying to run a program ./garlicoind but I get this error:



-bash: ./garicoind: cannot execute binary file: Exec format error


Is this a common problem? What does it indicate?







share|improve this question














I am new to Linux so would love a simple explanation of how to troubleshoot this problem:



I have a mining rig and am trying to run a program ./garlicoind but I get this error:



-bash: ./garicoind: cannot execute binary file: Exec format error


Is this a common problem? What does it indicate?









share|improve this question













share|improve this question




share|improve this question








edited Jan 31 at 19:29









yeti

2,36611223




2,36611223










asked Jan 31 at 19:15









talker90

32




32











  • Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
    – yeti
    Jan 31 at 19:26










  • For debugging askubuntu.com/questions/648555/…
    – user13107
    Feb 1 at 4:35
















  • Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
    – yeti
    Jan 31 at 19:26










  • For debugging askubuntu.com/questions/648555/…
    – user13107
    Feb 1 at 4:35















Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
– yeti
Jan 31 at 19:26




Maybe it is a binary for a different architecture. Look at file garlicoind to find out a bit more about that file.
– yeti
Jan 31 at 19:26












For debugging askubuntu.com/questions/648555/…
– user13107
Feb 1 at 4:35




For debugging askubuntu.com/questions/648555/…
– user13107
Feb 1 at 4:35










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










The program you have is most likely a binary compiled for a different architecture than the machine on which you're trying to run.



You can obtain the binary's architecture type by running



file garlicoind


and you can obtain your machine's architecture type by



uname -m


If they are different, you need either to get the correct binary for your architecture, or to get the code source of the program and compile it yourself.






share|improve this answer
















  • 1




    Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
    – talker90
    Feb 3 at 9:58










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421049%2ftroubleshooting-advice-for-bash-cannot-execute-binary-file-exec-format-error%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










The program you have is most likely a binary compiled for a different architecture than the machine on which you're trying to run.



You can obtain the binary's architecture type by running



file garlicoind


and you can obtain your machine's architecture type by



uname -m


If they are different, you need either to get the correct binary for your architecture, or to get the code source of the program and compile it yourself.






share|improve this answer
















  • 1




    Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
    – talker90
    Feb 3 at 9:58














up vote
1
down vote



accepted










The program you have is most likely a binary compiled for a different architecture than the machine on which you're trying to run.



You can obtain the binary's architecture type by running



file garlicoind


and you can obtain your machine's architecture type by



uname -m


If they are different, you need either to get the correct binary for your architecture, or to get the code source of the program and compile it yourself.






share|improve this answer
















  • 1




    Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
    – talker90
    Feb 3 at 9:58












up vote
1
down vote



accepted







up vote
1
down vote



accepted






The program you have is most likely a binary compiled for a different architecture than the machine on which you're trying to run.



You can obtain the binary's architecture type by running



file garlicoind


and you can obtain your machine's architecture type by



uname -m


If they are different, you need either to get the correct binary for your architecture, or to get the code source of the program and compile it yourself.






share|improve this answer












The program you have is most likely a binary compiled for a different architecture than the machine on which you're trying to run.



You can obtain the binary's architecture type by running



file garlicoind


and you can obtain your machine's architecture type by



uname -m


If they are different, you need either to get the correct binary for your architecture, or to get the code source of the program and compile it yourself.







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 1 at 13:33









dr01

15k114768




15k114768







  • 1




    Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
    – talker90
    Feb 3 at 9:58












  • 1




    Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
    – talker90
    Feb 3 at 9:58







1




1




Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
– talker90
Feb 3 at 9:58




Thanks! This was indeed the problem. I was trying to run a 32-bit program on my 64-bit machine
– talker90
Feb 3 at 9:58












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421049%2ftroubleshooting-advice-for-bash-cannot-execute-binary-file-exec-format-error%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay