[Nitro] Install your own Nitro dev-branch gems!

Reid Thompson reid.thompson at ateb.com
Thu Dec 6 23:05:08 EST 2007

Arne Brasseur wrote:
> The easiest way to try out the latest and greatest, assuming you have 
> ruby, rubygems, rake and darcs installed.
> Get the repo:
>  darcs get http://repo.nitroproject.org
> Build the gems
>  cd repo.nitroproject.org
>  rake dist:all
> Install them
>  cd dist #very important!
>  for a in facets english opod blow glue og raw nitro; do sudo gem 
> install $a;done
> 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
> Successfully installed og, version 0.50.0
> Successfully installed raw, version 0.50.0
> Successfully installed nitro, version 0.50.0
> Try it!
>  cd ../nitro/demo/hello
>  RUBYOPT=-rubygems nitro
> For the blog adapt nitro/demo/blog/conf/debug.rb according to your DB 
> setup. Hint: Og.setup(:adapter => :sqlite)
> In the demo/blog directory:
>  RUBYOPT='-rubygems -I../../../part/lib' nitro
> (This does assume the attached patch has been committed.)
> Have fun!
> (ab)
> ------------------------------------------------------------------------
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

for cygwin on windows XP -- the only failure for Hello..

cyberhome: /home/rthompso/src/repo.nitroproject.org/nitro/demo/hello>
$  RUBYOPT=-rubygems nitro
  INFO: Starting Webrick server in debug mode, listening at
  INFO: Press Ctrl-C to shutdown; Run with --help for options.
DEBUG: Dispatching /
DEBUG: Compiling 'HelloWorld#index' super-method
DEBUG: Dispatching /favicon.ico
DEBUG: Rendering '/status_500'
DEBUG: Dispatching /status_500
DEBUG: Compiling 'HelloWorld#status_500' super-method
DEBUG: Compiling 'status_500' view sub-method [format: html]
ERROR: Error while handling HelloWorld#index(favicon.ico)
ERROR: wrong number of arguments (1 for 0)
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/compiler.rb:65:in `index'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/compiler.rb:65:in `send'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/compiler.rb:65:in `index___super'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/controller/render.rb:92:in `send'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/adapter.rb:69:in `send'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/adapter.rb:69:in `handle_context'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/adapter/webrick.rb:134:in `do_GET'
   /usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
   /usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
   /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
   /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
   /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
   /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
   /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
   /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
   /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
   /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/adapter/webrick.rb:57:in `start'
   /usr/lib/ruby/gems/1.8/gems/nitro-0.50.0/lib/nitro/application.rb:141:in `start'
   /usr/lib/ruby/gems/1.8/gems/nitro-0.50.0/lib/nitro/main.rb:77:in `start'

----- for the Blog ----

need to add tmail to install list.
uuidtools also,

and it works.

Great -- thanks.

I'll try to find time to run this at work on my desktop tomorrow ( Gentoo ).

Thanks again,

More information about the Nitro-general mailing list