[Rock-dev] [Rock-users] Unable to start component by ruby

Matthias Goldhoorn matthias.goldhoorn at dfki.de
Tue Jul 1 10:31:14 CEST 2014


On 01.07.2014 09:58, Alexander Duda wrote:
>
> Am 01.07.2014 um 09:32 schrieb Matthias Goldhoorn 
> <matthias.goldhoorn at dfki.de <mailto:matthias.goldhoorn at dfki.de>>:
>
>> @Ruby binding guy's:
>> I think the problem with orocos.rb is related to some linking 
>> problems of the orocos extenstion.
>> I attached the ldd output and the CMakeCache from my installation. So 
>> Far i see it should work.
>> I compared the CMakeCache with my local one and can't find the fault 
>> here.
>>
>> Has someone i idea what's going on here?
>>
>
> The ruby extension is not linked against ruby. In general it is not 
> nice but should not be a problem because the symbols are already known 
> if the extension is loaded by ruby.
>
> You can try the following and post the output for all steps:
>
> orocos.rb: rake
> ruby —version
> which ruby
> which irb
> irb -r 'orocos/rorocos'
>
> Alex

rake: <done>
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ which ruby
/home/goldhoorn/dev-xenomai/install/bin/ruby
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ which irb
/home/goldhoorn/dev-xenomai/install/bin/irb
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ irb --version
irb 0.9.6(09/06/30)
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ irb -r 
'orocos/rorocos'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in 
`require':LoadError: cannot load such file -- orocos/rorocos
goldhoorn at goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ irb
irb(main):001:0> require "orocos"
Cannot require orocos.rb's Ruby/C extension
If you are using Rock, this should have been done automatically.
Run
   amake orocos.rb
and try again
NotImplementedError: method `backtrace' called on unexpected T_NODE 
object (0x00000002484ea8 flags=0x381c klass=0x0)
     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 (irb):1
     from /usr/bin/irb1.9.1:12:in `<main>'


Nice try but it is not such simple ;)

Best,
Matthias
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://www.dfki.de/pipermail/rock-dev/attachments/20140701/b42aa31c/attachment-0001.htm 


More information about the Rock-dev mailing list