Notes for installing Ruby in Ubuntu

Source: Internet
Author: User
Here, we will talk about installing Ruby through apt-get, which will eliminate the need for self-compiling.

First, you must install both Ruby and ruby-dev when installing Ruby. The current version is 1.8, so you should execute the following command Java code

  1. Sudo apt-Get install ruby1.8 ruby1.8-dev rubygems
sudo apt-get install ruby1.8 ruby1.8-dev rubygems 

This is because many plug-ins or gems depend on the stuff in Dev. For example, Ferret will use something called mkmf, which is included in Dev.

You can install rails using gem or apt-get, but we recommend the former because the version is definitely the latest. For example, if rails is not 1.2 In the source I use, it is not good to use apt-Get.

The last step is to find out where these things are installed. You can run the find command Java code in the root directory.

  1. Sudo find-INAME * Ruby *> result.txt
sudo find -iname *ruby* >> result.txt 

The following is the running result Java code on my computer.

  1. ./Usr/share/doc/Ruby
  2. ./Usr/share/doc/Ruby/ruby-policy.sgml.gz
  3. ./Usr/share/doc/Ruby/ruby-policy.txt.gz
  4. ./Usr/share/doc/Ruby/ruby-policy.html
  5. ./Usr/share/doc/Ruby/ruby-policy.html/ch-ruby.html
  6. ./Usr/share/doc/Ruby/ruby-policy.html/ap-ruby1.8_bundled_modules.html
  7. ./Usr/share/doc/rubygems
  8. ./Usr/share/doc/libreadline-ruby1.8
  9. ./Usr/share/doc/ruby1.8-Dev
  10. ./Usr/share/doc/libruby1.8
  11. ./Usr/share/doc/ruby1.8
  12. ./Usr/share/doc/libopenssl-ruby1.8
  13. ./Usr/share/doc/libgems-ruby1.8
  14. ./Usr/share/doc/libgems-ruby1.8/test/data/legacy/keyedlist-0.4.0.ruby
  15. ./Usr/share/gedit-2/plugins/snippets/Ruby. xml
  16. ./Usr/share/gtksourceview-1.0/language-specs/Ruby. Lang
  17. ./Usr/share/man/Man1/ruby1.8.1.gz
  18. ./Usr/share/man/Man1/ruby.1.gz
  19. ./Usr/share/MIME/application/x-ruby.xml
  20. ./Usr/share/nano/Ruby. nanorc
  21. ./Usr/bin/update_rubygems
  22. ./Usr/bin/Ruby
  23. ./Usr/bin/ruby1.8
  24. ./Usr/lib/libruby1.8-static.
  25. ./Usr/lib/Ruby
  26. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4
  27. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/RI/gem/specification/to_ruby-i.yaml
  28. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/RI/gem/commands/updatecommand/do_rubygems_update-i.yaml
  29. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/RI/gem/ruby-c.yaml
  30. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/rdoc/files/lib/rubygems_rb.html
  31. ../Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/rdoc/files/lib/rubygems
  32. ./Usr/lib/Ruby/gems/1.8/doc/rubygems-0.9.4/rdoc/files/lib/rubygems/rubygems_version_rb.html
  33. ./Usr/lib/Ruby/gems/1.8/doc/actionwebservice-1.2.3/RI/actionwebservice/protocol/soap/soapw.aler/ruby_to_soap-i.yaml
  34. ./Usr/lib/Ruby/gems/1.8/doc/actionwebservice-1.2.3/RI/actionwebservice/protocol/soap/soapw.aler/soap_to_ruby-i.yaml
  35. ./Usr/lib/Ruby/gems/1.8/gems/rake-0.7.3/lib/rake/ruby182_test_unit_fix.rb
  36. ./Usr/lib/Ruby/gems/1.8/gems/rake-0.7.3/lib/rake/contrib/rubyforgepublisher. Rb
  37. ./Usr/lib/Ruby/gems/1.8/gems/rails-1.2.3/lib/ruby_version_check.rb
  38. ./Usr/lib/Ruby/gems/1.8/gems/rails-1.2.3/lib/rubyprof_ext.rb
  39. ./Usr/lib/Ruby/1.8/rubygems
  40. ./Usr/lib/Ruby/1.8/rubygems/rubygems_version.rb
  41. ./Usr/lib/Ruby/1.8/rubygems. Rb
  42. ./Usr/lib/Ruby/1.8/yaml/rubytypes. Rb
  43. ./Usr/lib/Ruby/1.8/soap/mapping/rubytypefactory. Rb
  44. ./Usr/lib/Ruby/1.8/WSDL/XMLSCHEMA/xsd2ruby. Rb
  45. ./Usr/lib/Ruby/1.8/WSDL/soap/wsdl2ruby. Rb
  46. ./Usr/lib/Ruby/1.8/IRB/ruby-token.rb
  47. ./Usr/lib/Ruby/1.8/IRB/ruby-lex.rb
  48. ./Usr/lib/Ruby/1.8/i486-linux/rubyio. h
  49. ./Usr/lib/Ruby/1.8/i486-linux/rubysig. h
  50. ./Usr/lib/Ruby/1.8/i486-linux/Ruby. h
  51. ./Usr/lib/Ruby/1.8/rubyunit. Rb
  52. ./Usr/lib/libruby1.8.so. 1.8.5
  53. ./Usr/lib/libruby1.8.so
  54. ./Usr/lib/libruby1.8.so. 1.8
  55. ./Usr/local/lib/site_ruby
  56. ./Usr/local/lib/site_ruby/1.8/rubygems
  57. ./Usr/local/lib/site_ruby/1.8/rubygems/rubygems_version.rb
  58. ./Usr/local/lib/site_ruby/1.8/rubygems. Rb
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.