Re: Autoproj 1.9.0 and autobuild 1.7.0 failing to bootstrap on Mac OSX

Ruben Smits <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <CAN8Phb=-G1VMpW9ZK4ptP=FLe8gR4voS5DQe6G+oqEONs2E5hg@mail.gmail.com>
On Tue, Feb 26, 2013 at 9:41 AM, Ruben Smits
<[email protected]>wrote:

> Hi Matthias,
>
> here is the full output:
> --------
> ruby autoproj_bootstrap
>     autodetecting the operating system
> Macos is:  hostos is:
> WARNING no OS Detected
>   Which prepackaged software (a.k.a. 'osdeps') should autoproj install
> automatically (ruby, none) ?
>     The software packages that autoproj will have to build may require
> other
>     prepackaged softwares (a.k.a. OS dependencies) to be installed
> (RubyGems
>     packages, packages from your operating system/distribution, ...).
> Autoproj is
>     usually able to install those automatically, but unfortunately your
> operating
>     system is not (yet) supported by autoproj's osdeps mechanism, it can
> only offer
>     you some limited support.
>
>     RubyGem packages are a cross-platform mechanism, and are therefore
> supported.
>     However, you will have to install the kind of OS dependencies
> (so-called OS
>     packages)
>
>     This option is meant to allow you to control autoproj's behaviour
> while handling
>     OS dependencies.
>
>     * if you say "ruby", the RubyGem packages will be installed.
>     * if you say "none", autoproj will not do anything related to the OS
>       dependencies.
>
>     As any configuration value, the mode can be changed anytime by calling
>     an autoproj operation with the --reconfigure option (e.g. autoproj
> update
>     --reconfigure).
>
>     Finally, OS dependencies can be installed by calling "autoproj osdeps"
>     with the corresponding option (--all, --ruby, --os or --none). Calling
>      "autoproj osdeps" without arguments will also give you information as
>     to what you should install to compile the software successfully.
>
>     So, what do you want ? (ruby or none) [ruby]
> autoproj: installing a proper Ruby environment (this can take a long time)
>     autodetecting the operating system
> Macos is:  hostos is:
> WARNING no OS Detected
>     autodetecting the operating system
> Macos is:  hostos is:
> WARNING no OS Detected
> failed: there is an osdep definition for ruby, and it explicitely states
> that this package does not exist on your OS
> ---------
>
> Apparently it does not detect the OS at all.
>
> I ran the following script:
>
> require 'rbconfig'
> puts "Ruby Info:"
> puts " RUBY_PLATFORM: #{RUBY_PLATFORM}"
> puts " RUBY_VERSION: #{RUBY_VERSION}"
> puts " Config::CONFIG['RUBY_INSTALL_NAME']:
> #{Config::CONFIG['RUBY_INSTALL_NAME']}"
> puts " Config::CONFIG['host_os']: #{Config::CONFIG['host_os']}"
>
> which gave me the following output:
>
> Ruby Info:
>  RUBY_PLATFORM: universal-darwin10.0
>  RUBY_VERSION: 1.8.7
>  Config::CONFIG['RUBY_INSTALL_NAME']:
> ruby
>  Config::CONFIG['host_os']: darwin10.0
>
> Some further investigation learned me that the following line is incorrect:
>
> @macos =  RbConfig::CONFIG['host_os'] = ~%r!([Dd]arwin)!
>
> should be
>
> @macos =  RbConfig::CONFIG['host_os'] =~%r!([Dd]arwin)!
>
> notice the removed space between = and ~
>
>
After this adaptation the bootstrap script succesfully finished!

But doing `autoproj update` returned the following error:
--------
autoproj update
  autodetecting the operating system
  Which prepackaged software (a.k.a. 'osdeps') should autoproj install
automatically (ruby, none) ? ruby
  autodetecting the operating system

undeclared option 'operating_system'
-----------

I assume this problem is related to the bug in the bootstrap script,
although I do not know where to resolve the problem.

Ruben

Ruben
>
> Ruben Smits, Phd
> Chief Technology Officer
> Intermodalics BVBA
> +32479511786
> www.intermodalics.eu
>
>
> On Tue, Feb 26, 2013 at 8:29 AM, Matthias Goldhoorn <
> [email protected]> wrote:
>
>>  Good Morning,
>> i done the MacOS port (unfortunately - without having an mac)
>> i added a few lines debug code to the attached autoproj_boostrap file.
>>
>> I need a few more debug info’s why the bootstrap failed on your macos.
>> The bootstrap will fail as before but with additional output.
>> Can you send me the whole debug-output when you are using this script.
>>
>> Greetings,
>> Matthias
>>
>>
>> On 25.02.2013 19:36, Ruben Smits wrote:
>>
>> Sorry for the long wait for testing, it however fails very early in the
>> process:
>>
>>  ruby autoproj_bootstrap
>> The current directory is not empty, continue bootstrapping anyway ? [yes]
>> yes
>>     autodetecting the operating system
>>   Which prepackaged software (a.k.a. 'osdeps') should autoproj install
>> automatically (ruby, none) ?
>>  ...
>>  So, what do you want ? (ruby or none) [ruby]
>> autoproj: installing a proper Ruby environment (this can take a long time)
>>     autodetecting the operating system
>>     autodetecting the operating system
>> failed: there is an osdep definition for ruby, and it explicitely states
>> that this package does not exist on your OS
>>
>>
>>  I tried both with ruby and none, both failed in the same way.
>>
>>  Ruben
>>
>> Ruben Smits, Phd
>> Chief Technology Officer
>> Intermodalics BVBA
>> +32479511786
>> www.intermodalics.eu
>>
>>
>> On Fri, Feb 15, 2013 at 11:37 AM, Sylvain Joyeux <[email protected]>wrote:
>>
>>> Hi Rubens
>>>
>>> Sorry for the long wait ... Here is a (I hope) fixed autoproj_bootstrap
>>> file. Could you test and tell me if it is indeed fixed ?
>>>
>>> Sylvain
>>>
>>
>>
>>
>>
>>
>> --
>>  Dipl.-Inf. Matthias Goldhoorn
>>  Space and Underwater Robotic
>>
>>  Universität Bremen
>>  FB 3 - Mathematik und Informatik
>>  AG Robotik
>>  Robert-Hooke-Straße 5
>>  28359 Bremen, Germany
>>
>>  Tel.:     +49 421 178 45-4193
>>  Zentrale: +49 421 178 45-6550
>>  Fax:      +49 421 178 45-4150
>>  E-Mail:   [email protected]
>>
>>  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
>>
>>
>

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.