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

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

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

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

Q&A

1回答

1208閲覧

rails new で正常生成されない

kimaiio

総合スコア8

Ruby on Rails

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

0グッド

0クリップ

投稿2020/04/21 15:40

rails new AppName を実行して新しいアプリを作成したときにmigrateフォルダーなどが生成されません。
ターミナルにもいつもと違う文言が表示されてしまいます。
詳しい方おしえていただけると幸いです
OSはWindows10です

※一部いつもと同じ動作の文章は文字制限があるので削除しています

PS C:\Users\UserName\Desktop\RailsProjects> rails new AppName create create README.md create Rakefile create .ruby-version create config.ru create .gitignore create Gemfile run git init from "." Initialized empty Git repository in C:/Users/UserName/Desktop/RailsProjects/AppName/.git/ create package.json create app create app/assets/config/manifest.js create app/assets/stylesheets/application.css create bin/rails create bin/rake create bin/setup create bin/yarn create config create config/routes.rb create config/application.rb create config/environment.rb create config/cable.yml create config/puma.rb create config/storage.yml create config/environments create config/environments/development.rb create config/environments/production.rb create config/environments/test.rb create config/initializers create config/initializers/application_controller_renderer.rb create config/initializers/assets.rb create config/initializers/backtrace_silencers.rb create config/initializers/content_security_policy.rb create config/initializers/cookies_serializer.rb create config/initializers/cors.rb create config/initializers/filter_parameter_logging.rb create config/initializers/inflections.rb create config/initializers/mime_types.rb create config/initializers/new_framework_defaults_6_0.rb create config/initializers/wrap_parameters.rb create config/locales create config/locales/en.yml create config/master.key append .gitignore create config/boot.rb create config/database.yml create db create db/seeds.rb create lib create lib/tasks create lib/tasks/.keep create lib/assets create lib/assets/.keep create log create log/.keep create public create public/404.html create public/422.html create public/500.html create public/apple-touch-icon-precomposed.png create public/apple-touch-icon.png create public/favicon.ico create public/robots.txt create tmp create tmp/.keep create tmp/pids create tmp/pids/.keep create tmp/cache create tmp/cache/assets create vendor create vendor/.keep create test/fixtures create test/fixtures/.keep create test/fixtures/files create test/fixtures/files/.keep create test/controllers create test/controllers/.keep create test/mailers create test/mailers/.keep create test/models create test/models/.keep create test/helpers create test/helpers/.keep create test/integration create test/integration/.keep create test/channels/application_cable/connection_test.rb create test/test_helper.rb create test/system create test/system/.keep create test/application_system_test_case.rb create storage create storage/.keep create tmp/storage create tmp/storage/.keep remove config/initializers/cors.rb remove config/initializers/new_framework_defaults_6_0.rb run bundle install Fetching gem metadata from https://rubygems.org/............. Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 13.0.1 Installing rake 13.0.1 Using concurrent-ruby 1.1.6 Using i18n 1.8.2 Fetching minitest 5.14.0 Installing minitest 5.14.0 Using thread_safe 0.3.6 Using tzinfo 1.2.7 Using zeitwerk 2.3.0 Using activesupport 6.0.2.2 Using builder 3.2.4 Using erubi 1.9.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.9 (x64-mingw32) 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 6.0.2.2 Using rack 2.2.2 Using rack-test 1.1.0 Using actionpack 6.0.2.2 Using nio4r 2.5.2 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.2.2 Using globalid 0.4.2 Using activejob 6.0.2.2 Using activemodel 6.0.2.2 Using activerecord 6.0.2.2 Using mimemagic 0.3.4 Using marcel 0.3.3 Using activestorage 6.0.2.2 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.2.2 Using actionmailer 6.0.2.2 Using actiontext 6.0.2.2 Fetching public_suffix 4.0.4 Installing public_suffix 4.0.4 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching bindex 0.8.1 Installing bindex 0.8.1 with native extensions Fetching msgpack 1.3.3 (x64-mingw32) Installing msgpack 1.3.3 (x64-mingw32) Fetching bootsnap 1.4.6 Installing bootsnap 1.4.6 with native extensions Using bundler 1.17.2 Fetching byebug 11.1.2 Installing byebug 11.1.2 with native extensions Fetching regexp_parser 1.7.0 Installing regexp_parser 1.7.0 Fetching xpath 3.2.0 Installing xpath 3.2.0 Fetching capybara 3.32.1 Installing capybara 3.32.1 Fetching childprocess 3.0.0 Installing childprocess 3.0.0 Fetching ffi 1.12.2 (x64-mingw32) Installing ffi 1.12.2 (x64-mingw32) Fetching jbuilder 2.10.0 Installing jbuilder 2.10.0 Using method_source 1.0.0 Fetching puma 4.3.3 Installing puma 4.3.3 with native extensions 警告: 公開キーリングが見つかりません。'pacman-key --init' を実行済みですか? エラー: mingw32: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: mingw64: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: msys: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: データベース 'mingw32' は無効です (無効または破損したデータベース (PGP 鍵)) エラー: データベース 'mingw64' は無効です (無効または破損したデータベース (PGP 鍵)) エラー: データベース 'msys' は無効です (無効または破損したデータベース (PGP 鍵)) Fetching rack-proxy 0.6.5 Installing rack-proxy 0.6.5 Using thor 1.0.1 Using railties 6.0.2.2 Using sprockets 4.0.0 Using sprockets-rails 3.2.1 Using rails 6.0.2.2 Fetching rubyzip 2.3.0 Installing rubyzip 2.3.0 Fetching sassc 2.3.0 (x64-mingw32) Installing sassc 2.3.0 (x64-mingw32) Fetching tilt 2.0.10 Installing tilt 2.0.10 Fetching sassc-rails 2.1.2 Installing sassc-rails 2.1.2 Fetching sass-rails 6.0.0 Installing sass-rails 6.0.0 Fetching selenium-webdriver 3.142.7 Installing selenium-webdriver 3.142.7 Fetching sqlite3 1.4.2 Installing sqlite3 1.4.2 with native extensions 警告: 公開キーリングが見つかりません。'pacman-key --init' を実行済みですか? エラー: mingw32: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: mingw64: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: msys: キー "AD351C50AE085775EB59333B5F92EFC1A47D45A1" は不明です エラー: キーリングに書き込みできません エラー: データベース 'mingw32' は無効です (無効または破損したデータベース (PGP 鍵)) エラー: データベース 'mingw64' は無効です (無効または破損したデータベース (PGP 鍵)) エラー: データベース 'msys' は無効です (無効または破損したデータベース (PGP 鍵)) Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2/ext/sqlite3 C:/Ruby26-x64/bin/ruby.exe -I C:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20200422-18076-1xxvhpu.rb extconf.rb checking for sqlite3.h... no sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first. *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby26-x64/bin/$(RUBY_BASE_NAME) --with-sqlcipher --without-sqlcipher --with-sqlite3-config --without-sqlite3-config --with-pkg-config --without-pkg-config --with-sqlcipher --without-sqlcipher --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/sqlite3-1.4.2 for inspection. Results logged to C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/sqlite3-1.4.2/gem_make.out An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/' succeeds before bundling. In Gemfile: sqlite3 run bundle binstubs bundler Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources listed in your Gemfile. rails webpacker:install Could not find gem 'sqlite3 (~> 1.4) x64-mingw32' in any of the gem sources listed in your Gemfile. Run bundle instal to install missing gems.

イメージ説明

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

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

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

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

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

guest

回答1

0

ruby

1 rails _5.2.1_ new Appname -d mysql

後ろにこのようにデータベースを指定すると出来ると思われます。

投稿2020/04/22 07:01

chocolate24

総合スコア125

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

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

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

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問