Getting Ruby to work on ARM-based NAS

Hey everybody :slight_smile:

I’ve been fighting for weeks now with my QNAP TS-209 Pro NAS server
trying to get Ruby to work. No luck so far :frowning:

It’s an Linux based machine with an ARM CPU and i want to install Ruby
(and Rails) on it so i can install ChiliProject on it.

IPKG is available and through that it is possible to install Ruby 1.9.1
(which works fine) and Rubygems, but i need Ruby 1.8.7, 1.9.2 or 1.9.3
for ChiliProject.

I’ve managed to get the lastest RVM install and running (1.10.3), and i
can also install Ruby (1.8.7, 1.9.2 and 1.9.3), but they are all failing
with the same problem when i try to use them.

For example, after installing 1.9.3-p125 via RVM and running…

ruby -v

… it outputs…

ruby 1.9.3p125 (2012-02-16 revision 34643) [armv5tejl-linux-eabi]

… which is fine, but when trying to run some code it fails. Ex i’ve
made a file called test.rb with the following line:

puts ‘Hello world’

Running it with…

ruby /path/to/file/test.rb

fails with the following error:

internal:enc/prelude:3:in require': (null)() function is unimplemented on this machine (NotImplementedError) from <internal:enc/prelude>:3:inblock in ’
from internal:enc/prelude:1:in each' from <internal:enc/prelude>:1:in

I get this error with all versions of Ruby install with RVM, no matter
what i do. The first sign of touble is visible doing installation. I
have added a file called “Ruby installed with RVM.txt” that shows this.

I have tried to install Ruby manually, by downloading the tar from
ftp.ruby-lang.org and running the following commands:

./configure

make

make install

But it fails too, for example when generating RDoc.

Hope somebody can help. I’ve scanned the web several time with no luck
on this one.

Tell me if you need any other info.

Thanks in advance :slight_smile:

BTW. I’ve used the same procedure (with RVM) to install Ruby on and old
notebook with Ubuntu and it works fine. No problems. So it must be a
problem with the NAS. Weird.

Anyway, hope someone can help :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs