In README, bundle install command needs sudo permission.
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.
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.
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
solved that by changing rights of .gems-folder to "default user" (was root-user before) and run bundle install again.
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.
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
bundle install does not need sudo here.
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.
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 you'll need to 'gem install bundler' which may or may not require sudo previlidges in you environment
@jamesdaniels thanks - I missed that step
You do not need to use root privileges if you use "bundle install --path ~/.gem", at least on Ubuntu.
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.
I'm getting a "bundle: command not found" after I try to do "bundle install" on ubuntu. Anyone know how I can fix this?
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 "
hello everyone,
sorry to be a bother, but can we move discussions of setup to http://diaspora.shapado.com/ ?
Thank you so much,
Maxwell