|
Installation
Steps to install PhantomJS
If the binary package is not available for your platform, see the build instructions to compile from source code. LinuxDownload the tarball, extract the content. The executable bin/phantomjs is ready to use. The bin/phantomjs file must be kept in the same place relative to the lib/ directory, so it's best to symlink it: ln -s /path/to/download/bin/phantomjs /usr/local/bin/phantomjs Note: Use x86 package for 32-bit systems and x86_64 package for 64-bit systems. There is no need to install Qt in the target system. Text rendering requires FreeType and Fontconfig. On Debian/Ubuntu, this can be fulfilled easily by installing the packages, e.g. sudo apt-get install freetype fontconfig Mac OS XDownload the zip file, extract the content. The executable bin/phantomjs is ready to use. Note: For this static build, the binary is self-contained with no external dependency. It will run on a fresh install of Snow Leopard or Lion. There is no requirement to install Qt or any other library. Alternatively, use Homebrew with its updated formula for PhantomJS: brew install phantomjs Warning: MacPorts does not have updated PhantomJS built yet. Installing via MacPorts is not the most recommended way. WindowsDownload the zip file, extract the content. The executable phantomjs.exe is ready to use. Note: For this static build, the binary is self-contained with no external dependency. It will run on a fresh install of Windows (as old as Windows XP). There is no requirement to install Qt or any other library. |