On Feb 4, 2008, at 2:43 PM, Leslie Viljoen wrote:

> I am running an Ubuntu box, and it seems that whenever I "gem  
> install" something
> with an executable (eg. /var/lib/gems/1.8/gems/webby-0.7.2/bin/webby)
> - I have to
> make a link to it in /usr/local and set the +x flag before it works.
> With Webby, linking
> still doesn't work because it tries to load libraries with relative  
> paths:
>
> /usr/local/bin/webby:4:in `require': no such file to load --
> /usr/local/lib/webby (LoadError)
>
> ...so I have to cd to /var/lib/gems...etc. to run it.

What version of "gem" do you have installed?

$ gem --version

>
>
> Is there something wrong with my gems setup? Also, once I had build my
> Webby site,
> I had to put "require 'rubygems'" in tasks/setup.rb before anything  
> would work.

Okay, that was my bad. It will be fixed in the next release.

>
>
> After that Webby seems to work very well, except for one more thing
> that I cannot
> resolve. When I try to create a new page:
>
> lesliev@lesliev-laptop:/media/Storage/linux/qbe$ rake create:page  
> about --trace
> (in /media/Storage/linux/qbe)
> ** Invoke create:page (first_time)
> ** Execute create:page
> rake aborted!
> undefined method `top_level_tasks' for #<Rake::Application:0xb7bc7354>
> /var/lib/gems/1.8/gems/webby-0.7.2/lib/webby/webby_task.rb:94:in
> `define_create_tasks'
> /usr/lib/ruby/1.8/rake.rb:387:in `call'
> /usr/lib/ruby/1.8/rake.rb:387:in `execute'
> /usr/lib/ruby/1.8/rake.rb:387:in `each'
> /usr/lib/ruby/1.8/rake.rb:387:in `execute'
> /usr/lib/ruby/1.8/rake.rb:357:in `invoke'
> /usr/lib/ruby/1.8/rake.rb:350:in `synchronize'
> /usr/lib/ruby/1.8/rake.rb:350:in `invoke'
> /usr/lib/ruby/1.8/rake.rb:1924:in `run'
> /usr/lib/ruby/1.8/rake.rb:1924:in `each'
> /usr/lib/ruby/1.8/rake.rb:1924:in `run'
> /usr/bin/rake:4
>

What version of rake do you have installed? You should be running the  
latest (version 0.8.1 I believe).

$ sudo gem update rake

Blessings,
TwP