2
bundle install
명령을 실행하려고하는데이 오류가 발생합니다. 다양한 읽기/쓰기 권한 변경과 같은 솔루션을 시도해 보았습니다. 심지어 번들러를 제거하고 다시 설치했습니다.번들 설치 실패 (권한 거부 @ rb_sysopen)
나는 유사한 질문이 여기에 있다는 것을 알고있다. (link) 그의 예에서, 번들러는 실제로 물건을 가져 와서 죽기 전에 보석을 통과하기 시작했다. 내 경우에, 그것은 그냥 떨어져 죽는다.
어떤 통찰력이라도 대단히 감사하겠습니다!
[[email protected] labels]$ bundle install
Error details
Errno::EACCES: Permission denied @ rb_sysopen - /home/wbrugato/.bundle/cache/compact_index/rubygems.org.443.29b0360b937aa4d161703e6160654e47/versions
/usr/share/ruby/fileutils.rb:1393:in `initialize'
/usr/share/ruby/fileutils.rb:1393:in `open'
/usr/share/ruby/fileutils.rb:1393:in `block in copy_file'
/usr/share/ruby/fileutils.rb:1392:in `open'
/usr/share/ruby/fileutils.rb:1392:in `copy_file'
/usr/share/ruby/fileutils.rb:1360:in `copy'
/usr/share/ruby/fileutils.rb:472:in `block in copy_entry'
/usr/share/ruby/fileutils.rb:1498:in `wrap_traverse'
/usr/share/ruby/fileutils.rb:469:in `copy_entry'
/usr/share/ruby/fileutils.rb:530:in `rescue in block in mv'
/usr/share/ruby/fileutils.rb:527:in `block in mv'
/usr/share/ruby/fileutils.rb:1571:in `block in fu_each_src_dest'
/usr/share/ruby/fileutils.rb:1587:in `fu_each_src_dest0'
/usr/share/ruby/fileutils.rb:1569:in `fu_each_src_dest'
/usr/share/ruby/fileutils.rb:517:in `mv'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:55:in `block in update'
/usr/share/ruby/tmpdir.rb:89:in `mktmpdir'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb:29:in `update'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:65:in `update'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb:56:in `update_and_parse_checksums!'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/fetcher/compact_index.rb:67:in `available?'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/fetcher/compact_index.rb:15:in `call'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/fetcher/compact_index.rb:15:in `block in compact_index_request'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/fetcher.rb:157:in `use_api'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:332:in `block in api_fetchers'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:332:in `select'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:332:in `api_fetchers'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:337:in `block in remote_specs'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/index.rb:10:in `build'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:336:in `remote_specs'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/source/rubygems.rb:83:in `specs'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/lazy_specification.rb:61:in `__materialize__'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/spec_set.rb:91:in `block in materialize'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/spec_set.rb:88:in `map!'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/spec_set.rb:88:in `materialize'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/definition.rb:174:in `specs'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/definition.rb:162:in `resolve_remotely!'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/installer.rb:225:in `resolve_if_need'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/installer.rb:78:in `run'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/installer.rb:24:in `install'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/install.rb:71:in `run'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:189:in `install'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/home/wbrugato/.gem/ruby/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
./bin/bundle:3:in `load'
./bin/bundle:3:in `<main>'
Environment
Bundler 1.13.7
Rubygems 2.6.8
Ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
GEM_HOME /home/wbrugato/.gem/ruby/2.3.0
GEM_PATH /home/wbrugato/.gem/ruby/2.3.0:/usr/share/gems:/usr/local/share/gems
Git 2.9.3
Bundler settings
gemfile
Set via BUNDLE_GEMFILE: "/home/wbrugato/RubymineProjects/labels/Gemfile"
Ah! 그것은 작동합니다. 캐시로 인해이 문제가 발생하는 이유는 무엇입니까? – wbrugato
번들 설치가 다른 사용자 (어쩌면 루트)로 실행되고 파일을 소유 할 수 있습니다. 캐시를 살펴보면 권한이 표시됩니다. – Doon
@Doon, 감사합니다. 그건 의미가 있습니다. 어떤 시점에서'sudo bundle install '을 실행했을 수도 있습니다. 이것이 bundler가 그렇게하는 것에 대해 경고하는 이유입니다. – wbrugato