inicio/Ubuntu 26.04/Lang / Development

Ruby 3.3 : Install

rev 2026/06/16
 

Install Ruby.

[1] Install Ruby 3.3 and try to run test script.
root@dlp:~#
apt -y install ruby
root@dlp:~#
ruby -v

ruby 3.3.8 (2025-04-09 revision b200bad6cd) [x86_64-linux-gnu]


# verify to create test script

root@dlp:~# cat > ruby_test.rb <<'EOF' 
msg = Class.send(:new, String);
mymsg = msg.send(:new, "Hello Ruby World !\n");
STDOUT.send(:write, mymsg)
EOF 

root@dlp:~#
ruby ruby_test.rb

Hello Ruby World !