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:
- Prepare the gem file
childprocess-2.0.0.gem (download or build it)
- Unplug the network
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
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
ffiagain although I have installed it offline.Steps to reproduce this issue on Windows:
childprocess-2.0.0.gem(download or build it)gem install --local childprocess-2.0.0.gemExample output: