That’s it! You have successfully installed Ruby on your Ubuntu machine, and you can start using it. Your Ruby version may differ from the one shown above. The output will look something like this: ruby 2.7.0p0 ( revision 647ee6f091) Once completed, verify the installation by printing the Ruby version: ruby -version To update the package index and install Ruby: sudo apt update sudo apt install ruby-full Run the following commands as root or user with sudo privileges The installation is pretty straightforward. At the time of writing, the version in the Ubuntu repositories is 2.7.0, which may not always be the latest stable release. The easiest way to install Ruby on Ubuntu is by using the apt Installing Ruby from Ubuntu Repositories # If you are not sure which Ruby version to install, consult the documentation of the application you’re going to deploy. If you are developing Ruby applications and work multiple Ruby environments, then the preferred way is to install Ruby using Rbenv or RVM. A heavier and more feature-packed script that allows you to install, manage, and work with multiple ruby versions.Ĭhoose the installation method that is appropriate for your environment. A script that allows you to have multiple Ruby versions installed on the same machine. The version included in the Ubuntu repositories is 2.7.0. This is the easiest way to install Ruby on Ubuntu and should be sufficient for most use cases. ![]() ![]() From the standard Ubuntu repositories.In this tutorial we will show you three different ways to install Ruby on Ubuntu 20.04: Ruby is the language behind the powerful Ruby on Rails framework. It has an elegant syntax and focuses on simplicity and productivity. Ruby is one of the most popular programming languages today.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |