Apt-get install ruby version




















Especially if you need to use different versions of Ruby at the same time. Soft-linking can get a little tiresome when doing Rails development, etc. I use rbenv locally for switching versions, so it's worth the hassle. But on production I only need 1 ruby version, and then I prefer the standard package manager. I'll read up on the "alternatives" mechanism.

Add a comment. Active Oldest Votes. Improve this answer. Edmund Edmund 86 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook.

Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Note: Learn how to set environment variables in Linux.

Note: Installing Ruby using Rbenv might take some time. If you want the command output to list each step of the installation process, enable the verbose output by adding the --verbose flag: rbenv install --verbose [version number].

RVM is a command line tool that helps you install and manage multiple Ruby environments on the same system. Type Y and press Enter to confirm the installation when prompted. Load the RVM script environment variables using the source command:.

Note: Learn more about using the Linux source command. Note: Learn also how to check Ubuntu version. After following this tutorial, you should have a copy of Ruby installed and ready to use.

Next, you may want to install the Ruby on Rails stack, which should help simplify and speed up app development. I don't like having RVM on production server, so I usually install ruby from source with an install script like this:! Lasse Skindstad Ebert Lasse Skindstad Ebert 3, 1 1 gold badge 27 27 silver badges 28 28 bronze badges. I don't want RVM on my server either. Good work. Since the original question was about the latest version, here is how to get Ruby 2.

Joshua Cook Joshua Cook Xiaohui Zhang Xiaohui Zhang 8 8 silver badges 11 11 bronze badges. Anastasios Andronidis Anastasios Andronidis 5, 4 4 gold badges 27 27 silver badges 45 45 bronze badges. Exactly what I wanted! Thank you! Note that apt may not install the latest Ruby version automatically, because the brightbox. For example, if apt install ruby installs ruby2. You should check stackoverflow more carefully before asking questions.

Community Bot 1 1 1 silver badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント

  • 1000 / 1000