質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
rbenv

rbenvは、Rubyバージョン管理ツール。プロジェクトごとでRubyバージョンを切り替えることが可能です。RVMよりもシンプルで、少ない機能で動作します。本体にはRubyのビルド機能は備わっておらず、ruby-buildというツールを用いる必要があります。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

2回答

734閲覧

プロゲートのRailsの環境構築が詰まってしまった。

neko1

総合スコア4

rbenv

rbenvは、Rubyバージョン管理ツール。プロジェクトごとでRubyバージョンを切り替えることが可能です。RVMよりもシンプルで、少ない機能で動作します。本体にはRubyのビルド機能は備わっておらず、ruby-buildというツールを用いる必要があります。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2020/05/05 09:32

前提・実現したいこと

ProgateでRailsの環境構築を行っています。
Progateが推奨しているエディタはAtomだったのでAtomを使用しています。
プロゲートのやり方では分からず、自分で調べて試行錯誤しましたが、一向に進みませんでした。
独学の完全初心者のため、わかりやすい説明をお願いいたします。

⭐︎現在完了している作業(バージョンはプロゲートの例)⭐︎
①Ruby環境の構築
rbenv version(推奨している2.2.2以上のRubyを指定しています)
②Railsのインストール
gem install rails -v "5.2.4.1"→rails -v(確認済み)
③Railsアプリケーションの新規作成
rails new sample_appという名前で作ります。
lsで確認してフォルダが作成されている事を確認しました。

⭐︎ここから詰まっている⭐︎
①「sample_appフォルダでcd sample_appを使用して移動」とあるが、どこに使用すればいいかわかりません。書く場所です。
②cd sample_appを使用した後、Railsサーバを立てるために、rails sをしますが、下記にあるメッセージが表示されます。プロゲートに書いてある例はもっと短く、書いてある内容も全然違います。

発生している問題・エラーメッセージ

rails

1Usage: 2 rails new APP_PATH [options] 3 4Options: 5 [--skip-namespace], [--no-skip-namespace] # Skip namespace (affects only isolated applications) 6 -r, [--ruby=PATH] # Path to the Ruby binary of your choice 7 # Default: /Users/user/.rbenv/versions/2.5.0/bin/ruby 8 -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) 9 -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/postgresql/sqlite3/oracle/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) 10 # Default: sqlite3 11 [--skip-yarn], [--no-skip-yarn] # Don't use Yarn for managing JavaScript dependencies 12 [--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile 13 -G, [--skip-git], [--no-skip-git] # Skip .gitignore file 14 [--skip-keeps], [--no-skip-keeps] # Skip source control .keep files 15 -M, [--skip-action-mailer], [--no-skip-action-mailer] # Skip Action Mailer files 16 -O, [--skip-active-record], [--no-skip-active-record] # Skip Active Record files 17 [--skip-active-storage], [--no-skip-active-storage] # Skip Active Storage files 18 -P, [--skip-puma], [--no-skip-puma] # Skip Puma related files 19 -C, [--skip-action-cable], [--no-skip-action-cable] # Skip Action Cable files 20 -S, [--skip-sprockets], [--no-skip-sprockets] # Skip Sprockets files 21 [--skip-spring], [--no-skip-spring] # Don't install Spring application preloader 22 [--skip-listen], [--no-skip-listen] # Don't generate configuration that depends on the listen gem 23 [--skip-coffee], [--no-skip-coffee] # Don't use CoffeeScript 24 -J, [--skip-javascript], [--no-skip-javascript] # Skip JavaScript files 25 [--skip-turbolinks], [--no-skip-turbolinks] # Skip turbolinks gem 26 -T, [--skip-test], [--no-skip-test] # Skip test files 27 [--skip-system-test], [--no-skip-system-test] # Skip system test files 28 [--skip-bootsnap], [--no-skip-bootsnap] # Skip bootsnap gem 29 [--dev], [--no-dev] # Setup the application with Gemfile pointing to your Rails checkout 30 [--edge], [--no-edge] # Setup the application with Gemfile pointing to Rails repository 31 [--rc=RC] # Path to file containing extra configuration options for rails command 32 [--no-rc], [--no-no-rc] # Skip loading of extra configuration options from .railsrc file 33 [--api], [--no-api] # Preconfigure smaller stack for API only apps 34 -B, [--skip-bundle], [--no-skip-bundle] # Don't run bundle install 35 [--webpack=WEBPACK] # Preconfigure for app-like JavaScript with Webpack (options: react/vue/angular/elm/stimulus) 36 37Runtime options: 38 -f, [--force] # Overwrite files that already exist 39 -p, [--pretend], [--no-pretend] # Run but do not make any changes 40 -q, [--quiet], [--no-quiet] # Suppress status output 41 -s, [--skip], [--no-skip] # Skip files that already exist 42 43Rails options: 44 -h, [--help], [--no-help] # Show this help message and quit 45 -v, [--version], [--no-version] # Show Rails version number and quit 46 47Description: 48 The 'rails new' command creates a new Rails application with a default 49 directory structure and configuration at the path you specify. 50 51 You can specify extra command-line arguments to be used every time 52 'rails new' runs in the .railsrc configuration file in your home directory. 53 54 Note that the arguments specified in the .railsrc file don't affect the 55 defaults values shown above in this help message. 56 57Example: 58 rails new ~/Code/Ruby/weblog 59 60 This generates a skeletal Rails installation in ~/Code/Ruby/weblog.`` 61 62### 該当のソースコード 63

cd sample_app
rails s

### 試したこと プロゲートの説明通りに実施。 Homebrewを使って実施。(やり方が合っていたのかわかりません)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

②Railsのインストール
gem install rails -v "5.2.4.1"→rails -v(確認済み)

homebrew / rbenv でruby開発環境を作っているなら
gemコマンドでいきなりrailsをインストールしない方が良いです。
(他のgemパッケージとの依存関係の解決が大変なので)

大体の手順は以下のようになります。

  1. 空のrailsフォルダを作って、その中に移動する
  2. フォルダ内で利用するrubyのバージョンを指定する。

(rbenvでインストールしたrubyから選ぶ)
0. rails init (railsを定義したGemfileを作る)
0. bundle install (railsはフォルダ内にインストールします)
0. bundle exec rails new .
0. bundle exec rails s

これだけです。
railsを起動するまで作業時間で10分もかかりません。
(依存関係のエラーがでたら、Gemfileを修正して再インストール)

投稿2020/05/16 00:59

編集2020/05/16 01:01
technocore

総合スコア7245

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

maisumakun

2020/05/16 01:16

1つ注意点として、bundlerが「新しすぎる」というトラブルが発生することがあります。bundlerの1系列でないとRails 5は動かせないです。
technocore

2020/05/16 01:51

その注意点がありますね。回答に書いていませんでした。 ちなみに以下のバージョンで構築起動を確認しました。 Ruby 2.6.6 Rails 5.2.4.2 Gem 3.0.3 Bundler 1.17.2
neko1

2020/05/23 07:38

返事遅れてしまい、申し訳ございませんでした。 自分なりに、お二人の説明見ながら、そして調べながらやってみましたが全然わかりませんでした。 バージョンは、 ruby2.5.0 rails5.2.4.2 gem2.7.3 bundler2.1.4 です。 1つ1つの作業を教えてもらえると助かります。 よろしくお願いします。orz
guest

0

rails newしたディレクトリでcd sample_appすればsample app/に移動できるので、そこでrails sしてください。

投稿2020/05/06 05:17

motoaki

総合スコア106

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

neko1

2020/05/07 04:26

ご回答ありがとうございます。 そのディレクトリはatomの中の左側にあるプロジェクトの一覧の1番上にあるもので、選択できません。そのため、cd sample_appを入れる場所がわかりません。
motoaki

2020/05/07 04:53

ちょっと状況がよくわからないですね。 あまり変なことをしていなければ、ターミナルで以下のコマンドを上から順番に実行すれば、いけるとは思います。 cd cd sample_app rails s コマンド自体あんまりわかってないようなら、Progateのコマンドラインコースやったらいいと思います。
neko1

2020/05/09 08:05

お返事ありがとうございます。遅れてしまい申し訳ございませんでした。 コマンドラインを再確認しても、解決するような内容は見当たりませんでした。 pwdで確認して見ても、きちんとsammple_appに移動できていました。rails sした後は、このように表示されます。 Traceback (most recent call last): 4: from bin/rails:3:in `<main>' 3: from bin/rails:3:in `require_relative' 2: from /Users/user/sample_app/config/boot.rb:3:in `<top (required)>' 1: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup (LoadError) このエラーの表示されている内容も一切変更はありませんでした。
motoaki

2020/05/09 08:54

なるほど。。 それなら、rails newがちゃんと出来てなかったのかもしれません。 rails newを実行した時に、何かエラーは出ていませんでしたか?
neko1

2020/05/10 04:14

rails new sample_app exist identical README.md identical Rakefile identical .ruby-version identical config.ru conflict .gitignore Overwrite /Users/user/sample_app/.gitignore? (enter "h" for help) [Ynaqdhm] force .gitignore identical Gemfile run git init from "." Reinitialized existing Git repository in /Users/user/sample_app/.git/ identical package.json exist app identical app/assets/config/manifest.js identical app/assets/javascripts/application.js identical app/assets/javascripts/cable.js identical app/assets/stylesheets/application.css identical app/channels/application_cable/channel.rb identical app/channels/application_cable/connection.rb identical app/controllers/application_controller.rb identical app/helpers/application_helper.rb identical app/jobs/application_job.rb identical app/mailers/application_mailer.rb identical app/models/application_record.rb identical app/views/layouts/application.html.erb identical app/views/layouts/mailer.html.erb identical app/views/layouts/mailer.text.erb identical app/assets/images/.keep exist app/assets/javascripts/channels identical app/assets/javascripts/channels/.keep identical app/controllers/concerns/.keep identical app/models/concerns/.keep exist bin identical bin/bundle identical bin/rails identical bin/rake identical bin/setup identical bin/update identical bin/yarn exist config identical config/routes.rb identical config/application.rb identical config/environment.rb identical config/cable.yml identical config/puma.rb identical config/spring.rb identical config/storage.yml exist config/environments identical config/environments/development.rb identical config/environments/production.rb identical config/environments/test.rb exist config/initializers identical config/initializers/application_controller_renderer.rb identical config/initializers/assets.rb identical config/initializers/backtrace_silencers.rb identical config/initializers/content_security_policy.rb identical config/initializers/cookies_serializer.rb create config/initializers/cors.rb identical config/initializers/filter_parameter_logging.rb identical config/initializers/inflections.rb identical config/initializers/mime_types.rb create config/initializers/new_framework_defaults_5_2.rb identical config/initializers/wrap_parameters.rb exist config/locales identical config/locales/en.yml append .gitignore identical config/boot.rb identical config/database.yml exist db identical db/seeds.rb exist lib exist lib/tasks identical lib/tasks/.keep exist lib/assets identical lib/assets/.keep exist log identical log/.keep exist public identical public/404.html identical public/422.html identical public/500.html identical public/apple-touch-icon-precomposed.png identical public/apple-touch-icon.png identical public/favicon.ico identical public/robots.txt exist tmp identical tmp/.keep exist tmp/pids identical tmp/pids/.keep exist tmp/cache exist tmp/cache/assets exist vendor identical vendor/.keep exist test/fixtures identical test/fixtures/.keep exist test/fixtures/files identical test/fixtures/files/.keep exist test/controllers identical test/controllers/.keep exist test/mailers identical test/mailers/.keep exist test/models identical test/models/.keep exist test/helpers identical test/helpers/.keep exist test/integration identical test/integration/.keep identical test/test_helper.rb exist test/system identical test/system/.keep identical test/application_system_test_case.rb exist storage identical storage/.keep exist tmp/storage identical tmp/storage/.keep remove config/initializers/cors.rb remove config/initializers/new_framework_defaults_5_2.rb run bundle install Traceback (most recent call last): 24: from /Users/user/.rbenv/versions/2.5.0/bin/rails:23:in `<main>' 23: from /Users/user/.rbenv/versions/2.5.0/bin/rails:23:in `load' 22: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/exe/rails:10:in `<top (required)>' 21: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 20: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' 19: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/cli.rb:18:in `<top (required)>' 18: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/command.rb:46:in `invoke' 17: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/command/base.rb:69:in `perform' 16: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch' 15: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 14: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 13: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/commands/application/application_command.rb:26:in `perform' 12: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start' 11: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/group.rb:232:in `dispatch' 10: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `invoke_all' 9: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `map' 8: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `each' 7: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:134:in `block in invoke_all' 6: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command' 5: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run' 4: from (eval):1:in `run_bundle' 3: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/generators/app_base.rb:454:in `run_bundle' 2: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.1/lib/rails/generators/app_base.rb:412:in `bundle_command' 1: from /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems.rb:263:in `bin_path' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /Users/user/sample_app/Gemfile.lock. (Gem::GemNotFoundException) To update to the lastest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:1.17.2`
neko1

2020/05/10 04:28

ls Applications Downloads Music sample_app Desktop Library Pictures workapace Documents Movies Sites
neko1

2020/05/10 04:34

その後、cd sample_appしたら、 sample_app % と表示されるので、移動はできていると思います。
motoaki

2020/05/10 04:52

なるほど。 rails new sample_appのログの最後の方に Could not find 'bundler' (1.17.2) required by your /Users/user/sample_app/Gemfile.lock. (Gem::GemNotFoundException) To update to the lastest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:1.17.2` というエラーメッセージがあるので、そもそもアプリの作成に失敗していますね。(bundle installできていない) みた感じbundlerのバージョンが足りてないっぽいので ひとまず、エラーメッセージに書いてあるように、bundle update --bundler、gem install bundler:1.17.2あたりを実行してみたらどうですか https://shinkufencer.hateblo.jp/entry/2019/05/20/000000
neko1

2020/05/15 11:13

motoakiさんの教えていただいた通りや、自分で調べてもわかりませんでした。 gem install rails -v "5.2.4.1"した後、rails sすると、何故か"5.2.4.2"と表示されたり、rails new sample_appした後、確認でlsすると、前回行った動作が残っているみたいですが、関係ありますか?
motoaki

2020/05/15 11:27

bundle update --bundler gem install bundler:1.17.2 これら実行してみたらどうなりましたか? > gem install rails -v "5.2.4.1"した後、rails sすると、何故か"5.2.4.2"と表示されたり →複数のバージョンのrailsがインストールされているかもしれないです。 https://qiita.com/tanakayo/items/7b85261924eca1a5a3d6 > rails new sample_appした後、確認でlsすると、前回行った動作が残っているみたいですが、関係ありますか? →たぶん関係ないです。
neko1

2020/05/15 23:57

sample_app % bundle update --bundler The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 13.0.1 Using concurrent-ruby 1.1.6 Using i18n 1.8.2 Using minitest 5.14.0 Using thread_safe 0.3.6 Using tzinfo 1.2.7 Using activesupport 5.2.4.2 Using builder 3.2.4 Using erubi 1.9.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.9 Using rails-dom-testing 2.0.3 Using crass 1.0.6 Using loofah 2.5.0 Using rails-html-sanitizer 1.3.0 Using actionview 5.2.4.2 Using rack 2.2.2 Using rack-test 1.1.0 Using actionpack 5.2.4.2 Using nio4r 2.5.2 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 5.2.4.2 Using globalid 0.4.2 Using activejob 5.2.4.2 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailer 5.2.4.2 Using activemodel 5.2.4.2 Using arel 9.0.0 Using activerecord 5.2.4.2 Using mimemagic 0.3.4 Using marcel 0.3.3 Using activestorage 5.2.4.2 Using public_suffix 4.0.4 Using addressable 2.7.0 Using io-like 0.3.1 Using archive-zip 0.12.0 Using bindex 0.8.1 Using msgpack 1.3.3 Using bootsnap 1.4.6 Using bundler 2.1.4 Using byebug 11.1.3 Using regexp_parser 1.7.0 Using xpath 3.2.0 Using capybara 3.32.1 Using childprocess 3.0.0 Using chromedriver-helper 2.1.1 Using coffee-script-source 1.12.2 Using execjs 2.7.0 Using coffee-script 2.4.1 Using method_source 1.0.0 Using thor 1.0.1 Using railties 5.2.4.2 Using coffee-rails 4.2.2 Using ffi 1.12.2 Using jbuilder 2.10.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.1 Using ruby_dep 1.5.0 Using listen 3.1.5 Using puma 3.12.4 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 5.2.4.2 Using rubyzip 2.3.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.10 Using sass-rails 5.1.0 Using selenium-webdriver 3.142.7 Using spring 2.1.0 Using spring-watcher-listen 2.0.1 Using sqlite3 1.4.2 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using uglifier 4.2.0 Using web-console 3.7.0 Bundle updated!
neko1

2020/05/15 23:58

sample_app % gem install bundler:1.17.2 Successfully installed bundler-1.17.2 Parsing documentation for bundler-1.17.2 Done installing documentation for bundler after 2 seconds 1 gem installed
neko1

2020/05/16 00:02

そちらのサイト確認したところ、2つのバージョンがあり、戻し方を真似て見ましたが、戻りませんでした。
motoaki

2020/05/16 02:45

OKです。 今の状態で、rails new sample_appしてからrails sしたらどうなりますか? もしエラーでたら、ログをください。
neko1

2020/05/16 21:56

sample_app % rails new sample_app Can't initialize a new Rails application within the directory of another, please change to a non-Rails directory first. Type 'rails' for help.
neko1

2020/05/16 21:58

sample_app % rails s [WARNING] Could not load command "rails/commands/server/server_command". Error: uninitialized constant URI::Generic. /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `block in load_missing_constant' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:9:in `without_bootsnap_cache' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:80:in `rescue in load_missing_constant' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in `load_missing_constant' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/ftp.rb:23:in `<module:URI>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/ftp.rb:13:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:107:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/rfc2396_parser.rb:13:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/common.rb:13:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri/generic.rb:12:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/core_ext/object/json.rb:6:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
neko1

2020/05/16 21:59

/Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/core_ext/object.rb:13:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/configuration.rb:4:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie/configuration.rb:3:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie.rb:223:in `config' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie.rb:127:in `config' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/i18n_railtie.rb:11:in `<class:Railtie>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/i18n_railtie.rb:10:in `<module:I18n>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/i18n_railtie.rb:9:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.4.2/lib/active_support/railtie.rb:4:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails.rb:17:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
neko1

2020/05/16 21:59

/Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands/server/server_command.rb:6:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/behavior.rb:84:in `block (2 levels) in lookup' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/behavior.rb:80:in `each' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/behavior.rb:80:in `block in lookup' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/behavior.rb:79:in `each' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command/behavior.rb:79:in `lookup' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command.rb:70:in `find_by_namespace' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/command.rb:44:in `invoke' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/commands.rb:18:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' /Users/user/sample_app/bin/rails:9:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load' /Users/user/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require' /Users/user/sample_app/bin/spring:15:in `<top (required)>' bin/rails:3:in `load' bin/rails:3:in `<main>' /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:99: warning: already initialized constant URI::VERSION_CODE /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:99: warning: previous definition of VERSION_CODE was here /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:100: warning: already initialized constant URI::VERSION /Users/user/.rbenv/versions/2.5.0/lib/ruby/2.5.0/uri.rb:100: warning: previous definition of VERSION was here rails aborted! NameError: uninitialized class variable @@schemes in URI /Users/user/sample_app/config/application.rb:3:in `<top (required)>' /Users/user/sample_app/Rakefile:4:in `<top (required)>' /Users/user/sample_app/bin/rails:9:in `<top (required)>' /Users/user/sample_app/bin/spring:15:in `<top (required)>' bin/rails:3:in `load' bin/rails:3:in `<main>' (See full trace by running task with --trace)
neko1

2020/05/16 22:01

任せっきりで本当に申し訳ございません。 付き合って頂き、誠にありがとうございます。orz とても感謝しています。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問