[RUBY] <Dot installation> What to do if you cannot proceed due to an error when building a development environment for Rails learning.

In the process of advancing the Ruby on Rails lesson, I made a mistake in the version to install, so I repeatedly installed and uninstalled each version.

However, I couldn't move forward and tried and errored, but I managed to move forward, so I will describe what to do at that time.

I hope it will be useful for my own memorandum and for someone in need.

Did this work?

https://teratail.com/questions/12669?link=qa_related_pc

In the above article,

rm -fr ~/.rbenv

In the terminal.

For a few minutes after that, I couldn't connect to the internet (due to this command?), But after restarting once, it returned.

Delete folders and files When stopping the web server
cat tmp/pids/server.pid

I entered, but I got an error that the file could not be found, and I did not know the solution, so Deleted the ruby_lessons and rails_lessons folders created by Cyberduck.

Uninstall / reinstall Virtual Box and Cyberduck I also thought that something was wrong with this, so I uninstalled it once.

After that, "Building a local development environment [mac os version]" of dot installation,

https://dotinstall.com/lessons/basic_localdev_mac_v2

And reinstall the uninstalled app.

Uninstall / reinstall Ruby, Ruby on Rails

https://qiita.com/yoseei/items/8cd10de57bd54093cf18

I wrote in my other article above,

gem uninstall railties -v 'Version to remove' --force
gem cleanup

Execute this and delete each version.

Rails and Ruby versions

rails -v
ruby -v

Check at.

Introduction to Ruby on Rails5 Re-challenge After re-installing various things, I tried to get started with Rails for dot installation again.

As a result, I was able to clear the part where the error had occurred so far, and I am proceeding with the lesson without any problems so far. (Currently around # 12)

On the way, there is a place to install Rails version with 5.1.3, at that time it can be installed with that version, but when I enter a different command after that, it is overwritten with 5.1.7 for some reason.

So far, the lesson is proceeding without any problem with that version, but I will try to find a way to improve it.

This is the progress report.

Recommended Posts

<Dot installation> What to do if you cannot proceed due to an error when building a development environment for Rails learning.
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if you get a "Cannot Pull Container Error" when starting ECS ​​Fargate
What to do if you get an error saying "Could not find a JavaScript runtime." When starting rails server
What to do if you get an error during rails db: reset
[Programming beginner] What to do when rails s becomes an error in the local development environment
What to do if you should have installed Rails but an error occurs with rails -v (for beginners)
What to do if ffi installation fails when launching an application in Rails
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
What to do if you get a port error when docker-compose up on Mac
What to do if you get an error saying Cannot find a valid baseurl for repo when you use yum -y install docker in a udemy course using CentOS7
What to do when you launch an application with rails
[Rails] What to do if you get an error saying "Could not find a JavaScript runtime." When executing the rails s command on Catalina
[Rails] What to do when you want to generate an error that cannot be destory when foreign key restrictions are applied
[Rails] What to do if you can't get an error message with the errors method
What to do if you get a "302" error in your controller unit test code in Rails
What to do if you get an error in Basic authentication during Rails test code
What to do if you get a gcc error in Docker
What to do if you get a DISPLAY error in gym.render ()
What to do if you go offline due to SSL certificate error when running Jenkins on Mac
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
What to do if you get a JNI shared library error when trying to build in Eclipse
[Composer] [Laravel] What to do if you cannot install due to insufficient memory
What to do if you get an uninitialized constant Likes Controller error
What to do if an error occurs when nokogiri enters when bundle install
How to translate the error message into Japanese (What to do if you cannot log in for some reason)
What to do if you accidentally create a model
What to do when a null byte error occurs
What to do when rails creates a 〇〇 2.rb file
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
What to do if you get a wrong number of arguments error in binding.pry
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do if you get the error Couldn't find Item without an ID
I got an error when trying to install sbt to build a Scala development environment
What to do if you get a java.io.IOException in GlassFish
rails [Procedure for displaying an error statement when data transmission fails due to create action]
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
# What to do if you accidentally do rails db: migrate: drop
What to do if a SAX Parser error occurs when using Liferay 7 / DXP on AWS
What to do if mysql2 gets a bundle install error
What to do if you can't use the rails command
[Rails 6] What to do when a missing a template error occurs after introducing haml [Super easy]
Procedure for migrating Rails application development environment to Docker even if you are inexperienced (Rails5 + MySQL8.0 + docker-compose)
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
What to do if you get "Changes not staged for commit:" when you git status after git add.
What to do if an error occurs when doing npm install axios in React + Typescript project
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
Procedure for building a Rails application development environment with Docker [Rails, MySQL, Docker]
What to do when you become a Problem During Content Assist
What to do when you run into a docker-compose node_modules problem
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
[Rails] What to do if you can't get parameters with form_with
What to do if an error occurs in VS Code when importing a django module or your own module installed by pip install
What to do if the image posted by refile disappears after setting a 404 error page in Rails
What to do if zip dies if there is a pom when making an executable jar with gradle
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get a groovy warning in Thymeleaf Layout
When you want Rails to disable a session for a specific controller only
What to do and how to install when an error occurs in DXRuby 1.4.7
no space left on device What to do if an error occurs
What to do when "call'Hoge.connection' to establish a connection" appears on rails c