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

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

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

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Bash on Ubuntu on Windows

Bash on Ubuntu on Windowsは、Windows Subsystem for Linux(WSL)の非推奨の名称。Windows10およびWindows Server上でLinuxのバイナリ実行ファイルをネイティブ実行するための互換レイヤーです。

Ruby

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

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Ruby on Rails

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

Q&A

解決済

1回答

1382閲覧

【Ruby on rails】環境構築にて

退会済みユーザー

退会済みユーザー

総合スコア0

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

Bash on Ubuntu on Windows

Bash on Ubuntu on Windowsは、Windows Subsystem for Linux(WSL)の非推奨の名称。Windows10およびWindows Server上でLinuxのバイナリ実行ファイルをネイティブ実行するための互換レイヤーです。

Ruby

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

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Ruby on Rails

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

0グッド

0クリップ

投稿2021/04/07 16:02

前提・実現したいこと

railsの環境構築中にエラーが発生しました。
エラー内容的にbundle installは行ってインストールできれば,エラーが解消されると思ったのですが,解消されず。
色々調べたのですが,解消できなかったので質問いたしました。

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

xxx@xxxxx:~/Ruby/test_app$ rails s >>> Could not find mini_portile2-2.5.0 in any of the sources Run `bundle install` to install missing gems.

該当のソースコード

ruby

1yossi@DESKTOP-4D9ORO1:~/Ruby/test_app$ bundle install 2The 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 3x86-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`. 4Using rake 13.0.3 5Using concurrent-ruby 1.1.8 6Using i18n 1.8.10 7Using minitest 5.14.4 8Using thread_safe 0.3.6 9Using tzinfo 1.2.9 10Using activesupport 5.2.5 11Using builder 3.2.4 12Using erubi 1.10.0 13** Using mini_portile2 2.5.0 ** 14Using racc 1.5.2 15Using nokogiri 1.11.2 (x86_64-linux) 16Using rails-dom-testing 2.0.3 17Using crass 1.0.6 18Using loofah 2.9.0 19Using rails-html-sanitizer 1.3.0 20Using actionview 5.2.5 21Using rack 2.2.3 22Using rack-test 1.1.0 23Using actionpack 5.2.5 24Using nio4r 2.5.7 25Using websocket-extensions 0.1.5 26Using websocket-driver 0.7.3 27Using actioncable 5.2.5 28Using globalid 0.4.2 29Using activejob 5.2.5 30Using mini_mime 1.1.0 31Using mail 2.7.1 32Using actionmailer 5.2.5 33Using activemodel 5.2.5 34Using arel 9.0.0 35Using activerecord 5.2.5 36Using marcel 1.0.1 37Using activestorage 5.2.5 38Using public_suffix 4.0.6 39Using addressable 2.7.0 40Using io-like 0.3.1 41Using archive-zip 0.12.0 42Using bindex 0.8.1 43Using msgpack 1.4.2 44Using bootsnap 1.7.3 45Using bundler 2.1.2 46Using byebug 11.1.3 47Using regexp_parser 2.1.1 48Using xpath 3.2.0 49Using capybara 3.35.3 50Using childprocess 3.0.0 51Using chromedriver-helper 2.1.1 52Using coffee-script-source 1.12.2 53Using execjs 2.7.0 54Using coffee-script 2.4.1 55Using method_source 1.0.0 56Using thor 1.1.0 57Using railties 5.2.5 58Using coffee-rails 4.2.2 59Using ffi 1.15.0 60Using jbuilder 2.11.2 61Using rb-fsevent 0.10.4 62Using rb-inotify 0.10.1 63Using ruby_dep 1.5.0 64Using listen 3.1.5 65Using puma 3.12.6 66Using sprockets 3.7.2 67Using sprockets-rails 3.2.2 68Using rails 5.2.5 69Using rubyzip 2.3.0 70Using sass-listen 4.0.0 71Using sass 3.7.4 72Using tilt 2.0.10 73Using sass-rails 5.1.0 74Using selenium-webdriver 3.142.7 75Using spring 2.1.1 76Using spring-watcher-listen 2.0.1 77Using sqlite3 1.4.2 78Using turbolinks-source 5.2.0 79Using turbolinks 5.2.1 80Using uglifier 4.2.0 81Using web-console 3.7.0 82Bundle complete! 19 Gemfile dependencies, 78 gems now installed. 83Use `bundle info [gemname]` to see where a bundled gem is installed. 84

gemfile

source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.7.0' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 5.2.2' # Use sqlite3 as the database for Active Record gem 'sqlite3' # Use Puma as the app server gem 'puma', '~> 3.11' # Use SCSS for stylesheets gem 'sass-rails', '~> 5.0' # Use Uglifier as compressor for JavaScript assets gem 'uglifier', '>= 1.3.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'mini_racer', platforms: :ruby # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.2' # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks gem 'turbolinks', '~> 5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.5' # Use Redis adapter to run Action Cable in production # gem 'redis', '~> 4.0' # Use ActiveModel has_secure_password # gem 'bcrypt', '~> 3.1.7' # Use ActiveStorage variant # gem 'mini_magick', '~> 4.8' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development # Reduces boot times through caching; required in config/boot.rb gem 'bootsnap', '>= 1.1.0', require: false group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end group :development do # Access an interactive console on exception pages or by calling 'console' anywhere in the code. gem 'web-console', '>= 3.3.0' gem 'listen', '>= 3.0.5', '< 3.2' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' # Easy installation and use of chromedriver to run system tests with Chrome gem 'chromedriver-helper' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] #gem 'mini_portile', '0.7.0' gem 'mini_portile2', '~> 2.5.0'

試したこと

gemfileにmini_portile2の追加
bundle install

補足情報(FW/ツールのバージョンなど)

windows10 pro
Ubuntu 20
ruby 2.7.0
Homebrew 3.0.11

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

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

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

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

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

m.ts10806

2021/04/08 00:23

何を参考にどこまで進んでいるのでしょうか
guest

回答1

0

ベストアンサー

気になる点が2つあります。

  • rails sを行うには、Rails環境が必要です。rails newは行っていますか?
  • Bundlerのインストール先によっては、railsコマンドをbundle exec railsときどうする必要があります。

投稿2021/04/07 23:01

maisumakun

総合スコア145183

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

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

退会済みユーザー

退会済みユーザー

2021/04/08 01:32

ご回答くださりありがとうございます。 bundle exec rails s を行ってみたところ,無事動きました!!! ありがとうございまました!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問