Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm trying to install JasperReports Server 4.1 on Linux ubunto (release 11.04) and have following message:

-bash: ./ cannot execute binary file

Is any idea what should I do in order to insall Jasper?

Previously, I installed JasperReports Server 4.0 on Linux Red Hat without any problem. Is it related specifically to Linux ubuntu?

Here are the output for the commands uname and ls -al:

uname -a

Linux 64-cncrclinrpts 2.6.38-11-generic-pae #48-Ubuntu SMP Fri Jul 29 20:51:21 UTC 2011 i686 i686 i386 GNU/Linux

ls -al

-rwxr-xr-x 1 root root 329844862 2011-09-09 09:11

share|improve this question

migrated from Sep 13 '11 at 18:56

This question came from our site for professional and enthusiast programmers.

4 Answers 4

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

Your uname -a indicates you are running a 32-bit kernel, and the filename you are trying to run gives the clue "x64". Running file on this file will give you the whole story.

You probably want

Alternatively, you can run the installer you have on a 64-bit Linux system.

share|improve this answer
Thank you, PDO. I installed successfully 32-bit edition. Thank you for help. Best Regards. – user10736 Sep 14 '11 at 13:16
@pots Don't (just) thank - accept the answer if it solved your problem. – rozcietrzewiacz Sep 16 '11 at 9:36

This might indicate that an interpreter doesn't exist, although on my system I get a different (more useful) error message through some extra magic bash must have added.

$ cat > <<EOF
echo "Hi."
$ chmod u+x
$ ./
-bash: ./ /bin/nonexistent/sh: bad interpreter: No such file or directory

It'd be helpful if you'd learn a bit more about this file: what does file say? If it says it is a dynamic elf binary, what does ldd say?

share|improve this answer
Still wondering what file says. The ldd output suggests to me that it's interpreted but I don't know what the interpreter is. – Scott Lamb Sep 13 '11 at 17:00
chmod +x

then attempt to run it again, if it still doesn't work what is the ls -al for the file.

share|improve this answer
What is the output of uname -a? You probably are missing libraries for the 64 bit version. – Vern Burton Sep 13 '11 at 17:25

You could run strace ./ to see what really happens there.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.