title: AWS : cannot execute binary file
body: <p>My server is a <strong>Amazon Linux AMI 64bits</strong> (<a href="https://aws.amazon.com/amazon-linux-ami/2014.09-release-notes/" rel="nofollow">2014.09-release-notes</a>)</p>
  
  <p>I compiled a program coded in C++ (<em>gcc48-c++.x86_64</em> is installed) :</p>
  
  <pre class="lang-none prettyprint-override"><code>[root@ip-***-**-**-*** waveform_generator]# make
  Compiled    [src/main.cpp] &gt;&gt; [src/main.o]
  Compiled    [src/File.cpp] &gt;&gt; [src/File.o]
  Compiled    [src/AGenerator.cpp] &gt;&gt; [src/AGenerator.o]
  Compiled    [src/GeneratorSVG.cpp] &gt;&gt; [src/GeneratorSVG.o]
  Compiled    [src/GeneratorCanvas.cpp] &gt;&gt; [src/GeneratorCanvas.o]
  Compiled    [src/GeneratorPNG.cpp] &gt;&gt; [src/GeneratorPNG.o]
  Compiled    [src/Header.cpp] &gt;&gt; [src/Header.o]
  Compiled    [src/pngwriter.cpp] &gt;&gt; [src/pngwriter.o]
  Built       [wfgen]
  </code></pre>
  
  <p>Now when I execute the compiled file "wfgen" the console return this message :</p>
  
  <pre class="lang-none prettyprint-override"><code>[root@ip-***-**-**-*** waveform_generator]# bash wfgen
  wfgen: wfgen: cannot execute binary file
  </code></pre>
  
  <p>Environment :</p>
  
  <pre class="lang-none prettyprint-override"><code>[root@ip-***-**-**-*** waveform_generator]# uname -i
  x86_64
  [root@ip-***-**-**-*** waveform_generator]# file wfgen
  wfgen: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=2e7c881c6fc10f12cdf49402edae1cc36b8d77a0, not stripped
  </code></pre>
  
  <p>Do you have a solution to my problem?</p>
  
  <p>Thank you a lot :)</p>
  
  <p>Max.</p>