I can't install rails on my mac

About this article

I'm studying programming. I would like to summarize the knowledge I gained in the process of studying so that I will not forget it and help someone.

"Rails -v" doesn't work!

(base) hoge@MacBook-Pro ~ % rails -v
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

I installed rails as I checked, but I get this error no matter how many times I run rails -v.

approach

rbenv rehash

If you run this command and run rails -v again

(base) hoge@MacBook-Pro ~ % rails -v
Rails 6.0.3.1

It went well! !!

reference

https://qiita.com/amuyikam/items/313bc89c1de320a4257e https://github.com/railsgirls-jp/coach.info/issues/32

Recommended Posts

I can't install rails on my mac
[Ruby] I can't install puma on Mac [Rails, etc.]
Install gradle on mac
Install Java on Mac
Mac Rails Install Error
Install openjdk11 on mac
Install OpenJDK 8 on mac
I tried putting Java on my Mac easily
I can't overwrite information on columns in rails console ...
Install Sidekiq pro on Rails
Install Rails on macOS Catalina
I struggled with pip install on an M1 Mac
Install tomcat + eclipse on mac
The vscode neovim extention has stopped working, so I can't help but install neovim 0.5 on my Mac via Homebrew.
I want to put the JDK on my Mac PC
[Ruby on Rails] yarn install --check-files
I can't install lombok with Gradle.
Install Java development environment on Mac
I just want to write Java using Eclipse on my Mac
I want to add devise in Rails, but I can't bundle install
[Rails] I can post S3 images in my local environment, but I can't switch to S3 on Heroku.
If you can't install java on Catalina
Ruby on Rails installation method [Mac edition]
I installed Docker on my Raspberry Pi 3
How to install Eclipse (Photon) on Mac
I want to install PHP 7.2 on Ubuntu 20.04.
I tried using Junit on Mac VScode Maven
Install java and android-sdk on Mac using homebrew
Tailwind on Rails
Install SonarQube on Mac and challenge source analysis
[Ruby on Rails] Let's build an environment on mac
Ruby on Rails development environment construction on M1 Mac
[Ruby on Rails] How to install Bootstrap in Rails
I tried running Java on a Mac terminal
I made a portfolio with Ruby On Rails
I want to use NetBeans on Mac → I can use it!
Install java and maven using brew on new mac
Install Eclipse on Mac and translate it into Japanese
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
I can't get out of the Rails dbconsole screen
Install ag (the silver searcher) [on CentOS / Ubuntu / Mac]
I installed Squid on CentOS in my local environment
Install Corretto 8 on Windows
I had to figure out where the eclipse plugins folder was on my Mac. (Memo)
Run STS4 on Mac
Install OpenJDK on macOS
Launch Rails on EC2
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Test run on rails
Install Docker on Manjaro
Install Ruby on Ubuntu 20.04
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install lombok on SpringToolSuite4
Deploy RAILS on EC2
Ruby on Rails Elementary
Ruby on Rails basics
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Autoware on Ubuntu 18.04.5