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
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?
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. [email protected]