title: Installing PhantomJS: went through build process, how to install?
body: <p>EDIT: I dont think linked question answers my problem. Here's the summary</p>
  
  <p>When I do</p>
  
  <pre><code>&gt; ./phantomjs/bin/phantomjs
  phantomjs&gt; # this is the phantomjs shell so it is working
  </code></pre>
  
  <p>but when I do</p>
  
  <pre><code>&gt; ln -s phantomjs/bin/phantomjs /usr/local/bin/phantomjs
  &gt; phantomjs -v
  &lt;ubuntu not installed message&gt;
  </code></pre>
  
  <hr>
  
  <p>I went through the build process mentioned in the official website:</p>
  
  <pre><code>sudo apt-get update
  sudo apt-get install build-essential chrpath git-core libssl-dev libfontconfig1-dev libxft-dev
  git clone git://github.com/ariya/phantomjs.git
  cd phantomjs
  git checkout 1.9
  ./build.sh
  </code></pre>
  
  <p>However, when I do <code>phantomjs -v</code> I find that I still don't have it. </p>
  
  <p>On many websites I have found alternative methods of installing it (without building from source, like using npm or some package manager) but did not find what to do after the very long <code>./build.sh</code> was complete. Can anyone help?</p>
  
  <p>I tried the solution suggested in the comment. It does not work. Here are the details</p>
  
  <pre><code>root@crawler:~/myname# ln -s phantomjs/bin/phantomjs /usr/local/bin/phantomjs
  root@crawler:~/myname# phantomjs -v
  The program 'phantomjs' is currently not installed. You can install it by typing:
  apt-get install phantomjs
  root@crawler:~/myname# ls phantomjs/bin/phantomjs 
  phantomjs/bin/phantomjs
  root@crawler:~/myname# echo $PATH
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  root@crawler:~/myname# 
  </code></pre>
  
  <p>more</p>
  
  <p>root@crawler:~/myname# ls -l phantomjs/bin/
  total 43960
  -rwxr-xr-x 1 root root 45005494 Dec 24 08:28 phantomjs</p>