[Nitro] nitro from darcs and ruby gem
manveru at weez-int.com
Wed Aug 30 22:09:05 EDT 2006
On Thursday 31 August 2006 06:38, Alexander Lazic wrote:
> today I got the current dev-code, thanks to Fabian for his help, now i
> have try to run it but i have some errors :-(
> What i have done:
[long snip ... snap]
i see several issues here :)
you try to use gems along with the repo... but well, that is possible - i just
found it redunant.
another thing is, you use facets 1.7.30 - nitro still runs on 1.4.5 and no
idea when some wizard will get it running on the new facets... there are
always odd things that i have no idea of how they should work and when they
break i have even less ideas of how or why or where they broke... (we should
work on that *hint hint*)
next thing - you copy nitro to the gems-dir?
it's not going to work unless you'd copy glue/gen/og as well... and to avoid
all that hassle there is a simpler way
there is a file named 'glycerin.rb' within the repo-root, and
will modify your path and sneak in the repo-paths, so that you can just use
what else... we really should get rid of this redcloth-dependency (kashia made
a patch for that, not sure if he's submitted it to G. though) also it might
be good to remove the og-dependency from nitro... it's not really needed -
also on the other side, no dependency from og to nitro... not so sure about
ok, now a summary for everybody to write down :)
darcs get http://repo.nitroproject.org/ repo
# this as su or maybe via sudo... ( hope i didn't forget anything )
gem install facets --version=1.4.5
gem install ruby-breakpoint RedCloth mongrel daemons -y
ok, that's it. To get a simple test, try
wget -O run.rb http://pastie.caboo.se/10995/download
and then issue the simple
hope this made clearer how to use the repo :)
for questions, just mail (or rather, ask on irc, freenode #nitro)
> (My ruby is in /home/al/progs/ruby installed)
> 1.) darcs get http://repo.nitroproject.org/ nitro_2006-08-30
> 2.) gem install mongrel --source=http://mongrel.rubyforge.org/releases/
> 3.) gem install nitro
> 4.) gem update
> ---gem update
> Updating installed gems...
> Attempting remote update of RedCloth
> Successfully installed RedCloth-3.0.4
> Attempting remote update of daemons
> Successfully installed daemons-1.0.1
> Installing ri documentation for daemons-1.0.1...
> Installing RDoc documentation for daemons-1.0.1...
> Attempting remote update of facets
> Successfully installed facets-1.7.30
> Installing ri documentation for facets-1.7.30...
> While generating documentation for facets-1.7.30
> ... MESSAGE: Unhandled special: Special: type=17, text="Append"
> ... RDOC args: --ri --op
> /home/al/progs/ruby/lib/ruby/gems/1.8/doc/facets-1.7.30/ri --quiet lib
> (continuing with the rest of the installation)
> Installing RDoc documentation for facets-1.7.30...
> Gems: [RedCloth, daemons, facets] updated
> 4.) cd nitro_2006-08-30/
> 5.) mv ~/progs/ruby/lib/ruby/gems/1.8/gems/nitro-0.31.0 \
> 6.) mv nitro ~/progs/ruby/lib/ruby/gems/1.8/gems/nitro-0.31.0
> 7.) cd examples/why_wiki/
> 8.) gem update --system
> Updating RubyGems...
> Attempting remote update of rubygems-update
> Successfully installed rubygems-update-0.9.0
> Updating version of RubyGems to 0.9.0
> Installing RubyGems 0.9.0
> As of RubyGems 0.8.0, library stubs are no longer needed.
> Searching $LOAD_PATH for stubs to optionally delete (may take a while)...
> No library stubs found.
> Successfully built RubyGem
> Name: sources
> Version: 0.0.1
> File: sources-0.0.1.gem
> RubyGems system software updated
> 9.) ruby -d -rubygems run.rb -m -d
> Exception `LoadError' at
> - no such file to load -- redcloth
>30: warning: ambiguous first argument; put parentheses or even spaces
>47: warning: ambiguous first argument; put parentheses or even spaces
> Exception `LoadError' at
> - no such file to load -- nitro
> Exception `Gem::Exception' at
> /home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:196 - can't
> activate RedCloth (= 3.0.3), already activated RedCloth-3.0.4]
> `activate': can't activate RedCloth (= 3.0.3), already activated
> RedCloth-3.0.4] (Gem::Exception)
> from run.rb:5
> I think I haven't something make which is needed :-(
> Please can anybody help, maybe offlist?
> which ruby (self compiled)
> which gem
> ruby -v
> ruby 1.8.4 (2005-12-24) [i686-linux]
> gem -v
> uname -a
> Linux home1 2.6.17-2-686 #1 SMP Fri Aug 11 20:25:51 UTC 2006 i686
> Nitro-general mailing list
> Nitro-general at rubyforge.org
Weez International Limited
East Roppongi Bldg 5F, 509
3-16-35 Roppongi, Minato-ku Tokyo #106-0032
Tel: 81-(0)3-3505-3881 Fax: 81-(0)3-3505-3883
E-mail: manveru at weez-int.com
More information about the Nitro-general