Include path gems hostgator


#1

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


#2

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?


#3

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