Hello I'm learning by book Ruby on Rails Tutorial. According on Tutorial I tried to install Gemfile from Tutorial, but I faced up some problems when I try to run
bundle install
- First problem is
It is likely that you need to grant write permissions for that path.
Then I solved it by this topic
- Second problem was
Could not find sassc-2.4.0 in any of the sources
`Building native extensions. This could take a while...ERROR: Error installing sassc:ERROR: Failed to build gem native extension.current directory: /var/lib/gems/2.5.0/gems/sassc-2.4.0/ext/usr/bin/ruby2.5` Now I have
3: from /var/lib/gems/2.5.0/gems/bundler-2.2.12/lib/bundler/source/metadata.rb:7:in
specs' 2: from /var/lib/gems/2.5.0/gems/bundler-2.2.12/lib/bundler/index.rb:9:inbuild' 1: from /var/lib/gems/2.5.0/gems/bundler-2.2.12/lib/bundler/source/metadata.rb:28:inblock in specs' /var/lib/gems/2.5.0/gems/bundler-2.2.12/lib/bundler/rubygems_integration.rb:588:infind_name': undefined method `stubs_for' for Gem::Spec
My OS - Linux mint 19.1 Ruby v - 2.5.1 Rails v - 6.1.3
Gemfileand it installed without issues. It sounds to me like you've got a dodgy ruby installation, possibly because the tutorial you ran something assudoand then tried to fix permissions retrospectively??rubyand start again without running anything dodgy withchmodorsudo?rbenvis my personal choice. Installing development gems with sudo (system-wide) is not a very good idea.