MacでRailsの勉強をしております。
以下のコマンドを入力し、アプリケーションを作成したところエラーがでました。
Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/S.TANAKA/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/bindex-0.5.0 An error occurred while installing bindex (0.5.0), and Bundler cannot continue. Make sure that `gem install bindex -v '0.5.0'` succeeds before bundling. run bundle exec spring binstub --all bundler: command not found: spring Install missing gem executables with `bundle install`
また、bundle install
とコマンドを入力すると以下のエラーが出ます。
SATOSHI-no-MacBook-Air:myapp S.TANAKA$ bundle install The 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 x86-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`. Fetching gem metadata from https://rubygems.org/.......... Fetching version metadata from https://rubygems.org/.. Fetching dependency metadata from https://rubygems.org/. Resolving dependencies... Using rake 12.0.0 Using concurrent-ruby 1.0.5 Using i18n 0.8.1 Using minitest 5.10.1 Using thread_safe 0.3.6 Using builder 3.2.3 Using erubis 2.7.0 Using mini_portile2 2.1.0 Using rack 2.0.1 Using nio4r 2.0.0 Using websocket-extensions 0.1.2 Using mime-types-data 3.2016.0521 Using arel 7.1.4 Installing bindex 0.5.0 with native extensions Using bundler 1.14.6 Installing byebug 9.0.6 with native extensions Using coffee-script-source 1.12.2 Using execjs 2.7.0 Using method_source 0.8.2 Using thor 0.19.4 Installing ffi 1.9.18 with native extensions Using multi_json 1.12.1 Using rb-fsevent 0.9.8 Installing puma 3.8.2 with native extensions Using sass 3.4.23 Using tilt 2.0.7 Installing sqlite3 1.3.13 with native extensions Using turbolinks-source 5.0.0 Using tzinfo 1.2.3 Using nokogiri 1.7.1 Using rack-test 0.6.3 Using sprockets 3.7.1 Using websocket-driver 0.6.5 Using mime-types 3.1 Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/S.TANAKA/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/bindex-0.5.0 An error occurred while installing bindex (0.5.0), and Bundler cannot continue. Make sure that `gem install bindex -v '0.5.0'` succeeds before bundling. SATOSHI-no-MacBook-Air:myapp S.TANAKA$
こちらの原因と解決策を教えていただけると幸いです。
何卒よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。