1

这是我安装 BeEF 以在我的手机上测试某些东西时的 CMD 日志


C:\Ruby22\BeEF>gem install therubyracer -v 0.11.3 暂时增强 PATH 以包含 DevKit... 构建原生扩展。这可能需要一段时间... 错误:安装 ruby​​racer 时出错:错误:无法构建 gem 原生扩展。

C:/Ruby22/bin/ruby.exe -r ./siteconf20160208-15524-46e9ed.rb extconf.rb 检查 -lpthread 中的 main() ... 不检查 v8.h ... 否 * extconf.rb 失败* 由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。检查 mkmf.log 文件以获取更多详细信息。您可能需要配置选项。

提供的配置选项:

    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=C:/Ruby22/bin/$(RUBY_BASE_NAME)
    --with-pthreadlib
    --without-pthreadlib
    --enable-debug
    --disable-debug
    --with-v8-dir
    --without-v8-dir
    --with-v8-include
    --without-v8-include=${v8-dir}/include
    --with-v8-lib
    --without-v8-lib=${v8-dir}/lib

C:/Ruby22/lib/ruby/gems/2.2.0/gems/libv8-3.11.8.17/ext/libv8/location.rb:50:in `configure': 你选择使用你的 V8 版本系统 (Libv8::Location::System::NotFoundError) 而不是与 libv8 ruby​​gem 捆绑的系统。但是,它无法定位。请确保您安装了与 3.11.8.17 兼容的 v8 版本。如果它位于非标准位置,您可能需要特殊的 --with-v8-dir 选项

谢谢, 管理

    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/libv8-3.11.8.17/lib/libv8.rb:7:in `configure_makefile'
    from extconf.rb:32:in `<main>'

extconf 失败,退出代码 1

Gem 文件将继续安装在 C:/Ruby22/lib/ruby/gems/2.2.0/gems/therubyracer-0.11.3 以供检查。结果记录到 C:/Ruby22/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/therubyracer-0.11.3/gem_make.out

C:\Ruby22\BeEF>gem 'therubyracer', '~> 0.11.3' ERROR: While execution gem ... (Gem::CommandLineError) Unknown command therubyracer,

C:\Ruby22\BeEF>

-------------------------------------------------- -------------

有人知道如何正确安装这个 Gem 吗?

我在 Windows 10 x32 位,顺便说一句

4

0 回答 0