# Cannot execute binary file

**URL:** <https://community.unix.com/t/cannot-execute-binary-file/295217>\
**Category:** Linux\
**Created:** [September 13, 2011, 2:55pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217 "2011-09-13T14:55:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pots06](https://community.unix.com/letter_avatar/pots06/32/6_22734026db12803ebb3e059622ac3534.png) [@pots06](https://community.unix.com/u/pots06)\
**Post date:** [September 13, 2011, 2:55pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/1 "2011-09-13T14:55:42Z")

</div>

I'm trying to install JasperReports Server 4.1 on Linux Ubuntu (release 11.04) as root and have following message:  
-bash: ./jasperreports-server-cp-4.1.0-linux-x64-installer.run: cannot execute binary file

Is any idea what should I do in order to install Jasper?  
Previously, I installed JasperReports Server 4.0 on Linux Red Hat without any problem. Is it related specifically to Linux Ubuntu?

---

<div class="post-metadata">

**Author:** ![pludi](https://community.unix.com/user_avatar/community.unix.com/pludi/32/1278_2.png) [@pludi](https://community.unix.com/u/pludi)\
**Post date:** [September 13, 2011, 3:04pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/2 "2011-09-13T15:04:51Z")

</div>

Could you post the output of these commands?

```nohighlight
uname -a
file jasperreports-server-cp-4.1.0-linux-x64-installer.run
ldd -r jasperreports-server-cp-4.1.0-linux-x64-installer.run

```

---

<div class="post-metadata">

**Author:** ![pots06](https://community.unix.com/letter_avatar/pots06/32/6_22734026db12803ebb3e059622ac3534.png) [@pots06](https://community.unix.com/u/pots06)\
**Post date:** [September 13, 2011, 3:09pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/3 "2011-09-13T15:09:55Z")

</div>

Here are outputs for commands:  
# 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

# file jasperreports-server-cp-4.1.0-linux-x64-installer.run  
jasperreports-server-cp-4.1.0-linux-x64-installer.run: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped

# ldd -r jasperreports-server-cp-4.1.0-linux-x64-installer.run  
not a dynamic executable

---

<div class="post-metadata">

**Author:** ![mark54g](https://community.unix.com/letter_avatar/mark54g/32/6_22734026db12803ebb3e059622ac3534.png) [@mark54g](https://community.unix.com/u/mark54g)\
**Post date:** [September 13, 2011, 3:16pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/4 "2011-09-13T15:16:07Z")

</div>

have you tried actually setting the execute bit for the file?

---

<div class="post-metadata">

**Author:** ![pots06](https://community.unix.com/letter_avatar/pots06/32/6_22734026db12803ebb3e059622ac3534.png) [@pots06](https://community.unix.com/u/pots06)\
**Post date:** [September 13, 2011, 4:06pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/5 "2011-09-13T16:06:59Z")

</div>

The mode is 755:  
-rwxr-xr-x 1 root root 329844862 2011-09-09 09:11 jasperreports-server-cp-4.1.0-linux-x64-installer.run

---

<div class="post-metadata">

**Author:** ![alister](https://community.unix.com/letter_avatar/alister/32/6_22734026db12803ebb3e059622ac3534.png) [@alister](https://community.unix.com/u/alister)\
**Post date:** [September 13, 2011, 4:48pm UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/6 "2011-09-13T16:48:26Z")

</div>

> [@pots06](#):
>
> Here are outputs for commands:  
> # 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
> 
> # file jasperreports-server-cp-4.1.0-linux-x64-installer.run  
> jasperreports-server-cp-4.1.0-linux-x64-installer.run: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped

Looks like you are trying to run a 64-bit x86-64 binary on a 32-bit i386 system.

Regards,  
Alister

---

<div class="post-metadata">

**Author:** ![pots06](https://community.unix.com/letter_avatar/pots06/32/6_22734026db12803ebb3e059622ac3534.png) [@pots06](https://community.unix.com/u/pots06)\
**Post date:** [September 14, 2011, 9:24am UTC](https://community.unix.com/t/cannot-execute-binary-file/295217/7 "2011-09-14T09:24:39Z")

</div>

Thank you to all.  
Thank you Alister.  
I've tried to install 64-bit file edition on 32-bit Kernel system and that's caused a problem.  
I successfully installed 32-bit edition.  
Best Regards.
