Ruby ゃ潟鴻若Linux罕膀膩

maya
篁ャRubyゃ潟鴻若膣剛

 

Ruby

nao
Rubyc鐚

maya
Ruby違潟域茯1ゃ

nao
篏帥鐚

maya
Web泣若鴻

nao
cゃ潟鴻若鐚

maya
篁yum篏帥膣剛Linux泣若篋ゃ潟帥若・膓с倶

nao
篁羈鴻鐚

maya
篁CentOS7Rubyゃ潟鴻若Linux泣若篁c鴻ャ若激с潟CentOSсOS若吾с潟c違翫羈

 

 

 

 

篋篏罐

maya
ゃ潟鴻若Ruby 若吾с潟腆肴
# yum info ruby
茯粋昭違ゃ:fastestmirror, langpacks
Loading mirror speeds from cached hostfile

 * base: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
純宴若
                : ruby
≪若c    : x86_64
若吾с          : 2.0.0.648
若            : 30.el7
絎拷                : 69 k
吾        : base/7/x86_64
荀膣                : An interpreter of object-oriented scripting language
URL                 : http://ruby-lang.org/
ゃ祉潟          : (Ruby or BSD) and Public Domain
茯                : Ruby is the interpreted scripting language for quick and
                    : easy object-oriented programming.  It has many features to
                    : process text files and to do system management tasks (as
                    : in Perl).  It is simple, straight-forward, and extensible.

nao
箴с Version 2.0.0.648 ゃ潟鴻若

maya
<ゃ≪若茵腓冴<祉若吾茵腓冴翫

 

ゃ潟鴻若

maya
Rubyゃ潟鴻若
# yum -y install ruby
茯粋昭違ゃ:fastestmirror, langpacks
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
updates                                                  | 3.4 kB     00:00    

祉祉祉筝ャ祉祉

箴絖ч∫cゃ潟鴻若障:
  libyaml.x86_64 0:0.1.4-11.el7_0                                               
  ruby-irb.noarch 0:2.0.0.648-33.el7_4                                          
  ruby-libs.x86_64 0:2.0.0.648-33.el7_4                                         
  rubygem-bigdecimal.x86_64 0:1.2.0-33.el7_4                                    
  rubygem-io-console.x86_64 0:0.4.2-33.el7_4                                    
  rubygem-json.x86_64 0:1.7.7-33.el7_4                                          
  rubygem-psych.x86_64 0:2.0.0-33.el7_4                                         
  rubygem-rdoc.noarch 0:4.0.0-33.el7_4                                          
  rubygems.noarch 0:2.0.14.1-33.el7_4                                           

絎篋障!
nao
yum-y激с潟ゃ潟鴻若筝絲障yes膈

 

ゃ潟鴻若腆肴

maya
Rubyゃ潟鴻若腆肴
# ruby -v
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
nao
若吾с潟茵腓冴違ゃ潟鴻若

 

maya
ruby鴻腆肴
# which ruby
/bin/ruby
nao
鴻/bin/ruby

 

篏腆肴

maya
Hello world茵腓冴違ф荐若

1. vi潟潟сhello.rb<ゃ篏

# vi hello.rb

 

2. vic帥т札筝潟潟ュ

print "Hello world\n"

 

3. ruby絎茵

# ruby hello.rb
Hello world
nao
Hello world脂≪茵腓冴

 

nao
ruby綣激鴻鴻≧号鐚

maya
篁泣ゃゃ潟鴻若Progate泣ゃ

nao
泣ゃс宴鐚

maya
罧綽泣腱ゃ潟膤祉潟吾≪違潟違茹腮綺宴с鴻

nao

  • Ruby違潟域茯
  • yumсゃ潟鴻若絎純

 

鐚鐚若祉鐚鐚