SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

In README, bundle install command needs sudo permission.

Open jcdyer opened this issue 16 years ago • 15 comments

When I run bundle install from the main diaspora directory, I get "/usr/lib/ruby/1.8/fileutils.rb:243:in mkdir': Permission denied - /usr/home/jcd/.gem/specs (Errno::EACCES)" Running sudo bundle install` fixes this.

jcdyer avatar Sep 16 '10 03:09 jcdyer

This is due to your system gem setup, your user doesn't have write permission apparently. I'd recommend using RVM without sudo, they have instructions for that.

jamesdaniels avatar Sep 16 '10 03:09 jamesdaniels

This problem will occur with the vanilla installation of Ubuntu, i suggest updating the readme anyway. Unfortunately, I don't know how to do this

robinj avatar Sep 16 '10 09:09 robinj

solved that by changing rights of .gems-folder to "default user" (was root-user before) and run bundle install again.

snooze84 avatar Sep 16 '10 10:09 snooze84

Snooze is right. I tried to solve it using sudo, but this led to problems down the line when I tried to "bundle exec thin start". Changing the owner of ~/.gem to the current user before running "bundle install" worked for me.

ghost avatar Sep 16 '10 19:09 ghost

For me it worked out right to use "sudo bundle install" and then once again "bundle install" before running "bundle exec thin start" on ubuntu 10.04

schmidti159 avatar Sep 16 '10 23:09 schmidti159

bundle install does not need sudo here.

steveklabnik avatar Sep 16 '10 23:09 steveklabnik

Perhaps sudo is the wrong solution. The documentation could, however, needs some explanation on how to deal with the permission errors that show up on Ubuntu. If the answer is "use RVM," the documentation needs to explain it, step by step.

jcdyer avatar Sep 16 '10 23:09 jcdyer

On Mac OSX I tried running "bundle install" when in the diaspora dir. However I got the msg "bundle: command not found" What is this command?

djq avatar Sep 17 '10 09:09 djq

@djq you'll need to 'gem install bundler' which may or may not require sudo previlidges in you environment

jamesdaniels avatar Sep 17 '10 10:09 jamesdaniels

@jamesdaniels thanks - I missed that step

djq avatar Sep 17 '10 11:09 djq

You do not need to use root privileges if you use "bundle install --path ~/.gem", at least on Ubuntu.

Leberwurscht avatar Sep 17 '10 13:09 Leberwurscht

As others have said, you should not be using sudo. If your ~/.gem directory is owned by a user other than the home directory's owner (which appears to be the issue), you need to change the owner because it shouldn't be. It's a problem with your environment.

FWIW, I've never had issues with a ~/.gem directory being owned by root on any version of ubuntu server.

xwmx avatar Sep 17 '10 22:09 xwmx

I'm getting a "bundle: command not found" after I try to do "bundle install" on ubuntu. Anyone know how I can fix this?

sgup avatar Sep 18 '10 00:09 sgup

shri90: that is a different issue, you need to make sure that you have followed the instructions in the README: " Bundler

After RubyGems is updated, simply run sudo gem install bundler to get Bundler. If you're using Ubuntu repository .debs, bundler is found at /var/lib/gems/1.8/bin/bundle "

drt24 avatar Sep 19 '10 21:09 drt24

hello everyone,

sorry to be a bother, but can we move discussions of setup to http://diaspora.shapado.com/ ?

Thank you so much,

Maxwell

maxwell avatar Sep 20 '10 17:09 maxwell