标签: ruby-development-kit

在Windows 7 x86上为事件计算机安装Ruby的OpenSSL

在Windows 7 x86上为事件计算机安装带有Ruby的OpenSSL。
我想在Windows 7 x86 SP1上安装eventmachine gem。
我已经rubyinstaller-2.1.5.exehttp://rubyinstaller.org/downloads/
进行了安装DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

我运行命令:

gem install eventmachine --platform=ruby
Run Code Online (Sandbox Code Playgroud)

至于现在这是使用eventmachine-1.0.4

我得到以下控制台输出:

    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    ERROR:  Error installing eventmachine:
            ERROR: Failed to build gem native extension.

        C:/Ruby21/bin/ruby.exe extconf.rb
    checking for main() in -lssl... no
    checking for rb_trap_immediate in ruby.h,rubysig.h... no
    checking for rb_thread_blocking_region()... yes
    checking for ruby/thread.h... yes
    checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
    checking for inotify_init() …
Run Code Online (Sandbox Code Playgroud)

ruby openssl windows-7 eventmachine ruby-development-kit

5
推荐指数
1
解决办法
2747
查看次数

Gem::InstallError:'nio4r' 原生 gem 需要安装构建工具

我正在尝试运行bundle install,但收到以下错误消息(附上截图):

Gem::InstallError: The 'nio4r' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

An error occurred while installing nio4r (1.2.1), and Bundler cannot continue.
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)

安装失败时

然后,我运行gem install nio4r -v '1.2.1'并完美安装,如下面的屏幕截图所示。安装成功时

我设置的路径如下: 路径截图

ruby windows-10 ruby-development-kit

5
推荐指数
1
解决办法
7185
查看次数

Ruby和RubyDev在Windows下的Chocolately下

我从Windows 10上的巧克力存储库安装了ruby 2.3.1 ruby​​.devkit 4.5.2.20120101

然后我修改了conf.yml并运行:

PS C:\tools\DevKit> ruby dk.rb install --force
[WARN] Updating (with backup) existing gem override for 'C:/tools/ruby23'
[WARN] Updating (with backup) DevKit helper library for 'C:/tools/ruby23'
Run Code Online (Sandbox Code Playgroud)

一切似乎都没问题,但是当我尝试更新宝石时,其中一些会显示以下错误:

PS C:\tools\DevKit> gem update
Updating installed gems
Updating bigdecimal
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing bigdecimal:
        ERROR: Failed to build gem native extension.

    current directory: C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/bigdecimal-1.3.0/ext/bigdecimal
C:/tools/ruby23/bin/ruby.exe -r ./siteconf20170106-4004-rogg3v.rb extconf.rb
checking for labs() in stdlib.h... *** extconf.rb failed …
Run Code Online (Sandbox Code Playgroud)

ruby windows chocolatey ruby-development-kit

3
推荐指数
1
解决办法
424
查看次数