Go Down

Topic: Install ruby-gems through opkg breaks ruby (Read 200 times) previous topic - next topic

eshuaige

I am on OpenWRT version 1.5.3

root@Arduino:~# cat /etc/arduino/openwrt-yun-release
built=Mon Dec  4 16:38:21 UTC 2017

and when I install ruby through opkg (opkg install ruby), things are working fine. I can do 'ruby bla.rb' and it works, but after I install ruby-gems (opkg install ruby-gems), and do 'ruby bla.rb', I got the following error:

root@Arduino:~# gem
Traceback (most recent call last):
        6: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        5: from <internal:gem_prelude>:2:in `require'
        4: from /usr/lib/ruby/2.5/rubygems.rb:117:in `<top (required)>'
        3: from /usr/lib/ruby/2.5/rubygems.rb:1376:in `<module:Gem>'
        2: from /usr/lib/ruby/2.5/rubygems.rb:1376:in `require'
        1: from /usr/lib/ruby/2.5/rubygems/specification.rb:17:in `<top (required)>'
/usr/lib/ruby/2.5/rubygems/specification.rb:17:in `require': incompatible library version - /usr/lib/ruby/2.5/mips-linux-gnu/stringio.so (LoadError)

Right now, I am on ruby version "ruby 2.5.1p57 (2018-03-29 revision 63029) [mips-linux-gnu]" and after removing the "ruby-gems" package, then things go back to normal, but I need ruby gem ...

and when I do "file /usr/lib/ruby/2.5/mips-linux-gnu/stringio.so", I got the following:

root@Arduino:~# file /usr/lib/ruby/2.5/mips-linux-gnu/stringio.so
/usr/lib/ruby/2.5/mips-linux-gnu/stringio.so: ELF 32-bit MSB shared object, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, corrupted section header size

Looks like this file stringio.so is corrupted! Could someone help?


Go Up