Heroku:在任何来源中都找不到libv8-3.15.11.1 [英] Heroku: Could not find libv8-3.15.11.1 in any of the sources

查看:168
本文介绍了Heroku:在任何来源中都找不到libv8-3.15.11.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Github上有很多这样的问题(我仔细研究了所有这些问题),但没有一个答案对我有效。



当我尝试git push heroku master时,我收到错误无法在任何源中找到libv8-3.15.11.1。我在我的Gemfile中指定了libv8的版本(使用gemlibv8,〜> 3.11.8.13),我认为这反映在我的Gemfile.lock(libv8(3.11.8.13))中。我不明白为什么当我指定3.11.8.13时它正在寻找版本3.15.11.1。



我确定我对Gemfiles所做的所有更改都已提交(当我执行git status时,我得到无需提交(工作目录清理)。



我也尝试删除heroku并重新添加它(使用git remote rm heroku,然后git push heroku master)。

Gemfile:

 来源'https://rubygems.org'

gem'rails','3.2.8'

组:开发do
gem'sqlite3'
结束

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

gem'json'

gem'rmagick'

#默认情况下,生产环境中仅用于资产且不需要
#的宝石
组:资产do
gem'sass-rails','〜> 3.2.3'
gem'coffee-rails','〜> 3.2.1'

#参见https:// github。 com / sstephenson / execjs#readme获得更多支持的运行时间
#gem't herubyracer'::platforms =>:ruby

gem'uglifier','> = 1.0.3'
gemtwitter-bootstrap-rails
gemless -rails
gem'jquery-fileupload-rails'
end

gem'jquery-rails'

gem'activeadmin'
gemmeta_search,'> = 1.1.0.pre'

gem'friendly_id'

gem'gon'

gem'formtastic '

gem'js-routes'

gemtherubyracer

gemlibv8,〜> 3.11.8.13

gem'carrierwave'

gem'ckeditor_rails'

gem'font-awesome-rails'

group:production do
gem'pg','0.12.2'
end

#使用ActiveModel has_secure_password
#gem'bcrypt-ruby', '〜> 3.0.0'

#为JSON使用Jbuilder模板
#gem'jbuilder'

使用独角兽作为应用服务器
#gem'unicorn'

#用Capistrano部署
#gem'capistrano'

#使用调试器
#gem'ruby-debug'

Gemfile.lock

  GEM 
remote:https://rubygems.org/
规格:
actionmailer(3.2.8)
actionpack( = 3.2.8)
mail(〜> 2.4.4)
actionpack(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8)
builder(〜> 3.0.0)
erubis(〜> 2.7.0)
journey(〜> 1.0.4)
rack(〜> 1.4.0)
rack-cache(〜> 1.2)
rack-test(〜> 0.6.1)
sprocket(〜> 2.1.3)
activeadmin(0.5.1)
arbre(> = 1.0 .1)
bourbon(> = 1.0.0)
devise(> = 1.1.2)
fastercsv
formtastic(> = 2.0.0)
$ inherit_resources(> = 1.3.1)
jquery-rails(> = 1.0.0)
kaminari(> = 0.13.0)
meta_search(> = 0.9.2 )
rails(> = 3.0.0)
sass(> = 3.1.0)
activemodel(3.2.8)
activesupport(= 3.2.8)
builder(〜> 3.0.0)
activerecord(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8)
arel(〜 > 3.0.2)
tzinfo(〜> 0.3.29)
activeresource(3.2.8)
activemodel(= 3.2.8)
activesupport(= 3.2.8 )
activesupport(3.2.8)
i18n(〜> 0.6)
multi_json(〜> 1.0)
arbre(1.0.1)
activesupport(> ; = 3.0.0)
arel (3.0.2)
bcrypt-ruby(3.0.1)
bourbon(3.1.1)
sass(> = 3.2.0)
thor
builder (3.0.4)
carrierwave(0.8.0)
activemodel(> = 3.2.0)
activesupport(> = 3.2.0)
ckeditor_rails(4.0.1.1 )
railties(> = 3.0)
咖啡栏(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.4.0)
commonjs( 0.2.6)
devise(2.2.3)
bcrypt-ruby(〜> 3.0)
orm_adapter(〜> 0.1)
railties(〜> 3.1)
warden(〜> 1.2.1)
erubis(2.7.0)
execjs(1.4.0)
multi_json(〜> 1.0)
fastercsv(1.5 .5)
font-awesome-rails(3.0.2.0)
railties(> = 3.1)
formtastic(2.2.1)
actionpack(> = 3.0)
friendly_id(4.0.9)
gon(4.0.2)
actionpack(> = 2.3.0)
json
has_scope(0.5.1)$ b $ (1.2.1)
i18n(0.6.1)
inherited_resources(1.3.1)
has_scope(〜> 0.5.0)
应答者(〜> 0.6 )
journey(1.0.4)
jquery-fileupload-rails(0.4.1)
actionpack(> = 3.1)
railties(> = 3.1)
jquery-rails(2.2.1)
railties(> = 3.0,< 5.0.7)
thor(> = 0.14,<2.0)
js-routes(0.8.7)
rails(> = 3.2)
json(1.7.7)
kaminari(0.14.1)
actionpack(> = 3.0.0)
activesupport(> = 3.0.0)
(2.2.2)
commonjs(〜> 0.2.6)
less-rails(2.2.6)
actionpack(> = 3.1)
less(〜> 2.2.0)
libv8 (3.11.8.13)
mail(2.4.4)
i18n(> = 0.4.0)
mime-types(〜> 1.16)
treetop(〜> 1.4.8)
meta_search(1.1.3)
actionpack(〜> 3.1)
activerecord(〜> 3.1)
activesupport(〜> 3.1)$ b $ (1.12)
multi_json(1.6.1)
orm_adapter(0.4.0)
pg(0.12.2)b多孔(〜> 0.5.0)
mime-
polyororous(0.5.0)
activerecord(〜> 3.0)
polyglot(0.3.3)
rack(1.4.5)
rack-cache(1.2 )
rack(> = 0.4)
rack-ssl(1.3.3)
机架
rack-test(0.6.2)
rack(> = 1.0)
rails(3.2.8)
actionmailer(= 3.2.8)
actionpack (= 3.2.8)
activerecord(= 3.2.8)
activeresource(= 3.2.8)
activesupport(= 3.2.8)
bundler(〜> 1.0)
railties(= 3.2.8)
railties(3.2.8)
actionpack(= 3.2.8)
activesupport(= 3.2.8)
rack (> 1.3.2)
rake(> = 0.8.7)
rdoc(〜> 3.4)
thor(> = 0.14.6,<2.0 )
rake(10.0.3)
rdoc(3.12.1)
json(〜> 1.4)
ref(1.0.2)
responders(0.9。 3)
railties(〜> 3.1)
rmagick(2.13.2)
sass(3.2.5)
sass-rails(3.2.6)
railties (〜> 3.2.0)
sass(> = 3.1.10)
tilt(〜> 1.3)
sprocket(2.1.3)
hike(〜> ; 1.2)
rack(〜> 1.0)
tilt(〜> 1.1,!= 1.3.0)
sqlite3(1.3.7)
therubyracer(0.11.3 )
libv8(〜> 3.11.8.12)
ref
thor(0.17.0)
tilt(1.3.3)
树梢(1.4.12)
polyglot
polyglot(> = 0.3.1)
twitter-bootstrap-rails(2.2.4)
actionpack (> = 3.1)
execjs
railties(> = 3.1)
tzinfo(0.3.35)
uglifier(1.3.0)
execjs(> = 0.3.0)
multi_json(〜> 1.0> = 1.0.2)
warden(1.2.1)
rack(> = 1.0)

平台
ruby​​

相关性
activeadmin
carrierwave
ckeditor_rails
咖啡栏(〜> 3.2.1)
font-awesome-rails
formtastic
friendly_id
gon
jquery-fileupload-rails
jquery-rails
js-routes
json
less-rails
libv8(〜> ; 3.11.8.13)
meta_search(> = 1.1.0.pre)
pg(= 0.12.2)
rails(= 3.2.8)
rmagick $ b $


















$ b $ code>


解决方案

根据此页:

https://devcenter.heroku.com/articles/rails3x-asset -pipeline-cedar

>therubyracer
如果您之前使用t herubyracer或者therubyracer-heroku,这些宝石不再需要,因为这些宝石使用了大量的内存,所以不再需要这些宝石。



因此,我从我的测试应用程序中删除了这些宝石。然后,我通过Ubuntu本地机器安装了node.js,并在heroku上运行良好。

看到这个问题:
Rails - 无法找到JavaScript运行时?


I know there are a lot of these questions on Github (I've looked through all of them), but none of the answers have worked for me.

I am getting the error "Could not find libv8-3.15.11.1 in any of the sources" when I try "git push heroku master." I specify the version of libv8 in my Gemfile (with gem "libv8", "~> 3.11.8.13"), and I think this is reflected in my Gemfile.lock ("libv8 (3.11.8.13)"). I don't understand why it's looking for version 3.15.11.1 when I've specified 3.11.8.13.

I made sure all my changes to the Gemfiles were committed (when I do "git status", I get "nothing to commit (working directory clean)."

I also tried removing heroku and re-adding it (with "git remote rm heroku" and then "git push heroku master").

Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.8'

group :development do
    gem 'sqlite3'
end

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

gem 'json'

gem 'rmagick'

# 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'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
  gem "twitter-bootstrap-rails"
  gem "less-rails"
  gem 'jquery-fileupload-rails'
end

gem 'jquery-rails'

gem 'activeadmin'
gem "meta_search",    '>= 1.1.0.pre'

gem 'friendly_id'

gem 'gon'

gem 'formtastic'

gem 'js-routes'

gem "therubyracer"

gem "libv8", "~> 3.11.8.13"

gem 'carrierwave'

gem 'ckeditor_rails'

gem 'font-awesome-rails'

group :production do
    gem 'pg', '0.12.2'
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 'ruby-debug'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (3.2.8)
      actionpack (= 3.2.8)
      mail (~> 2.4.4)
    actionpack (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.3)
    activeadmin (0.5.1)
      arbre (>= 1.0.1)
      bourbon (>= 1.0.0)
      devise (>= 1.1.2)
      fastercsv
      formtastic (>= 2.0.0)
      inherited_resources (>= 1.3.1)
      jquery-rails (>= 1.0.0)
      kaminari (>= 0.13.0)
      meta_search (>= 0.9.2)
      rails (>= 3.0.0)
      sass (>= 3.1.0)
    activemodel (3.2.8)
      activesupport (= 3.2.8)
      builder (~> 3.0.0)
    activerecord (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.8)
      activemodel (= 3.2.8)
      activesupport (= 3.2.8)
    activesupport (3.2.8)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    arbre (1.0.1)
      activesupport (>= 3.0.0)
    arel (3.0.2)
    bcrypt-ruby (3.0.1)
    bourbon (3.1.1)
      sass (>= 3.2.0)
      thor
    builder (3.0.4)
    carrierwave (0.8.0)
      activemodel (>= 3.2.0)
      activesupport (>= 3.2.0)
    ckeditor_rails (4.0.1.1)
      railties (>= 3.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.4.0)
    commonjs (0.2.6)
    devise (2.2.3)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.1)
      railties (~> 3.1)
      warden (~> 1.2.1)
    erubis (2.7.0)
    execjs (1.4.0)
      multi_json (~> 1.0)
    fastercsv (1.5.5)
    font-awesome-rails (3.0.2.0)
      railties (>= 3.1)
    formtastic (2.2.1)
      actionpack (>= 3.0)
    friendly_id (4.0.9)
    gon (4.0.2)
      actionpack (>= 2.3.0)
      json
    has_scope (0.5.1)
    hike (1.2.1)
    i18n (0.6.1)
    inherited_resources (1.3.1)
      has_scope (~> 0.5.0)
      responders (~> 0.6)
    journey (1.0.4)
    jquery-fileupload-rails (0.4.1)
      actionpack (>= 3.1)
      railties (>= 3.1)
    jquery-rails (2.2.1)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    js-routes (0.8.7)
      rails (>= 3.2)
    json (1.7.7)
    kaminari (0.14.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    less (2.2.2)
      commonjs (~> 0.2.6)
    less-rails (2.2.6)
      actionpack (>= 3.1)
      less (~> 2.2.0)
    libv8 (3.11.8.13)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    meta_search (1.1.3)
      actionpack (~> 3.1)
      activerecord (~> 3.1)
      activesupport (~> 3.1)
      polyamorous (~> 0.5.0)
    mime-types (1.21)
    multi_json (1.6.1)
    orm_adapter (0.4.0)
    pg (0.12.2)
    polyamorous (0.5.0)
      activerecord (~> 3.0)
    polyglot (0.3.3)
    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.8)
      actionmailer (= 3.2.8)
      actionpack (= 3.2.8)
      activerecord (= 3.2.8)
      activeresource (= 3.2.8)
      activesupport (= 3.2.8)
      bundler (~> 1.0)
      railties (= 3.2.8)
    railties (3.2.8)
      actionpack (= 3.2.8)
      activesupport (= 3.2.8)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (>= 0.14.6, < 2.0)
    rake (10.0.3)
    rdoc (3.12.1)
      json (~> 1.4)
    ref (1.0.2)
    responders (0.9.3)
      railties (~> 3.1)
    rmagick (2.13.2)
    sass (3.2.5)
    sass-rails (3.2.6)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sqlite3 (1.3.7)
    therubyracer (0.11.3)
      libv8 (~> 3.11.8.12)
      ref
    thor (0.17.0)
    tilt (1.3.3)
    treetop (1.4.12)
      polyglot
      polyglot (>= 0.3.1)
    twitter-bootstrap-rails (2.2.4)
      actionpack (>= 3.1)
      execjs
      railties (>= 3.1)
    tzinfo (0.3.35)
    uglifier (1.3.0)
      execjs (>= 0.3.0)
      multi_json (~> 1.0, >= 1.0.2)
    warden (1.2.1)
      rack (>= 1.0)

PLATFORMS
  ruby

DEPENDENCIES
  activeadmin
  carrierwave
  ckeditor_rails
  coffee-rails (~> 3.2.1)
  font-awesome-rails
  formtastic
  friendly_id
  gon
  jquery-fileupload-rails
  jquery-rails
  js-routes
  json
  less-rails
  libv8 (~> 3.11.8.13)
  meta_search (>= 1.1.0.pre)
  pg (= 0.12.2)
  rails (= 3.2.8)
  rmagick
  sass-rails (~> 3.2.3)
  sqlite3
  therubyracer
  twitter-bootstrap-rails
  uglifier (>= 1.0.3)

解决方案

According to this page:

https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar

"therubyracer If you were previously using therubyracer or therubyracer-heroku, these gems are no longer required and strongly discouraged as these gems use a very large amount of memory."

Consequently I removed these from my test application. I then installed node.js on by ubuntu local machine and runs fine as it does on heroku.

See this question too: Rails - Could not find a JavaScript runtime?

这篇关于Heroku:在任何来源中都找不到libv8-3.15.11.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆