8/6/2023 0 Comments Step railsThe output of that command should be a long list of versions that you can choose to install. First, let’s list all the available versions of Ruby: With the ruby-build plugin now installed, you can install versions of Ruby y may need through a simple command. This plugin adds the rbenv install command, which simplifies the installation process for new versions of Ruby:Īt this point, you have both rbenv and ruby-build installed. Your terminal window will display the following:Įval "$(rbenv "sh-$command" rbenv "$command" install the ( ), plugin. Verify that rbenv is set up properly by using the type command, which will display more information about the rbenv command: Next, apply the changes you made to your ~/.bashrc file to your current shell session: echo 'eval "$(rbenv init -)"' > ~/.bashrc.Then add the command eval "$(rbenv init -)" to your ~/.bashrc file so rbenv loads automatically: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' > ~/.bashrc.Do this by altering your ~/.bashrc file so that it affects future login sessions: Next, add ~/.rbenv/bin to your $PATH so that you can use the rbenv command line utility. Clone the rbenv repository from GitHub into the directory ~/.rbenv: Once the dependencies download, you can install rbenv itself. sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev.Next, install the dependencies required to install Ruby: Once those are installed, you can install rbenv and use it to install Ruby, Ruby relies on several packages which you can install through your package manager. ![]() A few Rails features, such as the Asset Pipeline, depend on a JavaScript Runtime.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |