Categories
General

手動安裝 Ruby 1.9.1

Ubuntu 9.04 附的 Ruby 版本不夠新,所以到 Ruby 的官網下載原始碼回來,自己手動裝一份。

  1. tar xvfz ruby-1.9.1-p0.tar.gz
  2. cd ruby-1.9.1-p0/
  3. ./configure
  4. make -j2
  5. make test
  6. sudo make install

於是就有了:

$ ruby -v
ruby 1.9.1p0 (2009-01-30 revision 21907) [i686-linux]
$ gem -v
1.3.1

帥啊!

CC BY-SA 4.0 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Leave a Reply

Your email address will not be published. Required fields are marked *