dreverri / gollum-site

Static Site Generator for Gollum Wikis
254 stars 28 forks source link

Can't install to ~/.gem #5

Closed beerriot closed 13 years ago

beerriot commented 13 years ago

gollum-site demands to be installed in /usr/bin. I'm a ruby/gem n00b, but the other gems seem to install in ~/.gem if they don't have permissions to /usr/bin. Is it possible to do the same for gollum-site?

$ gem install gollum-site
Fetching: gollum-site-0.1.7.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/bin directory.
dreverri commented 13 years ago

The location that rubygems installs binaries to is governed by an individuals environment.

I believe rubygems will install binaries to the same location as your ruby binary. I've found it much easier to manage gems when using RVM (http://rvm.beginrescueend.com/). This allows users to setup isolated rubies/gems.

It looks like you can also specify the location of the bindir for your rubygems in the ~/.gemrc file using the "--bindir" option: http://stackoverflow.com/questions/333508/can-gem-install-be-configured-to-install-executables-outside-usr-bin-by-defau