Copying a gem into vendor without sudo access
May 4th, 2006
Copying a gem into vendor without sudo access: “
The problem: gem unpack requires the gem to be installed before you can use it.
The solution:
Step 1.
- Install the gem locally:
gem install redcloth -i ~/tmp/
Step 2.
- Use the GEM_HOME environment variable to tell gem where your gem library is:
GEM_HOME=~/tmp/ gem unpack redcloth
Step 3.
- Copy the extracted gem into your applications /vendor directory:
cp redcloth-3.0.3 ../rails/vendor -R
(Via David’s Blog of DOOM.)
November 12th, 2008 at 09:09 PM
8fhhf3xwep0knme6