번들러가 actionpack-1.4.0.gem을 찾는 이유를 알 수 없지만 내 번들 업데이트 명령이 종료 될 수 있습니다. 그것은이 경로에 권한 거부로 인해 실패 그래서 여기신비한 권한이 거부 된 번들러 업데이트가 실패했습니다.
은, (... 본인이 아는)
$ bundle update
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using Ascii85 (1.0.0)
/opt/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:145:in `initialize': Permission denied - /opt/local/lib/ruby/gems/1.8/cache/actionpack-1.4.0.gem (Errno::EACCES)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:145:in `open'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:145:in `download'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:255:in `download_gem_from_uri'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:72:in `fetch'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:45:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in `install'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/cli.rb:275:in `update'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:in `start'
from /opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.10/bin/bundle:13
from /opt/local/bin/bundle:19:in `load'
from /opt/local/bin/bundle:19
OK 관련된 모든 성적 증명서, 그러나 어떤 파일이 없습니다 :
/mydev/ElectionManager(export-work)> ls /opt/local/lib/ruby/gems/1.8/cache/actionpack-1.4.0.gem
ls: /opt/local/lib/ruby/gems/1.8/cache/actionpack-1.4.0.gem: No such file or directory
자, 환경을 살펴 보겠습니다. 거기에 뭔가 비린내가 있습니까?
/mydev/ElectionManager(export-work)> env
TERM_PROGRAM=Apple_Terminal
GEM_HOME=/opt/local/lib/ruby/gems/1.8
TERM=xterm-color
SHELL=/bin/bash
TMPDIR=/var/folders/BF/BFIqAzICGVuMEvQQwzRkvE+++TI/-Tmp-/
Apple_PubSub_Socket_Render=/tmp/launch-9H2vLV/Render
TERM_PROGRAM_VERSION=273.1
USER=pitosalas
COMMAND_MODE=unix2003
SSH_AUTH_SOCK=/tmp/launch-4WmMHp/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin/
PWD=/mydev/ElectionManager
EDITOR=mate -w
LANG=en_US.UTF-8
PS1=\w$(__git_ps1 "(%s)")>
SHLVL=1
HOME=/Users/pitosalas
LOGNAME=pitosalas
DISPLAY=/tmp/launch-p24Csr/org.x:0
OLDPWD=/Users/pitosalas
_=/usr/bin/env
아무것도 없습니다. actionpack-1 사상도 언급되고있는 경우의보고 모든 코드를 살펴 보자 :
/mydev/ElectionManager(export-work)> grep -r -i "actionpack-1" .
/mydev/ElectionManager(export-work)>
그것을 언급 아니에요 아니. 그리고 Gemfile에는 무엇이 있습니까?
$ cat Gemfile
source :gemcutter
#gem 'rails', "2.3.8"
gem 'rails'
gem "sqlite3-ruby", "1.2.5", :require => "sqlite3"
gem "authlogic"
gem "prawn", '>= 0.7.2'
gem 'will_paginate', '~> 2.3.11'
gem 'tpitale-constant_cache', '>= 0.1.2', :require => 'constant_cache'
gem 'rubyzip', '>= 0.9.4', :require => 'zip/zip'
gem 'redgreen', '>=1.2.2'
gem 'searchlogic', '>=2.4.14'
gem 'cancan'
gem 'fastercsv'
group :development do
end
group :test do
gem 'thoughtbot-shoulda', '>=2.10.2', :require => 'shoulda'
gem 'machinist'
gem 'faker'
gem 'mocha'
gem 'pdf-reader'
gem 'awesome_print'
gem 'turn'
gem 'rspec'
end
group 'cucumber' do
gem 'machinist'
gem 'faker'
gem 'cucumber-rails', '>=0.3.0', :require => false
gem 'database_cleaner', '>=0.5.0', :require => false
gem 'webrat', '>=0.7.0', :require => false
gem 'pickle', :require => false
end
group :production do
end
괜찮 았어. 보석은 레일 보석에 대해 무엇을 알고 있다고 생각하니?
/mydev/ElectionManager(export-work)> gem list rails
* LOCAL 보석 *
rails (3.0.4, 2.3.8, 2.3.5, 2.3.4, 2.2.2)
rails_best_practices (0.6.4, 0.3.26, 0.3.19, 0.3.16)
/mydev/ElectionManager(export-work)>
다음을 시도하기 전에 Gemfile.lock을 삭제했습니다 ... 번들에 대한 지침이 sudoing에 대해 격렬하게 경고합니다 ... – pitosalas
번들에 대한 지침은 sudoing에 대해 격렬하게 경고하므로 잘 모르겠습니다. 문제는 왜 bundler가 actionpack-1.x를 찾고 있는지입니다. 나는 그것을 참조하는 것이 아무것도 없다. – pitosalas
그렇기 때문에 권한 문제가있는 경우 bundler에 대한 특정 경로를 제공하는 것이 좋습니다. './bundle/config' 파일을 가지고 있습니까? 그 내용은 무엇입니까? 또한'번들 업데이트 '대신'번들 설치'를 시도해 보았습니다. – lebreeze