Check glue/glue.gemspec. It probably still contains a line like this:
s.add_dependency(“facets”, “= 1.8.54”)
The patch should have removed this but perhaps something went wrong. The
patch file is intended for use with darcs, I’m not sure it will work
with GNU patch. The correct way of applying the patch (on a clean repo)
is this:
After that rebuild the gems (rake dist:all) and try again.
The problem you’re seeing is that glue fails to install because of a
missing dependency (facets 1.8), and since the rest depends on glue they
also fail.
I hope this helps. Let us know if you encounter more obstacles.
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
All the packages installed successfully, but maybe there’s something
else I
need to do?
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
That usage is deprecated, I’ll go through the tutorial myself over the
weekend to update it. Just do
rthompso@raker ~/src/repo.nitroproject.org $ darcs apply
…/…/ab_200711207_fix_the_gemspecs.patch
Finished applying…
rthompso@raker ~/src/repo.nitroproject.org $ rake dist:all
(in /home/rthompso/src/repo.nitroproject.org)
Please install systemu for better-looking results
Building packages for version 0.50.0
…nitro
…raw
…og
…glue
rthompso@raker ~/src/repo.nitroproject.org $ cd dist
rthompso@raker ~/src/repo.nitroproject.org/dist $ for a in facets
english opod blow glue og raw nitro; do sudo gem install $a;done
Password:
Need to update 19 gems from http://gems.rubyforge.org
…
complete
Successfully installed facets-2.1.3
Successfully installed english-0.1
Successfully installed opod-0.0.1
Successfully installed blow-0.3.3
Successfully installed glue, version 0.50.0
Installing ri documentation for glue-0.50.0…
Installing RDoc documentation for glue-0.50.0…
Successfully installed og, version 0.50.0
Installing ri documentation for og-0.50.0…
Installing RDoc documentation for og-0.50.0…
Successfully installed raw, version 0.50.0
Installing ri documentation for raw-0.50.0…
Installing RDoc documentation for raw-0.50.0…
Successfully installed nitro, version 0.50.0
Installing ri documentation for nitro-0.50.0…
File not found: vendor
rthompso@raker ~/src/repo.nitroproject.org/dist $ cd …/nitro/demo/hello
rthompso@raker ~/src/repo.nitroproject.org/nitro/demo/hello $
RUBYOPT=-rubygems nitro
bash: /home/rthompso/src/repo.nitroproject.org/nitro/bin/nitro:
Permission denied
rthompso@raker ~/src/repo.nitroproject.org/nitro/demo/hello $ ls -rlt
/home/rthompso/src/repo.nitroproject.org/nitro/bin/nitro
-rw-r–r-- 1 rthompso staff 5220 Dec 5 12:11
/home/rthompso/src/repo.nitroproject.org/nitro/bin/nitro
looks like the repo creates nitro without exec permissions.
fixed that and everything appears to work fine for hello.
everything appears to work fine for blog
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).
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.
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.
So I have a little script called setnitro which looks like this:
I required rubygems (sorry, I thought I had tried that before, but maybe
only
with nitro_and_og), but I still have the FormHelper name error.
./app/controller/root.rb:2: uninitialized constant
RootController::FormHelper
(NameError)
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’
from app.rb:7
Looks like I did all this for nothing :). Do I just need to require a
file to
get around this problem?
Requiring ‘view/nform’ didn’t work, but I think Raw::FormHelper did. I
had
already tried this and it booted, but I thought it didn’t actually
work…I
guess it did…here’s the problem:
When I go to the index page, it’s showing me the generic “You have
successfully installed Nitro!” index. Hopefully the above provides
enough
information, please let me know if it doesn’t. This problem wasn’t
happening
prior to the darcs install.
Just to update, I reinstalled darcs, rewrote the todolist example from
the
tutorial, and it’s working. Switching to the tutorial todolist1, I still
get
the generic index page. Please let me know if any further information is
needed to help correct the problem.
Thanks again for all the help…it’s nice to see it working!
-Matt
Just to update, I reinstalled darcs, rewrote the todolist example from the
tutorial, and it’s working. Switching to the tutorial todolist1, I still get
the generic index page. Please let me know if any further information is
needed to help correct the problem.
I’m guessing this could have something to do with the ‘x’ suffix to
template files. I’ll post an upgdated tutorial later on.
rthompso@raker /usr/lib/ruby/gems/1.8/gems $ irb
irb(main):001:0> require ‘og’
NameError: uninitialized constant Og
from /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/validation.rb:4
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og/main.rb:14
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from /usr/lib/ruby/gems/1.8/gems/og-0.50.0/lib/og.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:inrequire’
from (irb):1
irb(main):002:0> require ‘nitro’
=> true
irb(main):003:0> require ‘og’
=> true
irb(main):004:0>
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.