0

i'm new in ruby on rails. I'm using windows. I get error when i type bundle.

An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue. Make sure that gem install debug_inspector -v '0.0.2' succeeds before bundling.

How i can fix it?

Kristis
  • 347
  • 5
  • 20

1 Answers1

0

This post would suggest you're missing build dependencies: An error occurred while installing debug_inspector (0.0.2), and Bundler cannot continue Try running these commands and see if that works, otherwise run gem install debug_inspector -v '0.0.2' and post the full error message.

Community
  • 1
  • 1
Anders Elmgren
  • 637
  • 5
  • 12
  • Didn't worked so i run gem install debug_inspector -v '0.0.2' and get: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.3.0 directory. – Kristis Aug 24 '16 at 18:46
  • That just means your user doesn't have permissions to write to the gem directory. Change permissions of the directory recursively to the current user with chown -R $USER:$USER /var/lib/gems. If you're using the default installed ruby you might want to follow the steps in the answer to this post to get rbenv/rvm and ruby setup: http://stackoverflow.com/questions/37720892/you-dont-have-write-permissions-for-the-var-lib-gems-2-3-0-directory – Anders Elmgren Aug 24 '16 at 19:12
  • Thank you, bundle is installed. But i can't open my localhost. There are more steps what to do ? – Kristis Aug 24 '16 at 19:43
  • Did you run "rails server" to start the server? it should tell you the port at which your app is running on localhost, which for rails defaults to port 3000, so your app should be running at "localhost:3000" – Anders Elmgren Aug 24 '16 at 19:59
  • 1
    Ok working, just restarted terminal. Thank you for help! – Kristis Aug 24 '16 at 20:11