[Nitro] nitro from darcs and ruby gem

Michael Fellinger manveru at weez-int.com
Wed Aug 30 22:09:05 EDT 2006


On Thursday 31 August 2006 06:38, Alexander Lazic wrote:
> Hi,
>
> 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
require 'your/path/to/repo/glycerin'
will modify your path and sneak in the repo-paths, so that you can just use
require 'nitro'
afterwards.

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 
that ?_?

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

ruby run.rb


hope this made clearer how to use the repo :)
for questions, just mail (or rather, ask on irc, freenode #nitro)

MfG
manveru

>
> (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 \
> ~/progs/ruby/lib/ruby/gems/1.8/gems/nitro-0.31.0_orig
>
> 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)...
> ...done.
> 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
> /home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
> - no such file to load -- redcloth
>
> /home/al/progs/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib/redcloth.rb:6
>30: warning: ambiguous first argument; put parentheses or even spaces
>
> /home/al/progs/ruby/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib/redcloth.rb:8
>47: warning: ambiguous first argument; put parentheses or even spaces
>
> Exception `LoadError' at
> /home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27
> - 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]
>
> /home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:196:in
> `activate': can't activate RedCloth (= 3.0.3), already activated
> RedCloth-3.0.4] (Gem::Exception)
>
>         from
> 	/home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:214:in
> 	`activate'
>
>         from
> 	/home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:213:in
> 	`activate'
>
>         from
> 	/home/al/progs/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:i
>n `require'
>
>         from run.rb:5
> ---
>
> I think I haven't something make which is needed :-(
>
> Please can anybody help, maybe offlist?
>
> ---
> which ruby (self compiled)
> /home/al/progs/ruby/bin/ruby
>
> which gem
> /home/al/progs/ruby/bin/gem
>
> ruby -v
> ruby 1.8.4 (2005-12-24) [i686-linux]
>
> gem -v
> 0.9.0
>
> uname -a
> Linux home1 2.6.17-2-686 #1 SMP Fri Aug 11 20:25:51 UTC 2006 i686
> GNU/Linux
> ---
>
> Regards
>
> Alex
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

-- 
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
Website: http://weez-int.com


More information about the Nitro-general mailing list