# Shared Hosting - Not able to added local gem path to rails

**URL:** <https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290>\
**Category:** Deployment\
**Created:** [November 21, 2009, 8:47am UTC](https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290 "2009-11-21T08:47:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirbhab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nirbhab](https://www.ruby-forum.com/u/nirbhab)\
**Post date:** [November 21, 2009, 8:47am UTC](https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290/1 "2009-11-21T08:47:45Z")

</div>

Hi,

I am using shared hosting.  
Local Gem ‘googlepagerank’ is there but rails is not able load the GEM.

no such file to load – googlepagerank

I have updated boot.rb with $:.push("/home/seotoolb/ruby/gems") and  
restarted the server too.

Please help!

Thanks

---

<div class="post-metadata">

**Author:** ![nirbhab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@nirbhab](https://www.ruby-forum.com/u/nirbhab)\
**Post date:** [February 15, 2010, 9:11am UTC](https://www.ruby-forum.com/t/shared-hosting-not-able-to-added-local-gem-path-to-rails/179290/2 "2010-02-15T09:11:31Z")

</div>

Nirbhab Barat wrote:

> Hi,
> 
> I am using shared hosting.  
> Local Gem ‘googlepagerank’ is there but rails is not able load the GEM.
> 
> no such file to load – googlepagerank
> 
> I have updated boot.rb with $:.push("/home/seotoolb/ruby/gems") and  
> restarted the server too.
> 
> Please help!
> 
> Thanks

Try to play with $HOME environment variable.

For example:

- I use shared hosting
- I use fastcgi
- I haven’t access to apache users’s home and global gem repository
- I can install gem into my home directory
- check gem path  
$ gem env path  
/home/avsej/.gem/ruby/1.8:/opt/ruby/lib/ruby/gems/1.8
- add to dispath.fcgi something like:  
ENV[‘HOME’] = ‘/home/avsej’
- now when apache starts fastcgi dispatcher process it use my home  
instead of its
