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.