You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Petter Reinholdtsen <pe...@usit.uio.no> on 2012/11/20 13:41:19 UTC

Missing step no deltacloud installation page (for RHEL 6 at least)

Hi.  I just tried to follow the installation instructions for Red Hat
Enterprise Linux on
<URL: http://deltacloud.apache.org/install-deltacloud.html > and got
stuck after installation with this error message:

# deltacloudd -i mock
Starting Deltacloud API :: mock :: http://localhost:3001/api

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- require_relative (LoadError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/lib/deltacloud_rack.rb:16
        from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23:in `load'
        from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23
        from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1:in `new'
        from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1
#

This is caused by this line in deltacloud_rack.rb:

  require 'require_relative' if RUBY_VERSION < '1.9'

Is there a step missing in the instructions, or is ruby 1.9 required to
get it working?

After wasting quite a lot of time, I managed to get around this problem
using

  gem install require_relative

Please update the web page to mention this step.  It would help us
without much ruby knowledge to make headway more quickly.  :)

-- 
Happy hacking
Petter Reinholdtsen

Re: Missing step no deltacloud installation page (for RHEL 6 at least)

Posted by Ronelle Landy <rl...@redhat.com>.
> From: "Francesco Vollero" <ra...@gmail.com>
> To: dev@deltacloud.apache.org
> Cc: usit-tsd@usit.uio.no
> Sent: Tuesday, November 20, 2012 1:34:05 PM
> Subject: Re: Missing step no deltacloud installation page (for RHEL 6 at least)
> 
> Hi Petter,
> 
> Nice catch, more comments inline:
> 
> On Tue, Nov 20, 2012 at 1:41 PM, Petter Reinholdtsen
> <pe...@usit.uio.no> wrote:
> >
> > Hi.  I just tried to follow the installation instructions for Red
> > Hat
> > Enterprise Linux on
> > <URL: http://deltacloud.apache.org/install-deltacloud.html > and
> > got
> > stuck after installation with this error message:
> >
> > # deltacloudd -i mock
> > Starting Deltacloud API :: mock :: http://localhost:3001/api
> >
> > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require': no such file to load -- require_relative
> > (LoadError)
> >         from
> >         /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> >         `require'
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/lib/deltacloud_rack.rb:16
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23:in
> >         `load'
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in
> >         `instance_eval'
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in
> >         `initialize'
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1:in
> >         `new'
> >         from
> >         /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1
> > #
> >
> > This is caused by this line in deltacloud_rack.rb:
> >
> >   require 'require_relative' if RUBY_VERSION < '1.9'
> >
> > Is there a step missing in the instructions, or is ruby 1.9
> > required to
> > get it working?
> >

Petter, 'require_relative' should be installed with the Deltacloud gem install (for Ruby versions < 1.9) but for the 1.0.5 (current) release it is not. Please see ... https://issues.apache.org/jira/browse/DTACLOUD-374. Looking into documenting this on the installation page. It will be corrected in the next release. 

> 
> Actually what's that ruby line is saying is: If your version is lower
> than 1.9 use this gem.
> 
> > After wasting quite a lot of time, I managed to get around this
> > problem
> > using
> >
> >   gem install require_relative
> >
> 
> That's not the workaround, it's the right way to go :) Just
> installing the gem.
> Anyhow next time, you can try also to reach us on IRC gonna be more
> and more faster :)
> 
> > Please update the web page to mention this step.  It would help us
> > without much ruby knowledge to make headway more quickly.  :)
> >
> 
> Yeah, thanks again for your suggestion, it's something that will
> review soon!
> 
> 
> 
> ---
> Francesco Vollero
> Software Engineer at Aeolus Project and Deltacloud
> 

Re: Missing step no deltacloud installation page (for RHEL 6 at least)

Posted by Francesco Vollero <ra...@gmail.com>.
Hi Petter,

Nice catch, more comments inline:

On Tue, Nov 20, 2012 at 1:41 PM, Petter Reinholdtsen
<pe...@usit.uio.no> wrote:
>
> Hi.  I just tried to follow the installation instructions for Red Hat
> Enterprise Linux on
> <URL: http://deltacloud.apache.org/install-deltacloud.html > and got
> stuck after installation with this error message:
>
> # deltacloudd -i mock
> Starting Deltacloud API :: mock :: http://localhost:3001/api
>
> /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- require_relative (LoadError)
>         from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
>         from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/lib/deltacloud_rack.rb:16
>         from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23:in `load'
>         from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:23
>         from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
>         from /usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
>         from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1:in `new'
>         from /usr/lib/ruby/gems/1.8/gems/deltacloud-core-1.0.5/config.ru:1
> #
>
> This is caused by this line in deltacloud_rack.rb:
>
>   require 'require_relative' if RUBY_VERSION < '1.9'
>
> Is there a step missing in the instructions, or is ruby 1.9 required to
> get it working?
>

Actually what's that ruby line is saying is: If your version is lower
than 1.9 use this gem.

> After wasting quite a lot of time, I managed to get around this problem
> using
>
>   gem install require_relative
>

That's not the workaround, it's the right way to go :) Just installing the gem.
Anyhow next time, you can try also to reach us on IRC gonna be more
and more faster :)

> Please update the web page to mention this step.  It would help us
> without much ruby knowledge to make headway more quickly.  :)
>

Yeah, thanks again for your suggestion, it's something that will review soon!



---
Francesco Vollero
Software Engineer at Aeolus Project and Deltacloud