Q&A
###前提・実現したいこと
- 使用Pc Mac
- 開発環境 ローカル Homebrewからrbenv使用
- テキストエディター Atom
ドットインストール ruby on railsのrails new myappのコマンドで下記のエラーが発生しました。
このような場合どのような手順を踏めばよろしいでしょうか?
###発生している問題・エラーメッセージ
Errno::EACCES:
1
/Users/xxxxx/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-16/2.2.0
-static/byebug-9.0.6
An error occurred while installing byebug (9.0.6), and Bundler cannot continue.
Make sure that gem install byebug -v '9.0.6'
succeeds before bundling.
run bundle exec spring binstub --all
bundler: command not found: spring
bundle installをして下さいと出たので
```Install missing gem executables with bundle install
Install missing gem executables with bundle install
xxxxxxMacBook-Pro:~ xxxxx$ bundle install
Could not locate Gemfile
Gemfile
1エラーメッセージ 2 3 4###該当のソースコード
xxxxxxMacBook-Pro:~ xxxxxxx$ gem install rails
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /Users/xxxxxxx/.rbenv/versions/2.2.2/lib/ruby/gems/2.
2.0/gems/rails-5.0.1/README.md
xxxxxxxMacBook-Pro:~ xxxxxxx$ gem install byebug -v '9.0.6'
Building native extensions. This could take a while...
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /Users/xxxxxxx/.rbenv/versions/2.2.2/lib/ruby/gems/2
.2.0/extensions/x86_64-darwin-16/2.2.0-static/byebug-9.0.6
ここにご自身が実行したソースコードを書いてください
###試したこと bundle install と bundle updateを実行するとCould not locate Gemfile が赤字で表示されます。。 ###補足情報(言語/FW/ツール等のバージョンなど) より詳細な情報
回答1件
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
2017/02/27 15:38