[Rubygems-developers] How to freeze gems that require native extension without sudo rights ?

Eric Hodel drbrain at segment7.net
Tue Nov 4 19:34:04 EST 2008

On Nov 4, 2008, at 08:17 AM, Thibaut Barrère wrote:

> Is there a way to install [gems with native extensions like hpricot]  
> without having sudo rights (ie: compiling into some specific folder,  
> telling rubygems where to pick the binaries, or any other solution ?)

The same way you install any other gem:

$ gem install hpricot
WARNING:  Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
	  /usr/bin aren't both writable.
WARNING:  You don't have /Users/drbrain/.gem/ruby/1.8/bin in your PATH,
	  gem executables will not run.
Building native extensions.  This could take a while...
Successfully installed hpricot-0.6.164
1 gem installed

If a gem is set up to move files into site_lib, it is broken and you  
should file a bug with the author.

More information about the Rubygems-developers mailing list