[RUBY] [Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible

【environment】 windowsPC Run on aws cloud9

Rails Tutorial Chapter 3 I got an error when installing bundle, so I recorded it as a memorandum.

[Background] When executing bundle install, an error prompting bundle update was displayed, so when I executed it as instructed, the following error notation was displayed.

An error occurred while installing pg (1.1.4), and Bundler cannot continue. Make sure that gem install pg -v '1.1.4' --source 'https://rubygems.org/' succeeds before bundling.

[Tried] While googled, I found a statement that pg is not used in the rails tutorial (I wrote it just below the text), so I ran bundle install --without production again. However, this is also an error.

I tried running bundle update --without production, but it said Unknown switches'--without'. Learn that similar moves do not work for updates.

After that, when I ran bundle install --without production again, the installation was successful.

I'm not sure which one was addicted to success, but I would like to use it as one of the measures to be taken when the same situation occurs in the future.

Recommended Posts

[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do if Cloud9 is full in the Rails tutorial
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
[Ubuntu 20.04] What to do if the external monitor is not recognized
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What to do if the background image is not applied after deployment
What to do if the app is not created with the latest Rails version installed when rails new
What to do if Operation not permitted is displayed when you execute a command in the terminal
Decompose "$ printf" install: --no-document \ nupdate: --no-document \ n ">> ~ / .gemrc" in Chapter 1 of the Rails Tutorial
What to do if the changes are not reflected in the jar manifest file
[Swift] What to do if the app icon is set but not reflected
What to do if the Rails server can't start
Suddenly bundle install is not possible due to gem'ffi'
[Rails] What to do when the Refile image is not displayed when writing the processing at the time of Routing Error
What to do if the update does not take effect after deploying Rails AWS
What to do if you can't get the text of an element in Selenium
What to do if the breakpoint is shaded and does not stop during debugging
[Rails] What is the difference between bundle install and bundle update?
What to do if audio is not available on discordrb
What to do if FacesMessage is set but not displayed
What to do if mysql2 gets a bundle install error
What to do if you can't use the rails command
What to do when ‘Could not find’ in any of the sources appears in the development environment with Docker × Rails × RSpec
What to do when Rails on Docker does not reflect controller changes in the browser
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
What to do if the Eclipse Maven dependency Jar is wrong
What to do if you forget the root password in CentOS7
What to do when "relation" hibernate_sequence "does not exist" in the ID column of PostgreSQL + JPA
What to do if you install Ubuntu
Add gem'rails-i18n','~> 6.0.0' and what to do if bundle install gives an error
What to do if you can't install the plugin from the Eclipse marketplace
What to do if an error occurs when nokogiri enters when bundle install
What to do if tomcat process remains when tomcat is stopped in eclipse
[Cloud9] Yay! You ’re on Rails! Is not displayed in the rails tutorial
[Rails] The cause of not being able to post was in form_with
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if the image posted by refile disappears after setting a 404 error page in Rails
[Rails / Docker] What to do if access is denied by the browser (localhost: 3000) after adding a gem
[Gradle] [checkstyle] What to do if the active setting of Checkstyle is removed by "Refresh Gradle project" from Eclipse
If you do not call shutdownNow when the transfer is completed in the Java SDK of AWS S3, threads will continue to remain
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 6
[Rails Struggle/Rails Tutorial] What you learned in Rails Tutorial Chapter 3
What to do if the server tomcat dies
What to do if you get Could not locate Gemfile or .bundle / directory
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
Androd: What to do about "The Realm is already in a write transaction in"
Is it mainstream not to write the closing tag of <P> tag in Javadoc?
What to do if the rails server doesn't run out on AWS cloud9
What to do if ffi installation fails when launching an application in Rails
[Rails] I want to reset everything because the data in the local environment is strange! What to do before that
What to do about "A server is already running ..." that happened without turning off the rails server in the terminal
What to do if the debug gem installation fails
What to do if you get a wrong number of arguments error in binding.pry
[Ruby on Rails Tutorial] Error in the test in Chapter 3
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
What to do if rails server can't be stopped
Install multiple submit buttons in Rails View to get the value of the pressed button
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
What to do when Address already in use is displayed after executing rails s
What to do if the JSONHint annotation does not work with lombok and JSONIC