This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
/
INSTALL
79 lines (46 loc) · 1.57 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Installation Instructions
*************************
System requirements:
* C++ toolchain such as g++ 7 or later
* CMake version 3.5 or later
* Qt 5 toolkit
* Community QtWebKit version 5.212 or later
* Python 2.7 (to run the tests)
Installation on Linux
---------------------
Due to the required QtWebKit >= 5.212, only the following distributions will
be supported:
* Debian 10 (buster) or later
* Ubuntu 18.04 (bionic) or later
* Fedora 28 or later
On Debian/Ubuntu, the requirements can be fulfilled by installing these packages:
sudo apt install g++ cmake qt5-default libqt5webkit5-dev python
After unpacking the source tarball or cloning the repository:
./configure && make
Do a quick sanity check:
./bin/phantomjs --version
Run the test suite:
make check
Install it (may require sudo):
make install
Installation on Windows
-----------------------
Only MinGW is supported for now.
First, install MSYS2.
Then, from "MYS2 MinGW64 32-bit" shell, install the required packages:
pacman -S msys/make
pacman -S mingw32/mingw-w64-i686-toolchain
pacman -S mingw32/mingw-w64-i686-cmake
pacman -S mingw32/mingw-w64-i686-qtwebkit
pacman -S mingw32/mingw-w64-i686-python2
Note: add --disable-download-timeout as an additional argument, if the
installation failed due to the slow server responses.
After unpacking the source tarball or cloning the repository:
cmake . -G "MinGW Makefiles"
And then start the build process:
make
Do a quick sanity check:
./bin/phantomjs.exe --version
Installation on macOS
---------------------
To be written.