title: Cannot execute PhantomJS on Linux
body: <p>Have been trying to install latest version (1.9.8) of phantomjs on Ubuntu 12.04 VM without success.
  Here's what I did so far:</p>
  
  <ol>
  <li><p>To get rid of old version, executed</p>
  
  <pre><code>sudo apt-get remove phantomjs
  </code></pre></li>
  <li><p>To get rid of old symlinks, executed</p>
  
  <pre><code>rm -r /.../phantomjs
  </code></pre></li>
  <li><p>Downloaded phantomjs-1.9.8-linux-x86_64.tar.bz2.2 into /usr/local/share dir and extracted: </p>
  
  <pre><code>sudo wget . . ..tar.bz2
  sudo tar xjf phantomjs-1.9.8-linux-x86_64.tar.bz2
  </code></pre></li>
  <li><p>Created new symlinks to /usr/local/share/, /usr/local/bin/ and /usr/bin</p>
  
  <pre><code>sudo ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/bin/phantomjs  /usr/. . ./phantomjs
  </code></pre></li>
  <li><p>Checked version: </p>
  
  <pre><code>phantomjs --version 
  </code></pre></li>
  </ol>
  
  <p>This is the message that is returned:</p>
  
  <pre><code>-bash: /usr/local/bin/phantomjs: cannot execute binary file
  </code></pre>
  
  <p>Could someone explain why this is happening and what to do to fix it?</p>