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











up vote
0
down vote

favorite












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 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 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 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?







bash binary troubleshooting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 24 at 20:39









Rui F Ribeiro

38.3k1476127




38.3k1476127










asked Jan 31 at 19:15









talker90

312




312












  • 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: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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















Required, but never shown

























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

15.8k114870




15.8k114870








  • 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




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




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















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre