# Include path gems hostgator

**URL:** <https://www.ruby-forum.com/t/include-path-gems-hostgator/155867>\
**Category:** Rails\
**Created:** [December 17, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/include-path-gems-hostgator/155867 "2008-12-17T19:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Post date:** [December 17, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/include-path-gems-hostgator/155867/1 "2008-12-17T19:57:13Z")

</div>

i buyed a web hosting. i installed some gems.  
in the hostgator’s instructions there is write:

Using Your Ruby Gem(s)

You will need to add /home/nerto/ruby/gems to the include path.  
You can do this by adding the following code to your script:

$:.push("/home/nerto/ruby/gems")

but i don’t understand where i must to put it

Can you help me?  
thanks

---

<div class="post-metadata">

**Author:** ![stratboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Post date:** [May 24, 2009, 7:44pm UTC](https://www.ruby-forum.com/t/include-path-gems-hostgator/155867/2 "2009-05-24T19:44:11Z")

</div>

Luca R. wrote:

> i buyed a web hosting. i installed some gems.  
> in the hostgator’s instructions there is write:
> 
> Using Your Ruby Gem(s)
> 
> You will need to add /home/nerto/ruby/gems to the include path.  
> You can do this by adding the following code to your script:
> 
> $:.push("/home/nerto/ruby/gems")
> 
> but i don’t understand where i must to put it
> 
> Can you help me?  
> thanks

Same problem here.

I don’t know where to put it?

---

<div class="post-metadata">

**Author:** ![stratboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Post date:** [May 25, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/include-path-gems-hostgator/155867/3 "2009-05-25T18:58:12Z")

</div>

Hostgator’s instructions are seriously incorrect, and will cause some  
gems to fail in odd ways.

You’ll want something like:

export GEM\_HOME=â€/home/nerto/ruby/gemsâ€  
export GEM\_PATH=â€$GEM\_HOME:/usr/lib/ruby/gems/1.8â€³  
export PATH=â€$GEM\_HOME/bin:$PATHâ€

Place those commands in a file loaded by the shell (.bash\_profile or  
equivalent).

Otherwise, locally installed gems won’t be able to find their  
dependencies.

–Matt J.

On Dec 17 2008, 2:57Â pm, Luca R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
