![]() ![]() The installer script also calls another script which will try to verify the installation. ![]() Repositories from GitHub to ~/.rbenv directory. To install both rbenv and ruby-build: curl -sL | bash. To install Ruby using the Rbenv script, follow these steps:įirst, update the packages index and install the packages required for the ruby-build tool to build Ruby from source: sudo apt update sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev It is available as a standalone program and as a plugin for rbenv. By default Rbenv doesn’t handle installing Ruby versions so we also need to install ruby-build which is a tool that helps you to install any version of Ruby you may need. ![]() Rbenv is a lightweight Ruby version management tool which allows you to easily switch Ruby versions. The output will look something like this: ruby 2.5.1p57 ( revision 63029) To verify that the installation it was successful run the following command which will print the Ruby version: ruby -version Install Ruby by typing: sudo apt install ruby-full To install Ruby from the default Ubuntu repositories, follow these steps:įirst, update the packages index: sudo apt update At the time of writing, the version in the Ubuntu repositories is 2.5.1 which is the latest stable version of Ruby. The easiest way to install Ruby on your Ubuntu system is through the apt ![]() Installing Ruby from Ubuntu Repositories # Prerequisites #īefore starting with the tutorial, make sure you are logged in as a user with sudo privileges In this tutorial we will show you three different ways to install Ruby on Ubuntu 18.04 system. It has an elegant syntax and it is the language behind the powerful Ruby on Rails framework. Ruby is one of the most popular languages today. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |