rock-core / buildconf

Bootstrapping repository, used to setup a Rock working environment
0 stars 14 forks source link

Calling bootstrap.sh fails #6

Closed Nurgak closed 7 years ago

Nurgak commented 7 years ago

I'd like to make a new ROCK installation using the bootstrap file from the installation tutorial, but I keep getting the following error, is there a known solution for that:

ubuntu@ubuntu:~/dev$ ./bootstrap.sh ruby2.0
Which protocol do you want to use to access rock-core/buildconf.git on github.com? [git|ssh|http] (default: http) 
Detected 'gem' to be /usr/bin/gem2.0
Detected bundler at /home/ubuntu/.autoproj/gems/ruby/2.0.0/bin/bundler
Installing autoproj in /home/ubuntu/.autoproj/gems/ruby/2.0.0

[!] There was an error parsing `Gemfile`: no implicit conversion of nil into String. Bundler cannot continue.

 #  from /home/ubuntu/dev/.autoproj/Gemfile:4
 #  -------------------------------------------
 #  gem "utilrb", ">= 3.0.1"
 >  config_path = File.join(__dir__, 'config.yml')
 #  if File.file?(config_path)
 #  -------------------------------------------
FATAL: failed to install autoproj in /home/ubuntu/dev/.autoproj

This is on a brand new Ubuntu 14.04 with newly installed ruby2.0

doudou commented 7 years ago

"brand new" Ubuntu 14.04

Mmmmm ... Irony ;-)

Anyways. I could fix this one (you're hitting a bug fixed on "newer" patch versions of ruby 2.0), but it's more than likely that you would hit some other bugs. autoproj v2 drops support of ruby 2.0, as is Rock itself. I'm currently not in a position to support old setups like this with v2.

Not all is lost, though. You have a few solutions (from the less intrusive to the most intrusive):

Nurgak commented 7 years ago

Thanks @doudou, I chose the first option and it almost worked. I got the following error:

osdep ruby-dev does not exist. It is referred to by thin.: Autoproj::OSDependencies::InvalidRecursiveStatement

So I just commented out the ruby-dev dependency from autoproj/remotes/rock.core/rock.osdeps under thin and it installed what it needed when I called amake. I don't know what implication it has but I can work again now.