Install ruby on rails on Linux

Asked 2 years ago, Updated 2 years ago, 35 views

I want to install Ruby On Rails in a Linux cli environment When installing rvm, ruby, and gem, the letters come out in a diamond shape I think it's an error that can't be installed Do I have to do sudo? to install correctly? I'd appreciate it if you could tell me how to use it

linux ruby ruby-on-rails

2022-09-22 21:42

1 Answers

If you install it outside of the home directory, you must install it with root privileges. For RVMs, the root privilege is required by default by installing at /usr/local. The root authority can be accessed as root or obtained temporarily using sudo.

If it is not the root account, install it as follows.

curl -L https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

If you are installing rvmsudo install 2.1 # 2.1

For root accounts, you only need to use rvm instead of rvmsudo.

curl -L https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

rvm install 2.1


2022-09-22 21:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.