Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: ./eclipse: cannot execute binary file

Tags:

i am working on Ubuntu10.10 OS and i have downloaded eclipse-jee-helios-SR1-linux-gtk-x86_64.tar.gz. my computer is 64 bit machine.

when i untar eclipse and try run ./eclipse from command line, it gives me above error.

when i run file eclipse , it gives me following information.

 eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses  shared libs), for GNU/Linux 2.4.0, not stripped 

Could someone help me to find out what is going wrong here

Thanks in advance for any help

like image 501
KItis Avatar asked Feb 04 '11 13:02

KItis


People also ask

How do I fix cannot execute a binary file on Ubuntu?

How to Fix ‘cannot execute binary file: Exec format error’ on Ubuntu. If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption.

What does it mean when a binary file is not executable?

Whenever a user encounters the “ cannot execute binary file ” error, it usually serves as a warning not to open the file you are trying to access. This is because the file is not executable. The error occurs due to several issues, which include incomplete installation or incorrect file permissions.

Why can't I run a binary in a docker container?

This can also happen if the binary uses a libc implementation which is not libc, such as musl. These days this specific problem is most likely encountered when trying to run a binary with libc in a Docker container with an image based on alpine.

Can I run an elf 64-bit binary on my Machine?

If it tells you that it’s an ELF 64-bit binary and you received i686 as output from the arch command, then there’s no way you can reasonably run it on your machine.


1 Answers

My bet is that you are using a x86 Ubuntu with a x86_64 JVM. To make sure your Ubuntu is 64 bits, run the following command:

$ uname -i 
like image 111
jpkrohling Avatar answered Nov 07 '22 05:11

jpkrohling