2011-06-12 2 views
9

여기 git push heroku master응용 프로그램을 heroku로 푸시하는 동안 오류가 발생했습니다 (기본 확장 오류가있는 linecache19 (0.5.12) 설치). 도움이 필요합니다!

-----> Heroku receiving push 
-----> Rails app detected 
-----> Detected Rails is not set to serve static_assets 
     Installing rails3_serve_static_assets... done 
-----> Configure Rails 3 to disable x-sendfile 
     Installing rails3_disable_x_sendfile... done 
-----> Configure Rails to log to stdout 
     Installing rails_log_stdout... done 
-----> Gemfile detected, running Bundler version 1.0.7 
     Unresolved dependencies detected; Installing... 
     Using --without development:test 
     Fetching source index for http://rubygems.org/ 
     Installing rake (0.9.0) 
     Installing abstract (1.0.0) 
     Installing activesupport (3.0.1) 
     Installing builder (2.1.2) 
     Installing i18n (0.4.2) 
     Installing activemodel (3.0.1) 
     Installing erubis (2.6.6) 
     Installing rack (1.2.3) 
     Installing rack-mount (0.6.14) 
     Installing rack-test (0.5.7) 
     Installing tzinfo (0.3.27) 
     Installing actionpack (3.0.1) 
     Installing mime-types (1.16) 
     Installing polyglot (0.3.1) 
     Installing treetop (1.4.9) 
     Installing mail (2.2.19) 
     Installing actionmailer (3.0.1) 
     Installing arel (1.0.1) 
     Installing activerecord (3.0.1) 
     Installing activeresource (3.0.1) 
     Installing archive-tar-minitar (0.5.2) 
     Installing columnize (0.3.2) 
     Installing ruby_core_source (0.1.5) 
     Installing linecache19 (0.5.12) with native extensions /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) 

     /usr/ruby1.9.2/bin/ruby extconf.rb 
     checking for vm_core.h... no 
     checking for vm_core.h... no 
     Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz 
     Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz 
     *** extconf.rb failed *** 
     Could not create Makefile due to some reason, probably lack of 
     necessary libraries and/or headers. Check the mkmf.log file for more 
     details. You may need configuration options. 

     Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=/usr/ruby1.9.2/bin/ruby 
     --with-ruby-dir 
     --without-ruby-dir 
     --with-ruby-include 
     --without-ruby-include=${ruby-dir}/include 
     --with-ruby-lib 
     --without-ruby-lib=${ruby-dir}/lib 
     /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:243:in `mkdir': Permission denied - /usr/ruby1.9.2/include/ruby-1.9.1/ruby-1.9.2-p180 (Errno::EACCES) 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:243:in `fu_mkdir' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:217:in `block (2 levels) in mkdir_p' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:215:in `reverse_each' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:215:in `block in mkdir_p' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:201:in `each' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/fileutils.rb:201:in `mkdir_p' 
     from /disk1/tmp/build_2bk91kj0jaqmb/.bundle/gems/ruby/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:59:in `block in create_makefile_with_core' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/tempfile.rb:320:in `open' 
     from /disk1/tmp/build_2bk91kj0jaqmb/.bundle/gems/ruby/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:51:in `create_makefile_with_core' 
     from extconf.rb:19:in `<main>' 


     Gem files will remain installed in /disk1/tmp/build_2bk91kj0jaqmb/.bundle/gems/ruby/1.9.1/gems/linecache19-0.5.12 for inspection. 
     Results logged to /disk1/tmp/build_2bk91kj0jaqmb/.bundle/gems/ruby/1.9.1/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:446:in `each' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions' 
     from /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `block in run' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `block in each' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start' 
     from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/bin/bundle:13:in `<top (required)>' 
     from /usr/ruby1.9.2/bin/bundle:19:in `load' 
     from /usr/ruby1.9.2/bin/bundle:19:in `<main>' 
     FAILED: http://devcenter.heroku.com/articles/bundler 
!  Heroku push rejected, failed to install gems via Bundler 

To [email protected]:young-planet-247.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:young-planet-247.git' 

를 사용하여 Heroku가 내 응용 프로그램을 배포하는 동안 나는이 오류를 얻고있다 나의 보석 파일

source 'http://rubygems.org' 

gem 'rails', '3.0.1' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3',:group => :development 

##gem 'ruby-debug19', :require => 'ruby-debug',:group => :development 

group :development do 
    gem 'annotate-models', '1.0.4' 
end 

group :development, :test do if RUBY_VERSION =~ /1.9/ gem 'ruby-debug19' else gem 'ruby-debug' end end 

# Use unicorn as the web server 
# gem 'unicorn' 

# Deploy with Capistrano 
# gem 'capistrano' 

# To use debugger 
# gem 'ruby-debug' 

# Bundle the extra gems: 
# gem 'bj' 
# gem 'nokogiri' 
# gem 'sqlite3-ruby', :require => 'sqlite3' 
# gem 'aws-s3', :require => 'aws/s3' 

# Bundle gems for the local environment. Make sure to 
# put test-only gems in this group so their generators 
# and rake tasks are available in development mode: 
# group :development, :test do 
# gem 'webrat' 
# end 

GemFile.lock

GEM 
    remote: http://rubygems.org/ 
    specs: 
    abstract (1.0.0) 
    actionmailer (3.0.1) 
     actionpack (= 3.0.1) 
     mail (~> 2.2.5) 
    actionpack (3.0.1) 
     activemodel (= 3.0.1) 
     activesupport (= 3.0.1) 
     builder (~> 2.1.2) 
     erubis (~> 2.6.6) 
     i18n (~> 0.4.1) 
     rack (~> 1.2.1) 
     rack-mount (~> 0.6.12) 
     rack-test (~> 0.5.4) 
     tzinfo (~> 0.3.23) 
    activemodel (3.0.1) 
     activesupport (= 3.0.1) 
     builder (~> 2.1.2) 
     i18n (~> 0.4.1) 
    activerecord (3.0.1) 
     activemodel (= 3.0.1) 
     activesupport (= 3.0.1) 
     arel (~> 1.0.0) 
     tzinfo (~> 0.3.23) 
    activeresource (3.0.1) 
     activemodel (= 3.0.1) 
     activesupport (= 3.0.1) 
    activesupport (3.0.1) 
    annotate-models (1.0.4) 
    archive-tar-minitar (0.5.2) 
    arel (1.0.1) 
     activesupport (~> 3.0.0) 
    builder (2.1.2) 
    columnize (0.3.3) 
    erubis (2.6.6) 
     abstract (>= 1.0.0) 
    i18n (0.4.2) 
    linecache19 (0.5.12) 
     ruby_core_source (>= 0.1.4) 
    mail (2.2.19) 
     activesupport (>= 2.3.6) 
     i18n (>= 0.4.0) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    mime-types (1.16) 
    polyglot (0.3.1) 
    rack (1.2.3) 
    rack-mount (0.6.14) 
     rack (>= 1.0.0) 
    rack-test (0.5.7) 
     rack (>= 1.0) 
    rails (3.0.1) 
     actionmailer (= 3.0.1) 
     actionpack (= 3.0.1) 
     activerecord (= 3.0.1) 
     activeresource (= 3.0.1) 
     activesupport (= 3.0.1) 
     bundler (~> 1.0.0) 
     railties (= 3.0.1) 
    railties (3.0.1) 
     actionpack (= 3.0.1) 
     activesupport (= 3.0.1) 
     rake (>= 0.8.4) 
     thor (~> 0.14.0) 
    rake (0.9.2) 
    ruby-debug-base19 (0.11.25) 
     columnize (>= 0.3.1) 
     linecache19 (>= 0.5.11) 
     ruby_core_source (>= 0.1.4) 
    ruby-debug19 (0.11.6) 
     columnize (>= 0.3.1) 
     linecache19 (>= 0.5.11) 
     ruby-debug-base19 (>= 0.11.19) 
    ruby_core_source (0.1.5) 
     archive-tar-minitar (>= 0.5.2) 
    sqlite3-ruby (1.2.5) 
    thor (0.14.6) 
    treetop (1.4.9) 
     polyglot (>= 0.3.1) 
    tzinfo (0.3.27) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    annotate-models (= 1.0.4) 
    rails (= 3.0.1) 
    ruby-debug19 
    sqlite3-ruby (= 1.2.5) 

이미 단계를 시도하다 여기에 언급 된 .. Install linecache via bundler on heroku

누군가이 문제를 해결하는 방법을 알려줄 수 있습니까?

감사합니다.

+1

'heroku config : BUNDLE_WITHOUT = "development : test"'를 추가 한 다음 git push를 실행 해 보셨습니까? – Dogbert

+0

예 제가 추가하려고 시도했습니다 – rogerstone

+0

그리고 똑같은 결과가 나옵니까? Gemfile.lock도 게시 할 수 있습니까? – Dogbert

답변

2

내 문제는 내가 작업하고있는 지점에서 ruby-debug19를 제거했지만 마스터 분기와 병합하는 것을 잊어 버렸습니다. 모든 변경 사항없이 마스터 분기를 밀어 넣었습니다. 만든.

+0

정말 고마워요. 이것은'git branch'를 수행 할 때까지 내게 열매를 띄게했고 지점에서 디버깅을 시도했지만 master를 push하는 것을 깨달았습니다. 분명히 바뀌지 않았습니다. upvoted –

3

오류는 ruby-debug19와 관련이 있습니다. 그것을 gemfile에서 제거하면 Heroku에서 컴파일됩니다. 이것은 Heroku의 환경과 관련이 있습니다.

관련 문제