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

Reid Thompson Reid.Thompson at ateb.com
Fri Dec 7 07:31:52 EST 2007


On Thu, 2007-12-06 at 23:05 -0500, Reid Thompson wrote:
> 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 0.0.0.0:9000
>   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/controller/render.rb:92:in 
> `render_action'
>    /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'
>    app.rb:21
>    LOGGED FROM: 
> /usr/lib/ruby/gems/1.8/gems/raw-0.50.0/lib/raw/controller/render.rb:108:in 
> `render_action'
> 
> 
> ----- 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,
> reid
> 
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

gentoo ---

rthompso at raker ~/src/repo.nitroproject.org $ darcs apply ../../ab_200711207_fix_the_gemspecs.patch 
Finished applying...
rthompso at 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 at raker ~/src/repo.nitroproject.org $ cd dist
rthompso at 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 at raker ~/src/repo.nitroproject.org/dist $ cd ../nitro/demo/hello
rthompso at raker ~/src/repo.nitroproject.org/nitro/demo/hello $   RUBYOPT=-rubygems nitro
bash: /home/rthompso/src/repo.nitroproject.org/nitro/bin/nitro: Permission denied
rthompso at 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



More information about the Nitro-general mailing list