title: Can't install phantomjs on server
body: <p>I'm having a difficult time getting phantomjs installed on my server. I haven't found very good directions anywhere and the best I've found give me errors when I try to complete them. As of now I'm following these steps and getting these errors.</p>
  
  <p>Successfully used putty to login as root and run the following commands</p>
  
  <pre><code>Line 1: yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++
  No errors
  
  
  Line 2: wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
  No errors
  
  Line 3: mkdir -p /opt/phantomjs
  No errors
  
  Line 4: tar -xjvf ~/phantomjs-1.9.8-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/
  Error: opt/phantomjs: Not found in archive
  </code></pre>
  
  <p>For this error (line 4) I ftp into my server and didn't see any directory for opt/phantomjs. I created one but am having the same "Not found in archive" error.</p>
  
  <p>After this the only other lines of code, from what I've found, should be:</p>
  
  <pre><code>Line 5: ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs
  Line 6: phantomjs /opt/phantomjs/examples/hello.js
  </code></pre>
  
  <p>If anyone has any insight I'd greatly appreciate it!</p>