critical-path-css-rails icon indicating copy to clipboard operation
critical-path-css-rails copied to clipboard

Install on Windows

Open bgmat opened this issue 7 years ago • 3 comments

I'm trying to install it but the "bundle intall' hangs here:

Fetching critical-path-css-rails 2.3.0 Installing critical-path-css-rails 2.3.0 with native extensions Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while...

C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:76:in ``' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:76:in run' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:52:in block in make' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:44:in each' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:44:in make' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/ext_conf_builder.rb:63:in block in build' C:/Ruby/Ruby24-x64/lib/ruby/2.4.0/tempfile.rb:295:in open' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/ext_conf_builder.rb:31:in build' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:164:in block (2 levels) in build_extension' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:163:in chdir' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:163:in block in build_extension' C:/Ruby/Ruby24-x64/lib/ruby/2.4.0/monitor.rb:214:in mon_synchronize' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:162:in build_extension' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:201:in block in build_extensions' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:198:in each' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:198:in build_extensions' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:764:in build_extensions' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/rubygems_gem_installer.rb:23:in build_extensions' C:/Ruby/Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:304:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/source/rubygems.rb:153:in block in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/rubygems_integration.rb:217:in preserve_paths' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/source/rubygems.rb:142:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/gem_installer.rb:56:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/gem_installer.rb:16:in install_from_spec' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/parallel_installer.rb:162:in do_install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/parallel_installer.rb:147:in install_serially' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/parallel_installer.rb:102:in call' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer/parallel_installer.rb:78:in call' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer.rb:258:in install_in_parallel' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer.rb:194:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer.rb:91:in block in run' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/process_lock.rb:12:in block in lock' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/process_lock.rb:9:in open' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/process_lock.rb:9:in lock' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer.rb:72:in run' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/installer.rb:25:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/cli/install.rb:65:in run' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/cli.rb:224:in block in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/settings.rb:136:in temporary' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/cli.rb:223:in install' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/vendor/thor/lib/thor.rb:387:in dispatch' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/cli.rb:27:in dispatch' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/vendor/thor/lib/thor/base.rb:466:in start' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/cli.rb:18:in start' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/exe/bundle:30:in block in <top (required)>' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/lib/bundler/friendly_errors.rb:122:in with_friendly_errors' C:/Ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/exe/bundle:22:in <top (required)>' C:/Ruby/Ruby24-x64/bin/bundle:23:in load' C:/Ruby/Ruby24-x64/bin/bundle:23:in

' Terminate batch job (Y/N)? y ^C

I'm developing on Windows ... so, does it work on Windows?

bgmat avatar Jan 12 '18 09:01 bgmat

I'm currently not setup with a Windows environment, so this is going to be tough for me to debug. When this gem is being installed, we have a gem extension that gets run to install the necessary packages from NPM. This file is the entry point for that process: https://github.com/mudbugmedia/critical-path-css-rails/blob/master/ext/npm/extconf.rb

Without knowing the specifics of your ENV, you may need to make the command make available. I've found this stack overflow answer, but i'm not sure if this is the preferred way to make make available. If this works for you, please let me know so that I can update the README for Windows users.

michael-misshore avatar Jan 12 '18 18:01 michael-misshore

My apologies, I missed the following line in your output Temporarily enhancing PATH for MSYS/MINGW.... Looks like make is indeed available.

This is the file that is responsible for installing the NPM packages https://github.com/mudbugmedia/critical-path-css-rails/blob/master/lib/npm_commands.rb. Is there any other output that references this file (or this one as well https://github.com/mudbugmedia/critical-path-css-rails/blob/master/ext/npm/install.rb)?

michael-misshore avatar Jan 12 '18 18:01 michael-misshore

Unfortunately I don't have any other output. What I included in the initial post is all I get from bundler with verbose option. Make is installed, as well as NodeJs ans npm. If there is anything I should try, please let me know.

bgmat avatar Jan 13 '18 09:01 bgmat