On 01.07.2014 09:58, Alexander Duda wrote:
Am 01.07.2014 um 09:32 schrieb Matthias Goldhoorn
<[email protected] <mailto:[email protected]>>:
@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@goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
goldhoorn@goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ which ruby
/home/goldhoorn/dev-xenomai/install/bin/ruby
goldhoorn@goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ which irb
/home/goldhoorn/dev-xenomai/install/bin/irb
goldhoorn@goldhoorn-VirtualBox:~/dev-xenomai/tools/orocos.rb$ irb --version
irb 0.9.6(09/06/30)
goldhoorn@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@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
_______________________________________________
Rock-dev mailing list
[email protected]
http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev