2012-04-04 2 views
3

Roku 앱을 Heroku로 푸시하려고하는데이 오류가 계속 발생합니다.Roku 3.2 앱을 Heroku sqlite3에 푸시하려고 시도했습니다.

Installing sqlite3 (1.3.5) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

이 내 Gemfile

source 'https://rubygems.org' 

gem 'rails', '3.2.1' 

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


    gem 'pg' 
    gem 'thin' 



# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails', '~> 3.2.3' 
    gem 'coffee-rails', '~> 3.2.1' 
    gem 'twitter-bootstrap-rails' 


    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    # gem 'therubyracer' 

    gem 'uglifier', '>= 1.0.3' 
end 

gem 'jquery-rails', '~> 2.0.1' 
gem 'modernizr-rails', '~> 2.0.6' 
gem 'will_paginate', '~> 3.0.3' 
gem 'simple_form', '~> 2.0.1' 
gem 'friendly_id', '~> 4.0.4' 

# Authentication 
gem 'devise', '~> 2.0.4' 
# gem 'recaptcha', :require => 'recaptcha/rails' 

# Authorisation 
gem 'cancan', '~> 1.6.7' 

# To use ActiveModel has_secure_password 
# gem 'bcrypt-ruby', '~> 3.0.0' 

# To use Jbuilder templates for JSON 
# gem 'jbuilder' 

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

# Deploy with Capistrano 
# gem 'capistrano' 

# To use debugger 
# gem 'ruby-debug19', :require => 'ruby-debug' 

이며,이 내 gemlock 파일

GEM 
    remote: https://rubygems.org/ 
    specs: 
    actionmailer (3.2.1) 
     actionpack (= 3.2.1) 
     mail (~> 2.4.0) 
    actionpack (3.2.1) 
     activemodel (= 3.2.1) 
     activesupport (= 3.2.1) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     journey (~> 1.0.1) 
     rack (~> 1.4.0) 
     rack-cache (~> 1.1) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.1.2) 
    activemodel (3.2.1) 
     activesupport (= 3.2.1) 
     builder (~> 3.0.0) 
    activerecord (3.2.1) 
     activemodel (= 3.2.1) 
     activesupport (= 3.2.1) 
     arel (~> 3.0.0) 
     tzinfo (~> 0.3.29) 
    activeresource (3.2.1) 
     activemodel (= 3.2.1) 
     activesupport (= 3.2.1) 
    activesupport (3.2.1) 
     i18n (~> 0.6) 
     multi_json (~> 1.0) 
    arel (3.0.2) 
    bcrypt-ruby (3.0.1) 
    builder (3.0.0) 
    cancan (1.6.7) 
    coffee-rails (3.2.2) 
     coffee-script (>= 2.2.0) 
     railties (~> 3.2.0) 
    coffee-script (2.2.0) 
     coffee-script-source 
     execjs 
    coffee-script-source (1.2.0) 
    commonjs (0.2.5) 
    daemons (1.1.8) 
    devise (2.0.4) 
     bcrypt-ruby (~> 3.0) 
     orm_adapter (~> 0.0.3) 
     railties (~> 3.1) 
     warden (~> 1.1.1) 
    erubis (2.7.0) 
    eventmachine (0.12.10) 
    execjs (1.3.0) 
     multi_json (~> 1.0) 
    friendly_id (4.0.4) 
    hike (1.2.1) 
    i18n (0.6.0) 
    journey (1.0.3) 
    jquery-rails (2.0.2) 
     railties (>= 3.2.0, < 5.0) 
     thor (~> 0.14) 
    json (1.6.6) 
    less (2.1.0) 
     commonjs (~> 0.2.0) 
     therubyracer (~> 0.10.0) 
    less-rails (2.2.0) 
     actionpack (>= 3.1) 
     less (~> 2.1.0) 
    libv8 (3.3.10.4) 
    mail (2.4.4) 
     i18n (>= 0.4.0) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    mime-types (1.18) 
    modernizr-rails (2.0.6) 
    multi_json (1.2.0) 
    orm_adapter (0.0.7) 
    pg (0.13.2) 
    polyglot (0.3.3) 
    rack (1.4.1) 
    rack-cache (1.2) 
     rack (>= 0.4) 
    rack-ssl (1.3.2) 
     rack 
    rack-test (0.6.1) 
     rack (>= 1.0) 
    rails (3.2.1) 
     actionmailer (= 3.2.1) 
     actionpack (= 3.2.1) 
     activerecord (= 3.2.1) 
     activeresource (= 3.2.1) 
     activesupport (= 3.2.1) 
     bundler (~> 1.0) 
     railties (= 3.2.1) 
    railties (3.2.1) 
     actionpack (= 3.2.1) 
     activesupport (= 3.2.1) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (~> 0.14.6) 
    rake (0.9.2.2) 
    rdoc (3.12) 
     json (~> 1.4) 
    sass (3.1.15) 
    sass-rails (3.2.5) 
     railties (~> 3.2.0) 
     sass (>= 3.1.10) 
     tilt (~> 1.3) 
    simple_form (2.0.1) 
     actionpack (~> 3.0) 
     activemodel (~> 3.0) 
    sprockets (2.1.2) 
     hike (~> 1.2) 
     rack (~> 1.0) 
     tilt (~> 1.1, != 1.3.0) 
    therubyracer (0.10.0) 
     libv8 (~> 3.3.10) 
    thin (1.3.1) 
     daemons (>= 1.0.9) 
     eventmachine (>= 0.12.6) 
     rack (>= 1.0.0) 
    thor (0.14.6) 
    tilt (1.3.3) 
    treetop (1.4.10) 
     polyglot 
     polyglot (>= 0.3.1) 
    twitter-bootstrap-rails (2.0.5) 
     actionpack (>= 3.1) 
     less-rails (~> 2.2.0) 
     railties (>= 3.1) 
    tzinfo (0.3.32) 
    uglifier (1.2.4) 
     execjs (>= 0.3.0) 
     multi_json (>= 1.0.2) 
    warden (1.1.1) 
     rack (>= 1.0) 
    will_paginate (3.0.3) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    cancan (~> 1.6.7) 
    coffee-rails (~> 3.2.1) 
    devise (~> 2.0.4) 
    friendly_id (~> 4.0.4) 
    jquery-rails (~> 2.0.1) 
    modernizr-rails (~> 2.0.6) 
    pg 
    rails (= 3.2.1) 
    sass-rails (~> 3.2.3) 
    simple_form (~> 2.0.1) 
    thin 
    twitter-bootstrap-rails 
    uglifier (>= 1.0.3) 
    will_paginate (~> 3.0.3) 

입니다 내가 sqlite3를에 대한 참조를 가지고 있지 않지만 여전히 설치하려고. 내 gemfile.lock을 제거했습니다 & 다음 번들 install'd 그러면 git add + commit을 몇 번합니다. 어디서 잘못 가고 있습니까? 많은 감사합니다!

답변

3

PostgreSQL gem에 그룹을 사용하는 것이 좋습니다. 왜 sqlite3을 설치하려고하는지 모르겠지만이 문제가 해결 될 수 있습니다.

group :development, :production do 
    gem 'pg' 
end 
+0

이 문제가 해결되었습니다. 감사! – jamesharker

1

또한 Gails 파일을 구성한 방식에 따라 레일스가 사용할 db 엔진을 선택하지 않은 것처럼 보였습니다.

Mac OS X 또는 Linux를 사용하는 경우 환경 변수를 확인하여 "DATABASE_URL"이 있는지 확인하십시오. 제 경우에는 Gemfile이 sqlite3를 지정했지만 Rails가 Postgres를 사용하고 있다고 말할 수 있었고 PostgreSQL 정보로 환경 변수를 설정할 때까지 왜 그런지 알 수 없었습니다.

나는 또한 Adam의 조언을 따르고 그룹을 구성 할 것입니다.

+0

이 게시물과 대답을 한번보세요. 따라서 SQLite3에 종속 된 보석을 가지고 있으므로 문제가 발생할 수 있습니다. http://stackoverflow.com/questions/3868992/bundler-trace-and-check-dependencies-in-bundled-ruby-gems – MotownJoe

0

데이터베이스를 사용할 환경을 확인하십시오. 당신은 PostgreSQL을 사용하려하지만 그것을 사용하고있는 환경을 결정하지 않았습니다. 그래서 그것을 사용하기 위해 보석 파일에 그룹을 만드십시오. 예 :

group :development, :production do 
    gem 'pg' 
end 
관련 문제