0
从website of PhantomJS itself。作者说:在Windows中编译PhantomJS(自己构建)
Windows requirements
Supported toolchains: MSVC2012 and MSVC2013.
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.
Please also add the folder <phantomjs_path>\src\qt\3rdparty\gnuwin32\bin to your PATH, as required tools such as bison, flex, and gperf will not be found otherwise. Example:
SET PATH=%CD%\src\qt\3rdparty\gnuwin32\bin;%PATH%
Run the build script from Visual Studio Command Prompt.
Tip: Enabling incremental linking will make the linkage process faster.
然后,我有几个问题:
- 为什么它是写 “支持的工具链MSVC2012 & MSVC2013”,而不是 “选择使用VS2012或VS2013” ?有没有强制要求(必须有 )安装这两个工具?或者如果我只安装了一个VS2013,它够了吗?
- 接下来的一点是,它写成“你必须有Perl,Python,Ruby和 GIT。”但是这些工具的最低要求版本 究竟是什么?
注:我想编译&在我的Windows 7x64下编译它。
那么使用能够建立PhantomJS?如果是的话,怎么样? (你从来没有回到这个问题) – Vaviloff
已经解决了。看看底部的答案@Vaviloff – gumuruh