OpenWrt Forum Archive

Topic: Ruby Binaries?

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm new to OpenWrt development.  Does anyone have an OpenWrt binary of Ruby 1.8.4 or 1.8.5 that I could download?  If not, could someone please provide me with a quick overview of how to compile it from the source?

Thanks!

(Last edited by pvtjohndoe on 22 Dec 2006, 20:23)

And here is Ruby 1.8.4 for OpenWrt.

I guess it will soon be added to the /packages repository in subversion. If you can't wait apply the patch manually and build the binary by yourself with the SDK.

The hello world example on the shell.

hello-world.rb

puts 'Hello, world!'
ruby hello-world.rb
Hello, world!

Some more information (huge binary):

root@OpenWrt:~# ls -al /usr/bin/ruby
-rwxr-xr-x    1 root     root       823151 Jan  6  2007 /usr/bin/ruby
root@OpenWrt:~# ldd /usr/bin/ruby
        libdl.so.0 => /lib/libdl.so.0 (0x2aaee000)
        libcrypt.so.0 => /lib/libcrypt.so.0 (0x2ab30000)
        libm.so.0 => /lib/libm.so.0 (0x2ab84000)
        libc.so.0 => /lib/libc.so.0 (0x2abcb000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
root@OpenWrt:~#

(Last edited by forum2006 on 7 Jan 2007, 02:15)

The discussion might have continued from here.