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

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

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

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

Ruby on Rails

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

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

Q&A

解決済

1回答

803閲覧

regexp_parserのgemがinstallされた状態にならない

yusuke9814

総合スコア18

Ruby

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

Ruby on Rails

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

Docker

Dockerは、Docker社が開発したオープンソースのコンテナー管理ソフトウェアの1つです

0グッド

0クリップ

投稿2019/05/25 04:24

編集2019/05/25 04:31

実現したいこと

こちらの記事を参考にしてrailsアプリにて無限スクロールを実装したいです

gem 'kaminari', '~> 1.1.1' をinstallした後、dockerコンテナを起動したのですが、railsサーバーにアクセスできなくなってしまいました。
ログを確認したところ,

Could not find regexp_parser-1.5.1 in any of the sources Run `bundle install` to install missing gems. Could not find regexp_parser-1.5.1 in any of the sources Run `bundle install` to install missing gems.

のエラーが出たため、gem 'regexp_parser', '~> 1.5.1'をinstallしようとした次第です。
しかしながら、bundle updateやgemfile.lockを削除してやり直したりして見たのですが、ログを確認するとまだこのエラーが出てきます。
何卒解決策のほどご教授お願いいたします。

gemfile

1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.6.3' 5 6# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 7gem 'rails', '~> 5.2.3' 8# Use mysql as the database for Active Record 9gem 'mysql2', '>= 0.4.4', '< 0.6.0', group: :development 10# Use Puma as the app server 11gem 'puma', '~> 3.11' 12# Use SCSS for stylesheets 13gem 'sass-rails', '~> 5.0' 14# Use Uglifier as compressor for JavaScript assets 15gem 'uglifier', '>= 1.3.0' 16# See https://github.com/rails/execjs#readme for more supported runtimes 17# gem 'mini_racer', platforms: :ruby 18 19# Use CoffeeScript for .coffee assets and views 20gem 'coffee-rails', '~> 4.2' 21# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 22gem 'turbolinks', '~> 5' 23# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 24gem 'jbuilder', '~> 2.5' 25# Use Redis adapter to run Action Cable in production 26# gem 'redis', '~> 4.0' 27# Use ActiveModel has_secure_password 28# gem 'bcrypt', '~> 3.1.7' 29 30# Use ActiveStorage variant 31# gem 'mini_magick', '~> 4.8' 32 33# Use Capistrano for deployment 34# gem 'capistrano-rails', group: :development 35 36# Reduces boot times through caching; required in config/boot.rb 37gem 'bootsnap', '>= 1.1.0', require: false 38 39gem 'bootstrap', '~> 4.3.1' 40gem 'mini_racer' 41gem 'jquery-rails' 42 43group :development, :test do 44 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 45 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 46end 47 48group :development do 49 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 50 gem 'web-console', '>= 3.3.0' 51 gem 'listen', '>= 3.0.5', '< 3.2' 52 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 53 gem 'spring' 54 gem 'spring-watcher-listen', '~> 2.0.0' 55end 56 57group :test do 58 # Adds support for Capybara system testing and selenium driver 59 gem 'capybara', '>= 2.15' 60 gem 'selenium-webdriver' 61 # Easy installation and use of chromedriver to run system tests with Chrome 62 gem 'chromedriver-helper' 63end 64 65# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 66gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 67gem 'pg', group: :production # この1行を追加 68gem 'kaminari', '~> 1.1.1' 69gem 'regexp_parser', '~> 1.5.1'

Gemfilelock

1GEM 2 remote: https://rubygems.org/ 3 specs: 4 actioncable (5.2.3) 5 actionpack (= 5.2.3) 6 nio4r (~> 2.0) 7 websocket-driver (>= 0.6.1) 8 actionmailer (5.2.3) 9 actionpack (= 5.2.3) 10 actionview (= 5.2.3) 11 activejob (= 5.2.3) 12 mail (~> 2.5, >= 2.5.4) 13 rails-dom-testing (~> 2.0) 14 actionpack (5.2.3) 15 actionview (= 5.2.3) 16 activesupport (= 5.2.3) 17 rack (~> 2.0) 18 rack-test (>= 0.6.3) 19 rails-dom-testing (~> 2.0) 20 rails-html-sanitizer (~> 1.0, >= 1.0.2) 21 actionview (5.2.3) 22 activesupport (= 5.2.3) 23 builder (~> 3.1) 24 erubi (~> 1.4) 25 rails-dom-testing (~> 2.0) 26 rails-html-sanitizer (~> 1.0, >= 1.0.3) 27 activejob (5.2.3) 28 activesupport (= 5.2.3) 29 globalid (>= 0.3.6) 30 activemodel (5.2.3) 31 activesupport (= 5.2.3) 32 activerecord (5.2.3) 33 activemodel (= 5.2.3) 34 activesupport (= 5.2.3) 35 arel (>= 9.0) 36 activestorage (5.2.3) 37 actionpack (= 5.2.3) 38 activerecord (= 5.2.3) 39 marcel (~> 0.3.1) 40 activesupport (5.2.3) 41 concurrent-ruby (~> 1.0, >= 1.0.2) 42 i18n (>= 0.7, < 2) 43 minitest (~> 5.1) 44 tzinfo (~> 1.1) 45 addressable (2.6.0) 46 public_suffix (>= 2.0.2, < 4.0) 47 archive-zip (0.12.0) 48 io-like (~> 0.3.0) 49 arel (9.0.0) 50 autoprefixer-rails (9.5.1.1) 51 execjs 52 bindex (0.7.0) 53 bootsnap (1.4.4) 54 msgpack (~> 1.0) 55 bootstrap (4.3.1) 56 autoprefixer-rails (>= 9.1.0) 57 popper_js (>= 1.14.3, < 2) 58 sassc-rails (>= 2.0.0) 59 builder (3.2.3) 60 byebug (11.0.1) 61 capybara (3.21.0) 62 addressable 63 mini_mime (>= 0.1.3) 64 nokogiri (~> 1.8) 65 rack (>= 1.6.0) 66 rack-test (>= 0.6.3) 67 regexp_parser (~> 1.5) 68 xpath (~> 3.2) 69 childprocess (1.0.1) 70 rake (< 13.0) 71 chromedriver-helper (2.1.1) 72 archive-zip (~> 0.10) 73 nokogiri (~> 1.8) 74 coffee-rails (4.2.2) 75 coffee-script (>= 2.2.0) 76 railties (>= 4.0.0) 77 coffee-script (2.4.1) 78 coffee-script-source 79 execjs 80 coffee-script-source (1.12.2) 81 concurrent-ruby (1.1.5) 82 crass (1.0.4) 83 erubi (1.8.0) 84 execjs (2.7.0) 85 ffi (1.11.1) 86 globalid (0.4.2) 87 activesupport (>= 4.2.0) 88 i18n (1.6.0) 89 concurrent-ruby (~> 1.0) 90 io-like (0.3.0) 91 jbuilder (2.9.1) 92 activesupport (>= 4.2.0) 93 jquery-rails (4.3.3) 94 rails-dom-testing (>= 1, < 3) 95 railties (>= 4.2.0) 96 thor (>= 0.14, < 2.0) 97 kaminari (1.1.1) 98 activesupport (>= 4.1.0) 99 kaminari-actionview (= 1.1.1) 100 kaminari-activerecord (= 1.1.1) 101 kaminari-core (= 1.1.1) 102 kaminari-actionview (1.1.1) 103 actionview 104 kaminari-core (= 1.1.1) 105 kaminari-activerecord (1.1.1) 106 activerecord 107 kaminari-core (= 1.1.1) 108 kaminari-core (1.1.1) 109 libv8 (7.3.492.27.1) 110 listen (3.1.5) 111 rb-fsevent (~> 0.9, >= 0.9.4) 112 rb-inotify (~> 0.9, >= 0.9.7) 113 ruby_dep (~> 1.2) 114 loofah (2.2.3) 115 crass (~> 1.0.2) 116 nokogiri (>= 1.5.9) 117 mail (2.7.1) 118 mini_mime (>= 0.1.1) 119 marcel (0.3.3) 120 mimemagic (~> 0.3.2) 121 method_source (0.9.2) 122 mimemagic (0.3.3) 123 mini_mime (1.0.1) 124 mini_portile2 (2.4.0) 125 mini_racer (0.2.6) 126 libv8 (>= 6.9.411) 127 minitest (5.11.3) 128 msgpack (1.2.10) 129 mysql2 (0.5.2) 130 nio4r (2.3.1) 131 nokogiri (1.10.3) 132 mini_portile2 (~> 2.4.0) 133 pg (1.1.4) 134 popper_js (1.14.5) 135 public_suffix (3.0.3) 136 puma (3.12.1) 137 rack (2.0.7) 138 rack-test (1.1.0) 139 rack (>= 1.0, < 3) 140 rails (5.2.3) 141 actioncable (= 5.2.3) 142 actionmailer (= 5.2.3) 143 actionpack (= 5.2.3) 144 actionview (= 5.2.3) 145 activejob (= 5.2.3) 146 activemodel (= 5.2.3) 147 activerecord (= 5.2.3) 148 activestorage (= 5.2.3) 149 activesupport (= 5.2.3) 150 bundler (>= 1.3.0) 151 railties (= 5.2.3) 152 sprockets-rails (>= 2.0.0) 153 rails-dom-testing (2.0.3) 154 activesupport (>= 4.2.0) 155 nokogiri (>= 1.6) 156 rails-html-sanitizer (1.0.4) 157 loofah (~> 2.2, >= 2.2.2) 158 railties (5.2.3) 159 actionpack (= 5.2.3) 160 activesupport (= 5.2.3) 161 method_source 162 rake (>= 0.8.7) 163 thor (>= 0.19.0, < 2.0) 164 rake (12.3.2) 165 rb-fsevent (0.10.3) 166 rb-inotify (0.10.0) 167 ffi (~> 1.0) 168 regexp_parser (1.5.1) 169 ruby_dep (1.5.0) 170 rubyzip (1.2.3) 171 sass (3.7.4) 172 sass-listen (~> 4.0.0) 173 sass-listen (4.0.0) 174 rb-fsevent (~> 0.9, >= 0.9.4) 175 rb-inotify (~> 0.9, >= 0.9.7) 176 sass-rails (5.0.7) 177 railties (>= 4.0.0, < 6) 178 sass (~> 3.1) 179 sprockets (>= 2.8, < 4.0) 180 sprockets-rails (>= 2.0, < 4.0) 181 tilt (>= 1.1, < 3) 182 sassc (2.0.1) 183 ffi (~> 1.9) 184 rake 185 sassc-rails (2.1.1) 186 railties (>= 4.0.0) 187 sassc (>= 2.0) 188 sprockets (> 3.0) 189 sprockets-rails 190 tilt 191 selenium-webdriver (3.142.3) 192 childprocess (>= 0.5, < 2.0) 193 rubyzip (~> 1.2, >= 1.2.2) 194 spring (2.0.2) 195 activesupport (>= 4.2) 196 spring-watcher-listen (2.0.1) 197 listen (>= 2.7, < 4.0) 198 spring (>= 1.2, < 3.0) 199 sprockets (3.7.2) 200 concurrent-ruby (~> 1.0) 201 rack (> 1, < 3) 202 sprockets-rails (3.2.1) 203 actionpack (>= 4.0) 204 activesupport (>= 4.0) 205 sprockets (>= 3.0.0) 206 thor (0.20.3) 207 thread_safe (0.3.6) 208 tilt (2.0.9) 209 turbolinks (5.2.0) 210 turbolinks-source (~> 5.2) 211 turbolinks-source (5.2.0) 212 tzinfo (1.2.5) 213 thread_safe (~> 0.1) 214 uglifier (4.1.20) 215 execjs (>= 0.3.0, < 3) 216 web-console (3.7.0) 217 actionview (>= 5.0) 218 activemodel (>= 5.0) 219 bindex (>= 0.4.0) 220 railties (>= 5.0) 221 websocket-driver (0.7.0) 222 websocket-extensions (>= 0.1.0) 223 websocket-extensions (0.1.3) 224 xpath (3.2.0) 225 nokogiri (~> 1.8) 226 227PLATFORMS 228 ruby 229 230DEPENDENCIES 231 bootsnap (>= 1.1.0) 232 bootstrap (~> 4.3.1) 233 byebug 234 capybara (>= 2.15) 235 chromedriver-helper 236 coffee-rails (~> 4.2) 237 jbuilder (~> 2.5) 238 jquery-rails 239 kaminari (~> 1.1.1) 240 listen (>= 3.0.5, < 3.2) 241 mini_racer 242 mysql2 (>= 0.4.4, < 0.6.0) 243 pg 244 puma (~> 3.11) 245 rails (~> 5.2.3) 246 regexp_parser (~> 1.5.1) 247 sass-rails (~> 5.0) 248 selenium-webdriver 249 spring 250 spring-watcher-listen (~> 2.0.0) 251 turbolinks (~> 5) 252 tzinfo-data 253 uglifier (>= 1.3.0) 254 web-console (>= 3.3.0) 255 256RUBY VERSION 257 ruby 2.6.3p62 258 259BUNDLED WITH 260 1.17.2 261

ruby,rails version

ruby 2.6.3
rails 5.2.3

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

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

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

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

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

guest

回答1

0

自己解決

docker-compose buildしたら直りました

投稿2019/05/25 06:18

yusuke9814

総合スコア18

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問