Thanks Tammo for the reply.

After adding the gem-lines to the Gemfile I was able to build it
successfully.

However using a previous version didn't work. Earlier I tried to use the
version 1.4.4 which is the minimum requirement mentioned in the web site,
but it didn't work. It gave me the bellow error.

/var/lib/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig
instead of obsolete and deprecated Config.
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load
such file -- rubygems/source_info_cache (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from
/var/lib/gems/1.9.1/gems/buildr-1.4.4/lib/buildr/core/application.rb:41:in
`<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/buildr-1.4.4/lib/buildr/core.rb:17:in `<top
(required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/buildr-1.4.4/lib/buildr.rb:20:in `<top
(required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/buildr-1.4.4/bin/buildr:18:in `<top
(required)>'
from /usr/local/bin/buildr:23:in `load'
from /usr/local/bin/buildr:23:in `<main>'


Now I tried to use the version 1.4.21 and it also didn't work. This is the
error I got.

/var/lib/gems/1.9.1/gems/bundler-1.8.5/lib/bundler/runtime.rb:34:in `block
in setup': You have already activated buildr 1.4.21, but your Gemfile
requires buildr 1.4.22. Prepending `bundle exec` to your command may solve
this. (Gem::LoadError)
from /var/lib/gems/1.9.1/gems/bundler-1.8.5/lib/bundler/runtime.rb:19:in
`setup'
from /var/lib/gems/1.9.1/gems/bundler-1.8.5/lib/bundler.rb:122:in `setup'
from /var/lib/gems/1.9.1/gems/bundler-1.8.5/lib/bundler/setup.rb:8:in `<top
(required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/buildr-1.4.21/bin/buildr:18:in `<top
(required)>'
from /usr/local/bin/buildr:23:in `load'
from /usr/local/bin/buildr:23:in `<main>'

Regards,
Maduranga

On Mon, Mar 16, 2015 at 9:50 PM, Tammo van Lessen <tvanles...@gmail.com>
wrote:

> Hi Maduranga,
>
> this is due to a very recent change in the new version of buildr. Either
> uninstall this version and install 1.4.21 or add these gem-lines to Gemfile
> and run "bundle install" before running buildr again.
>
> Please let me know if this didn't help.
>
> Best,
>   Tammo
>
> On Mon, Mar 16, 2015 at 2:27 PM, Maduranga Siriwardena <
> maduranga.siriward...@gmail.com> wrote:
>
> > Hi all,
> >
> > I cloned the ODE code base from [1] and tried to build. My
> >
> >    - buildr version = 1.4.22
> >    - ruby version = 1.9.3p484 (2013-11-22 revision 43786)
> >    - java version = 1.7.0_76
> >
> > But I get the bellow error.
> >
> > Buildr aborted!
> > RuntimeError : check() method invoked in buildfile but RSpec has not been
> > loaded.
> >
> > Buildr prior to version 1.4.22, included rspec as a dependency but as
> > of version 1.4.22, it is expected users manually add RSpec to their
> > Gemfile. The following lines should be added to restore the version
> > of rspec included in 1.4.22:
> >
> > gem 'rspec-expectations',   '= 2.14.3'
> > gem 'rspec-mocks',          '= 2.14.3'
> > gem 'rspec-core',           '= 2.14.5'
> > gem 'rspec',                '= 2.14.1'
> >
> > /home/maduranga/gsoc/ode_github/ode/Rakefile:680:in `block (2 levels) in
> > distro'
> > /home/maduranga/gsoc/ode_github/ode/Rakefile:648:in `tap'
> > /home/maduranga/gsoc/ode_github/ode/Rakefile:648:in `block in distro'
> >
> >
> > [1] https://github.com/apache/ode
> >
> > --
> > Maduranga Siriwardena
> > Undergraduate
> > Department of Computer Science and Engineering
> > Faculty of Engineering, University of Moratuwa.
> >
>
>
>
> --
> Tammo van Lessen - http://www.taval.de
>



-- 
Maduranga Siriwardena
Undergraduate
Department of Computer Science and Engineering
Faculty of Engineering, University of Moratuwa.

Reply via email to