繁体   English   中英

耙资产:预编译,命令失败,状态为(137):

[英]rake assets:precompile, Command failed with status (137):

我正在尝试使用assess:precompile命令来预编译资产,但出现错误。

**调用资产:预编译(首次)**执行资产:预编译/root/jruby-1.7.9/bin/jruby /root/jruby-1.7.9/bin/rake资产:precompile:all RAILS_ENV = production RAILS_GROUPS = assets --trace **调用资产:预编译:所有(首次)**调用资产:缓存:清理(first_time)**调用资产:环境(first_time)**执行资产:环境**调用环境(first_time)**执行环境**执行资产:cache:clean **执行资产:precompile:所有rake中止了! 命令失败,状态为(137):[/root/jruby-1.7.9/bin/jruby / root / jruby-1 ....] /root/jruby-1.7.9/lib/ruby/gems/shared/gems /rake-10.1.1/lib/rake/file_utils.rb:55 create_shell_runner' org/jruby/RubyProc.java:271:in调用中'/root/jruby-1.7.9/lib/ruby/gems/shared/ gems / rake-10.1.1 / lib / rake / file_utils.rb:45:在sh' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/ sh' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in sh ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in jruby-1.7.9 ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in lib ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in gems ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in shared ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in gems ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in rake-10.1.1 ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in lib ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in rake ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in sh' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in ruby' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/file_utils_ext.rb:41:in ruby中/root/jruby-1.7.9/lib/ruby/gems/ shared / gems / turbo-sprockets-rails3-0.3.11 / lib / turbo-sprockets / tasks / assets.rake:24:在ruby_rake_task' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:33:in invoke_or_reboot_rake_task' ruby_rake_task' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/turbo-sprockets-rails3-0.3.11/lib/turbo-sprockets/tasks/assets.rake:33:in rails3-0.3.11 / lib / turbo-sprockets / tasks / assets.rake:50:in (root)' org/jruby/RubyProc.java:271:in (root)' org/jruby/RubyProc.java:271:in通话中'/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:236:in execute' org/jruby/RubyArray.java:1613:in每个中/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:231:in execute' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:175:in invoke_with_call_chain'/root/ execute' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:175:in 1.7.9/lib /ruby/1.9/monitor.rb:211:in mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in jruby- mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in ruby/ mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in gems/ mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in lib/ mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in task.rb: mon_synchronize' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/task.rb:168:in invoke_with_call_chain'/root/jruby invoke' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:149:in 161:in invoke' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:149:in invoke_task中/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1 .1 / lib / rake / application.rb:106:在top_level' org/jruby/RubyArray.java:1613:in每个'/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake- 10.1.1 / lib / rake / application.rb:106:在top_level' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:115:in top_level' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:115:in run_with_threads的/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb中: 100:在top_level' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:78:in :在运行中'/root/jruby-1.7。 9 / lib / ruby​​ / gems / shared / gems / rake-10.1.1 / lib / rake / application.rb:165:在standard_exception_handling' /root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/application.rb:75:in运行中/root/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.1.1/bin/rake:33:在(root)' org/jruby/RubyKernel.java:1099:in load'中/root/jruby-1.7.9/bin/rake:23 (root)' org/jruby/RubyKernel.java:1099:in `(root)'中的任务:TOP => asset:precompile

我的gem文件如下

source 'https://rubygems.org'

gem 'rails', '3.2.14'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
#gem 'mysql2'
 gem 'activerecord-jdbcmysql-adapter', '~> 1.3.0'
 gem 'jruby-openssl'

# Gems used only for assets and not required
# in production environments by default.

gem 'sass-rails',   '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'bootstrap-sass', '~> 3.0.2.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyrhino'
# gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
gem 'turbo-sprockets-rails3'

gem 'jquery-rails'
gem 'devise', '3.2.2'
gem 'simple_form'
gem 'jquery-datatables-rails', '~> 2.2.3'
gem "instagram", "~> 0.10.0"
gem 'whenever', :require => false
gem 'rack-cache', :require => 'rack/cache'
gem "dragonfly", '~>0.9.15'
gem 'delayed_job_active_record'
gem 'daemons'
gem "lazyload-rails"
gem "spreadsheet"
gem 'newrelic_rpm'
# gem "ruby-mcrypt"
gem "koala","~> 2.0"

group :development, :test do 
    gem 'hirb'
    gem 'pry'
  gem 'awesome_print', '~> 1.6.1'
#  gem 'better_errors', '~> 1.1.0'
#  gem 'binding_of_caller'
end

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

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

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

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'

我的Gemfile.lock如下

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (3.2.14)
      actionpack (= 3.2.14)
      mail (~> 2.5.4)
    actionpack (3.2.14)
      activemodel (= 3.2.14)
      activesupport (= 3.2.14)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.5)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.2.1)
    activemodel (3.2.14)
      activesupport (= 3.2.14)
      builder (~> 3.0.0)
    activerecord (3.2.14)
      activemodel (= 3.2.14)
      activesupport (= 3.2.14)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activerecord-jdbc-adapter (1.3.5)
      activerecord (>= 2.2)
    activerecord-jdbcmysql-adapter (1.3.5)
      activerecord-jdbc-adapter (~> 1.3.5)
      jdbc-mysql (>= 5.1.22)
    activeresource (3.2.14)
      activemodel (= 3.2.14)
      activesupport (= 3.2.14)
    activesupport (3.2.14)
      i18n (~> 0.6, >= 0.6.4)
      multi_json (~> 1.0)
    addressable (2.3.8)
    arel (3.0.3)
    atomic (1.1.14)
    atomic (1.1.14-java)
    awesome_print (1.6.1)
    bcrypt-ruby (3.1.2)
    bcrypt-ruby (3.1.2-java)
    bootstrap-sass (3.0.2.1)
      sass (~> 3.2)
    bouncy-castle-java (1.5.0147)
    builder (3.0.4)
    chronic (0.10.2)
    coderay (1.1.0)
    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.6.3)
    daemons (1.1.9)
    delayed_job (4.0.0)
      activesupport (>= 3.0, < 4.1)
    delayed_job_active_record (4.0.0)
      activerecord (>= 3.0, < 4.1)
      delayed_job (>= 3.0, < 4.1)
    devise (3.2.2)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (>= 3.2.6, < 5)
      thread_safe (~> 0.1)
      warden (~> 1.2.3)
    dragonfly (0.9.15)
      multi_json (~> 1.0)
      rack
    erubis (2.7.0)
    execjs (2.0.2)
    faraday (0.8.9)
      multipart-post (~> 1.2.0)
    faraday_middleware (0.9.0)
      faraday (>= 0.7.4, < 0.9)
    ffi (1.9.8-java)
    hashie (2.0.5)
    hike (1.2.3)
    hirb (0.7.3)
    i18n (0.6.9)
    instagram (0.10.0)
      faraday (>= 0.7, < 0.9)
      faraday_middleware (~> 0.8)
      hashie (>= 0.4.0)
      multi_json (~> 1.0, >= 1.0.3)
    jdbc-mysql (5.1.28)
    journey (1.0.4)
    jquery-datatables-rails (2.2.3)
      jquery-rails
      sass-rails
    jquery-rails (3.0.4)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    jruby-openssl (0.9.4)
      bouncy-castle-java (>= 1.5.0147)
    json (1.8.1)
    json (1.8.1-java)
    koala (2.0.0)
      addressable
      faraday
      multi_json
    lazyload-rails (0.2.0)
      nokogiri (~> 1.5)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    method_source (0.8.2)
    mime-types (1.25.1)
    mini_portile (0.5.2)
    multi_json (1.8.4)
    multipart-post (1.2.0)
    newrelic_rpm (3.9.9.275)
    nokogiri (1.6.1)
      mini_portile (~> 0.5.0)
    nokogiri (1.6.1-java)
      mini_portile (~> 0.5.0)
    orm_adapter (0.5.0)
    polyglot (0.3.3)
    pry (0.10.1-java)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
      spoon (~> 0.0)
    rack (1.4.5)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-ssl (1.3.3)
      rack
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (3.2.14)
      actionmailer (= 3.2.14)
      actionpack (= 3.2.14)
      activerecord (= 3.2.14)
      activeresource (= 3.2.14)
      activesupport (= 3.2.14)
      bundler (~> 1.0)
      railties (= 3.2.14)
    railties (3.2.14)
      actionpack (= 3.2.14)
      activesupport (= 3.2.14)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    rake (10.1.1)
    rdoc (3.12.2)
      json (~> 1.4)
    ruby-ole (1.2.11.7)
    sass (3.2.13)
    sass-rails (3.2.6)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    simple_form (2.1.1)
      actionpack (~> 3.0)
      activemodel (~> 3.0)
    slop (3.6.0)
    spoon (0.0.4)
      ffi
    spreadsheet (0.9.7)
      ruby-ole (>= 1.0)
    sprockets (2.2.2)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    therubyrhino (2.0.2)
      therubyrhino_jar (>= 1.7.3)
    therubyrhino_jar (1.7.4)
    thor (0.18.1)
    thread_safe (0.1.3)
      atomic
    thread_safe (0.1.3-java)
      atomic
    tilt (1.4.1)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    turbo-sprockets-rails3 (0.3.11)
      railties (> 3.2.8, < 4.0.0)
      sprockets (>= 2.2.0)
    tzinfo (0.3.38)
    uglifier (2.4.0)
      execjs (>= 0.3.0)
      json (>= 1.8.0)
    warden (1.2.3)
      rack (>= 1.0)
    whenever (0.8.4)
      activesupport (>= 2.3.4)
      chronic (>= 0.6.3)

PLATFORMS
  java

DEPENDENCIES
  activerecord-jdbcmysql-adapter (~> 1.3.0)
  awesome_print (~> 1.6.1)
  bootstrap-sass (~> 3.0.2.0)
  coffee-rails (~> 3.2.1)
  daemons
  delayed_job_active_record
  devise (= 3.2.2)
  dragonfly (~> 0.9.15)
  hirb
  instagram (~> 0.10.0)
  jquery-datatables-rails (~> 2.2.3)
  jquery-rails
  jruby-openssl
  koala (~> 2.0)
  lazyload-rails
  newrelic_rpm
  pry
  rack-cache
  rails (= 3.2.14)
  sass-rails (~> 3.2.3)
  simple_form
  spreadsheet
  therubyrhino
  turbo-sprockets-rails3
  uglifier (>= 1.0.3)
  whenever

请有人帮助我,我从宝石内部得到错误,我无法获得状态信息(137)。 我在互联网上搜索,找不到状态为(137)的任何错误。 请帮帮我。

如果在资产预编译中遇到任何错误,则首先尝试运行此命令

rake assets:clobber

然后预编译资产

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM