![]() asdf plugin add rubyĬhoose the version of Ruby you want to install: For Rails, we can install Ruby and Node.js for our frontend Javascript. Then we can install ASDF plugins for each language we want to use. "$HOME/.asdf/completions/asdf.bash"' > ~/.bashrcĮcho 'legacy_version_file = yes' > ~/.asdfrcĮcho 'export EDITOR="code -wait"' > ~/.bashrc First you install asdf, and then add it to your shell:Įcho '. Installing asdf is a simple two step process. The reason we use ASDF over rbenv, rvm or others is that ASDF can manage other languages like Node.js too. Next we're going to be installing Ruby using a version manager called ASDF. Sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev Open your Terminal and run the following commands to install them. The first step is to install dependencies for compiling Ruby. You can find it on the same download link above. Some of you may choose to develop on Ubuntu Server so that your development environment matches your production server. You'll want to download the latest Desktop version here: ![]() ![]() Ubuntu is one of the easiest Linux distributions to use with lots of documentation so it's a great one to start with. The reason we're going to be using Ubuntu is because the majority of code you write will run on a Linux server. We will be setting up a Ruby on Rails development environment on Ubuntu 20.04 Focal Fossa. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |