Rumyra / browserapis.wtf

Web site categorising all the web/browser apis - most importantly uses for them - but also their code, resources, w3c status and other links.
http://browserapis.wtf/
MIT License
34 stars 15 forks source link

Explain that you may need sudo to install bundler #82

Closed kumar303 closed 8 years ago

kumar303 commented 8 years ago

I do all development in Docker so I have a vanilla OS X system outside of that. I don't do much ruby development but when I ran 'gem install bundler' it said I needed sudo. Is this expected? If so, maybe this patch to the docs will help. Without mentioning it, someone may think they are doing something wrong because requiring sudo usually means you're doing something wrong ;)

BPScott commented 8 years ago

Hi @kumar303, thanks for taking the time to contribute.

It depends on how you've got your Ruby install setup. It sounds like you're using the stock OSX Ruby which wants to install gems in a location that is only accessibly by root (IIRC it varies depending on what verson of OS you're rocking).

In my opinion people shouldn't customize the stock Ruby install and instead use something like RVM or rbenv to manage multiple ruby versions, which install gems into the user's home folder (thus not requiring sudo) in addition to allowing individual projects to define the ruby runtime version rather than having everything use the same version.

I prefer to assume a certain level of ruby getting started in the README, as otherwise starting from a blank slate would mean having to talk through / link to how to set up that machine-wide config which IMO isn't in the scope of the project's README. Thus I'm going to close this without merging.

kumar303 commented 8 years ago

Ah, ok, I see now. I would suggest adding a link to RVM but not with all the steps to install it. I think this would help someone who is completely new to working in ruby without adding too much boilerplate for those who are already familiar with ruby.