Skip to content

Failed to install offline on Windows platform #158

Description

@aidistan

Thanks for this great gem!

Recently, I have to install and use this gem offline on Windows platform for some reason. However, I kept getting stuck on this line when building the extension. It seems that Gem::DependencyInstaller always tries to install ffi again although I have installed it offline.


Steps to reproduce this issue on Windows:

  1. Prepare the gem file childprocess-2.0.0.gem (download or build it)
  2. Unplug the network
  3. gem install --local childprocess-2.0.0.gem

Example output:

C:\Workspace>gem install --local childprocess-2.0.0.gem
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing childprocess-2.0.0.gem:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/childprocess-2.0.0/ext
C:/Ruby25-x64/bin/ruby.exe mkrf_conf.rb

rake failed, exit code 1

Gem files will remain installed in C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/childprocess-2.0.0 for inspection.
Results logged to C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/childprocess-2.0.0/gem_make.out

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions