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.)

1 Response to “Copying a gem into vendor without sudo access”

  1. Marcie Alston Says:

    8fhhf3xwep0knme6

Leave a Reply