いつもお世話になっております。いつも勉強させてもらっています。
ググっても一日中何も解決できなっかたので、質問させてもらいます。
$ bundle exec rails new ~ でエラーが出ます。
rubyのバージョンが違うのでしょうか?
ec2-user:/environment $ gem install bundler/environment $ mkdir project
Fetching: bundler-1.16.2.gem (100%)
Successfully installed bundler-1.16.2
Parsing documentation for bundler-1.16.2
Installing ri documentation for bundler-1.16.2
Done installing documentation for bundler after 4 seconds
1 gem installed
ec2-user:
ec2-user:/environment $ cd project/environment/project $ bundle init
ec2-user:
Writing new Gemfile to /home/ec2-user/environment/project/Gemfile
ec2-user:/environment/project $ bundle install --path vendor/bundle/environment/project $ bundle exec rails new NBA_app
The Gemfile specifies no dependencies
Resolving dependencies...
Bundle complete! 0 Gemfile dependencies, 1 gem now installed.
Bundled gems are installed into ./vendor/bundle
ec2-user:
/usr/local/rvm/gems/ruby-2.4.1/gems/bundler-1.16.2/lib/bundler/rubygems_integration.rb:462:in block in replace_bin_path': can't find executable rails for gem railties. railties is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception) from /usr/local/rvm/gems/ruby-2.4.1/gems/bundler-1.16.2/lib/bundler/rubygems_integration.rb:482:in
block in replace_bin_path'
from /usr/local/rvm/rubies/ruby-2.4.1/bin/rails:23:in <main>' from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in
eval'
from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
まだプログラミングの勉強をはじめたばかりで右も左もわかりませんが、一生懸命独学中です。
何か一つサイトやアプリを作りきりたいので、こちらの解決策がありましたら
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/27 00:49 編集