You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: _posts/documentation/get-started/2000-01-01-download.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,6 @@ Binary packages are available via pkg:
39
39
40
40
`$ sudo pkg install phantomjs`
41
41
42
-
You can also build PhantomJS yourself from the FreeBSD Ports Collection: [https://svnweb.freebsd.org/ports/head/lang/phantomjs/](https://svnweb.freebsd.org/ports/head/lang/phantomjs/)
43
-
44
42
## Source Code
45
43
46
44
Check the official git repository [github.com/ariya/phantomjs](https://github.com/ariya/phantomjs/).
**Warning**: Compiling PhantomJS from source takes a long time, mainly due to thousands of files in the WebKit module. With 4 parallel compile jobs on a modern machine, the entire process takes roughly 30 minutes. It is highly recommended to download and install the ready-made [binary package]({{ site.url }}/download.html) if it is available.
8
+
Unless it is absolutely necessary to build PhantomJS from source, it is highly recommended to download and install the ready-made [binary package]({{ site.url }}/download.html) instead.
9
9
10
-
**System Requirements**: Approximately 4 GB of RAM and 3 GB of disk is required for the compilation process.
10
+
##Requirements
11
11
12
-
**Note**: If the compilation process is interrupted, once started again the `build.py` script will continue where left off.
12
+
### Hardware requirements
13
13
14
-
## Mac OS X
14
+
* RAM: at least 4 GB
15
+
* Disk space: at least 3 GB
16
+
* CPU: 1.8 GHz, 4 cores or more
15
17
16
-
Install [Xcode](https://developer.apple.com/xcode/) and the necessary SDK for development (gcc, various tools, libraries, etc).
17
-
You also need to install OpenSSL via [Homebrew](http://brew.sh/) or via [MacPorts](https://www.macports.org/)
18
+
PhantomJS is still a web browser, albeit headless. Thus, building it from source takes a long time (mainly due to thousands of files in the WebKit module). Estimated build time for a 4-core system is 30 minutes.
This produces a statically built `bin/phantomjs`. This is a self-contained executable, it can be moved to a different directory or another machine.
20
+
### Linux requirements
26
21
27
-
## Linux
28
-
29
-
First, install the development packages of the following tools and libraries: GNU C++ compiler, bison, flex, gperf, Perl, Ruby, SQLite, FreeType, FontConfig, OpenSSL, and ICU. The actual package names may vary from one distribution to another.
22
+
First, install the development packages of the following tools and libraries: GNU C++ compiler, bison, flex, gperf, Perl, Ruby, SQLite, FreeType, Fontconfig, OpenSSL, and ICU. The actual package names may vary from one distribution to another.
30
23
31
24
On Debian-based distro (tested on Ubuntu 14.04 and Debian 7.0), run:
**Note**: `build.py` by default will launch parallel compile jobs depending on the available CPU cores, e.g. 4 jobs on a modern hyperthreaded dual-core processor. If necessary, e.g. when building on a virtual machine/server or other limited environment, reduce the jobs by passing a number, e.g `./build.py --jobs 1` to set only one compile job at a time.
46
+
You must have Perl, Python, Ruby, and Git on PATH. Also, note that Git comes with it's own version of `perl.exe`. If you have both Git and a separate perl installation in your PATH, please make sure that you separate Perl install's `bin` folder comes before the git's `bin` folder in your PATH.
58
47
59
-
This produces a build `bin/phantomjs`. This is an executable; it can be moved to a different directory (e.g. /usr/local/bin) or another machine.
48
+
Run the build script from Visual Studio Command Prompt.
60
49
61
-
## Windows
50
+
**Tip**: Enabling incremental linking will make the linkage process faster.
62
51
63
-
**Note**: Supported toolchains: `MSVC2012` and `MSVC2013`.
52
+
### OS X requirements
64
53
65
-
**Note**: You must have Perl, Python, Ruby, and Git on PATH. Also, note that Git comes with it's own version of perl.exe. If you have both Git and a separate perl installation in your PATH, please make sure that you separate perl install bin folder comes before the git bin folder in your PATH variable.
54
+
*[Xcode](https://developer.apple.com/xcode/) and the necessary SDK for development (gcc, various tools, libraries, etc)
55
+
* OpenSSL via [Homebrew](http://brew.sh/) or via [MacPorts](https://www.macports.org/)
66
56
67
-
Use Visual Studio Command Prompt, run in the top directory. The results will go into `bin`:
57
+
### FreeBSD requirements
58
+
59
+
Build PhantomJS from the FreeBSD Ports Collection: [svnweb.freebsd.org/ports/head/lang/phantomjs/](https://svnweb.freebsd.org/ports/head/lang/phantomjs/)
60
+
61
+
## Getting the Code
62
+
63
+
To obtain the code using [Git](http://git-scm.com/) from the official repository [github.com/ariya/phantomjs](https://github.com/ariya/phantomjs/):
0 commit comments