ル微王徴

インストール

最終更新:

rubyocho

- view
メンバー限定 登録/ログイン

Ruby on Railsをインストールする。

OS:Vine4.1

  • Linux vine 2.6.16-0vl73 #1 SMP

Rubyをインストール

# rpm -qa | grep ruby
libruby-1.8.5-0vl1.1
liberuby-1.0.5-0vl3
ruby-openssl-1.8.5-0vl1.1
ruby-1.8.5-0vl1.1
ruby-docs-1.8.5-0vl1.1
ruby-devel-1.8.5-0vl1.1
sqlite3-3.3.6-0vl3
sqlite3-devel 3.3.6-0vl3

RubyGems

  • wget
    # wget \
    http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz
    
  • tar xzovf
    # tar xzovf rubygems-0.9.2.tgz
    # cd rubygems-0.9.2/
    
  • セットアップ
    # ruby setup.rb config
    # ruby setup.rb setup
    
  • インストール
    # ruby setup.rb install
     Successfully built RubyGem
     Name: sources
     Version: 0.0.1
     File: sources-0.0.1.gem
    
  • gem help commands
    GEM commands are:
    ----------------------------------------------------------------------------
       build            Build a gem from a gemspec
       cert             Adjust RubyGems certificate settings
       check            Check installed gems
       cleanup          Clean up old versions of installed gems in the local
                        repository
       contents         Display the contents of the installed gems
       dependency       Show the dependencies of an installed gem
       environment      Display information about the RubyGems environment
       help             Provide help on the 'gem' command
       install          Install a gem into the local repository
       list             Display all gems whose name starts with STRING
       outdated         Display all gems that need updates
       pristine         Restores gem directories to pristine condition from files
                        located in the gem cache
       query            Query gem information in local or remote repositories
       rdoc             Generates RDoc for pre-installed gems
       search           Display all gems whose name contains STRING
       sources          Manage the sources RubyGems will search forgems
       specification    Display gem specification (in yaml)
       uninstall        Uninstall gems from the local repository
       unpack           Unpack an installed gem to the current directory
       update           Update the named gem (or all installed gems) in the local
                        repository
    ----------------------------------------------------------------------------
    For help on a particular command, use 'gem help COMMAND'.
    
目安箱バナー