<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew B Gardner schreef:
<blockquote cite="mid:200712080040.36479.weather@speakeasy.net"
type="cite">
<pre wrap="">I actually tried that too...sorry, I should have included that info.
app.rb:3:in `require': no such file to load -- nitro (LoadError)
from app.rb:3
I didn't have this problem before I switched to the darcs approach (I switched
b/c of the FormHelper name error).
</pre>
</blockquote>
So are you installing the gems or running the repo the directly? In the
first case add require "rubygems" or use the RUBYOPT=-rubygems trick.<br>
<br>
In the second case it's a little more tricky. What I do is add
repo_dir/script to the include path and then require "lib/glycerin"
which should take care of setting the load path correctly for
nitro/raw/og/glue.<br>
<br>
So I have a little script called setnitro which looks like this:<br>
<br>
export PATH=/home/plexus/work/nitro_repo/nitro/bin:$PATH<br>
export WORK=$HOME/work<br>
export RUBYOPT="-rubygems -I$WORK/nitro_repo/script -rlib/glycerin
-I$WORK/facets_trunk/lib/core -I$WORK/facets_trunk/lib/more
-I/home/plexus/work/blow_svn/trunk/lib -I$WORK/blow_svn/trunk/lib
-I$WORK/english_svn/trunk/lib -I$WORK/opod_svn/trunk/lib"<br>
<br>
But if you're using gems apart from nitro/og you can truncate the last
line to<br>
<br>
export RUBYOPT="-rubygems -I$WORK/nitro_repo/script -rlib/glycerin"<br>
<br>
Then "source" it in your shell by using the dot:<br>
<br>
. setnitro<br>
<br>
This should change your current environment settings, after that you
should be able to simply launch "nitro" in the same dir as app.rb.<br>
<br>
Good luck, keep us posted on how it goes.<br>
<br>
(ab)<br>
<blockquote cite="mid:200712080040.36479.weather@speakeasy.net"
type="cite">
<pre wrap="">Thanks again for any help,
Matt
On Saturday 08 December 2007 00:22, Arne Brasseur wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Matthew B Gardner schreef:
</pre>
<blockquote type="cite">
<pre wrap="">That installed them (had to install RedCloth too though, or else raw
failed). Like the other user, I had to add exec permissions for nitro as
well. I am encountering a problem, though -- trying to run the TodoList
from the tutorial:
app.rb:3:in `require': no such file to load -- nitro_and_og (LoadError)
from app.rb:3
</pre>
</blockquote>
<pre wrap="">That usage is deprecated, I'll go through the tutorial myself over the
weekend to update it. Just do
require "nitro"
require "og"
(ab)
</pre>
</blockquote>
<pre wrap=""><!---->_______________________________________________
Nitro-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/nitro-general">http://rubyforge.org/mailman/listinfo/nitro-general</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ein Fuchs muß tun, was ein Fuchs tun muß
<a class="moz-txt-link-abbreviated" href="mailto:arne@arnebrasseur.net">arne@arnebrasseur.net</a>
</pre>
</body>
</html>