首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows中编译PhantomJS (自建)

在Windows中编译PhantomJS (自建)
EN

Stack Overflow用户
提问于 2016-07-30 00:08:31
回答 1查看 371关注 0票数 0

来自PhantomJS网站。提交人说:

代码语言:javascript
复制
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.

然后我有几个问题:

  1. 为什么它被写成“支持的工具链MSVC2012 & MSVC2013”而不是“选择VS2012或VS2013”?是否有强制(必须)安装这两种工具?或者,如果我只安装了一个VS2013,这就足够了吗?
  2. 下一个问题是,它写着“您必须拥有Perl、Python和GIT.”,但是这些工具的最低要求版本是什么呢?

注意:我想在我的Windows 7x64下编译和构建它。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-30 02:24:01

MSVC2013就够了。Perl、Python、Ruby和GIT的当前版本都可以。上一次我在2016年冬天成功地在Windows7 x64上构建了它

  • ActiveState Perl v5.20.2
  • Python 2.7.5
  • ruby 1.9.3p545
  • git版本1.9.4.msysgit.1
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38669105

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档