That's a great question. Thanks for asking it.

If you don't have sudo rights on the machine you want to run twurl on you
will need to tell your system to install gems into your user folder. For
most cases this happens automatically when you leave sudo off of the call.
One method i've heard works is to change your GEM_HOME folder to somewhere
you have write access to. You can do this by typing something similar to:
  export GEM_HOME=/home/myname/gems

The RubyGems website [1] has more information about customizing where
RubyGems go

Hope that helps, and let us know how it goes.

1. http://docs.rubygems.org/read/chapter/3

On Wed, Jun 23, 2010 at 2:34 PM, TJ Luoma <luo...@gmail.com> wrote:

> When trying to install twurl, I am told to run these commands:
> sudo gem i twurl --source http://rubygems.org
> rake dist:gem
> sudo gem i pkg/twurl*gem
> sudo gem i oauth
> except that I am on a shared server where I do not have write
> permissions anywhere outside of ~/
> I thought that maybe if I left off the 'sudo' it would be smart enough
> to install to my $HOME but no such luck:
> # gem i twurl --source http://rubygems.org
> ERROR:  While executing gem ... (Gem::FilePermissionError)
>    You don't have write permissions into the /usr/lib/ruby/gems/1.8
> directory.
> So... am I SOL for running twurl if I don't have admin access to the
> machine? If so that will pretty much kill Twitreport.
> TjL
> ps - sorry if this is a dumb question, I just don't know anything
> about ruby. I'm trying to convert my curl shell scripts to twurl due
> to basic auth's impending demise.


Matt Harris
Developer Advocate, Twitter

Reply via email to