こういう系のエラーが出ました(参考サイト様サンプル)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Errno::EPROTO: Protocol error @ dir_s_mkdir - /opt/cli/vendor/bundle /ruby /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:252:in `fu_mkdir' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:226:in `block (2 levels) in mkdir_p' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:224:in `reverse_each' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:224:in `block in mkdir_p' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:210:in `each' /home/vagrant/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/fileutils.rb:210:in `mkdir_p' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler.rb:310:in `mkdir_p' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/installer.rb:332:in `create_bundle_path' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/installer.rb:54:in `run' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/installer.rb:18:in `install' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/cli/install.rb:80:in `run' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/cli/package.rb:32:in `install' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/cli/package.rb:16:in `run' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/cli.rb:258:in `package' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/cli.rb:10:in `start' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/bin/bundle:20:in `block in <top (required)>' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors' /home/vagrant/.rvm/gems/ruby-2.2.1/gems/bundler-1.9.4/bin/bundle:18:in `<top (required)>' /home/vagrant/.rvm/gems/ruby-2.2.1/bin/bundle:23:in `load' /home/vagrant/.rvm/gems/ruby-2.2.1/bin/bundle:23:in `<main>' /home/vagrant/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval' /home/vagrant/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>' |
そのままサイトを参考に以下を実行
1 |
$ bundle install --path vendor/bundle |
そうしたら別のエラーになり、「gem install ffi -v ‘1.9.10’」と書いてあったのでそのまま実行してみました。
1 |
$ gem install ffi -v '1.9.10' |
そうしたらうまくいきました。
いまはまだよくわかりませんがなおってよかったです。
いつかわかったらついきします。おやすみなさい。
参考サイト様
⇒https://github.com/bundler/bundler/issues/3581