sass / sassc-ruby

Use libsass with Ruby!
MIT License
363 stars 157 forks source link

An error occurred while installing sassc (2.2.1) #191

Open pragadeesh2050 opened 4 years ago

pragadeesh2050 commented 4 years ago

I am unable to create new Rails project using rails version 6.0.2 in window 10 x64

here is my gem file

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.7'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.2', '>= 6.0.2.1'
# Use jdbcsqlite3 as the database for Active Record
gem 'activerecord-jdbcsqlite3-adapter'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  # gem 'web-console', '>= 3.3.0'
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 2.15'
  gem 'selenium-webdriver'
  # Easy installation and use of web drivers to run system tests with browsers
  gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

I get below error when i do bundle install

((Installing sassc 2.2.1 with native extensions C:/jruby-9.2.11.0/lib/ruby/stdlib/rubygems/ext/builder.rb:76: warning: unsupported popen option: err Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/jruby-9.2.11.0/lib/ruby/gems/shared/gems/sassc-2.2.1/ext C:/jruby-9.2.11.0/bin/jruby.exe -I C:/jruby-9.2.11.0/lib/ruby/stdlib -r ./siteconf20200317-1216-1h81yik.rb extconf.rb creating Makefile

current directory: C:/jruby-9.2.11.0/lib/ruby/gems/shared/gems/sassc-2.2.1/ext make "DESTDIR=" clean current directory: C:/jruby-9.2.11.0/lib/ruby/gems/shared/gems/sassc-2.2.1/ext make "DESTDIR=" make failedCannot run program "make" (in directory "C:\jruby-9.2.11.0\lib\ruby\gems\shared\gems\sassc-2.2.1\ext"): CreateProcess error=2, The system cannot find the file specified

Gem files will remain installed in C:/jruby-9.2.11.0/lib/ruby/gems/shared/gems/sassc-2.2.1 for inspection. Results logged to C:/jruby-9.2.11.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.5.0/sassc-2.2.1/gem_make.out

An error occurred while installing sassc (2.2.1), and Bundler cannot continue. Make sure that gem install sassc -v '2.2.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: sass-rails was resolved to 6.0.0, which depends on sassc-rails was resolved to 2.1.2, which depends on sassc) )

headius commented 4 years ago

I believe this is the same issue as #182.