- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这就是我的样子 Gemfile
:
source 'http://rubygems.org'
gem 'rails', '3.1.2'
#gem 'sqlite3'
gem 'mysql2'
gem "rvm", "~> 1.9.2"
gem 'authlogic'
gem "taps", "~> 0.3.23"
gem "paperclip", "~> 2.4.5"
gem 'aws-s3'
gem 'actionmailer'
gem 'will_paginate'
group :assets do
gem 'sass-rails', '~> 3.1.5.rc.2'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'therubyracer-heroku', '~> 0.8.1.pre3'
gem 'pg'
end
gem 'jquery-rails'
Counting objects: 307, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (291/291), done.
Writing objects: 100% (307/307), 491.60 KiB | 47 KiB/s, done.
Total 307 (delta 43), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.rc.7
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Fetching gem metadata from http://rubygems.org/.......
Installing rake (0.9.2.2)
Installing multi_json (1.0.4)
Installing activesupport (3.1.2)
Installing builder (3.0.0)
Installing i18n (0.6.0)
Installing activemodel (3.1.2)
Installing erubis (2.7.0)
Installing rack (1.3.6)
Installing rack-cache (1.1)
Installing rack-mount (0.8.3)
Installing rack-test (0.6.1)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.1.2)
Installing actionpack (3.1.2)
Installing mime-types (1.17.2)
Installing polyglot (0.3.3)
Installing treetop (1.4.10)
Installing mail (2.3.0)
Installing actionmailer (3.1.2)
Installing arel (2.2.1)
Installing tzinfo (0.3.31)
Installing activerecord (3.1.2)
Installing activeresource (3.1.2)
Installing authlogic (3.1.0)
Installing xml-simple (1.1.1)
Installing aws-s3 (0.6.2)
Installing cocaine (0.2.1)
Installing coffee-script-source (1.2.0)
Installing execjs (1.3.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.2)
Installing json (1.6.5) with native extensions
Installing rdoc (3.12)
Installing thor (0.14.6)
Installing railties (3.1.2)
Installing coffee-rails (3.1.1)
Installing jquery-rails (1.0.19)
Installing mysql2 (0.3.11) with native extensions
Installing paperclip (2.4.5)
Installing pg (0.12.2) with native extensions
Using bundler (1.1.rc.7)
Installing rails (3.1.2)
Installing rest-client (1.6.7)
Installing rvm (1.9.2)
Installing sass (3.1.12)
Installing sass-rails (3.1.5)
Installing sequel (3.20.0)
Installing sinatra (1.0)
Installing sqlite3 (1.3.5) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/usr/local/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/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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/local/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
--enable-local
--disable-local
Gem files will remain installed in /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.5 for inspection.
Results logged to /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.5/ext/sqlite3/gem_make.out
from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:486:in `block in build_extensions'
from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `each'
from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:446:in `build_extensions'
from /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:198:in `install'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/source.rb:90:in `block in install'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/rubygems_integration.rb:82:in `preserve_paths'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/source.rb:89:in `install'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:73:in `block in install_gem_from_spec'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/rubygems_integration.rb:97:in `with_build_args'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:72:in `install_gem_from_spec'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:56:in `block in run'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:55:in `run'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/installer.rb:12:in `install'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/cli.rb:220:in `install'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/task.rb:22:in `run'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/vendor/thor/base.rb:386:in `start'
from /tmp/build_14aejbvbx900f/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/bin/bundle:13:in `<top (required)>'
from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `load'
from vendor/bundle/ruby/1.9.1/bin/bundle:19:in `<main>'
!
! Failed to install gems via Bundler.
!
! Detected sqlite3 gem which is not supported on Heroku.
! http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
!
! Heroku push rejected, failed to compile Ruby/rails app
To git@heroku.com:_my_repo_.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:_my_repo_.git'
最佳答案
只需将您的 sqlite3 放在 Gemfile 的 text/development 组下,添加 thin
和 pg
在生产 gemfile 组中还有:
Gemfile
像下面这样:gem 'sqlite3', :group => [:development, :test]
group :production do
gem 'thin'
gem 'pg'
end
Gemfile.lock
bundle install --without production
git add .
git commit -am "bundle updating sqlite3"
git push heroku +master
关于ruby-on-rails-3.1 - 无法推送应用程序 Heroku - 无法通过 Bundler 安装 gems,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9009278/
我开始使用一个新项目,它基于 ruby 1.8.7,我使用 rvm 来管理我的 ruby 版本,我已经安装了 1.8.7 和 1.9.2。 重要的是当我这样做的时候: rvm use 1.8.
ERROR: paperclip is not part of the bundle. Add it to Gemfile. (Gem::LoadError) 添加paperclip bundle 列
如何强制 Bundler 重新安装 gemfile 中的所有 gem?或者,如何强制 Bundler 卸载它安装的所有 gem,以便我可以自己重新安装它们? 我看到了rails bundle clea
如果我更改 Gemfile 中所需的 bundler 版本,然后键入 bundle,我得到 Bundler could not find compatible versions for gem "bu
我在存储库中有一个缓存的 gem。 gem 是使用 bundle package --all 保存的。命令。 在未安装 Bundler 但确实有此 repo 副本的新建机器 (centos) 上,我想
我正在用 Jekyll 制作 GitHub 博客页面。我失败了很多次,只是 fork 了一个新的,然后按照存储库上的自述文件进行操作。 它是 https://github.com/jancziziko
我遇到了 bundle 的以下错误 Bundler could not find compatible versions for gem "bundler": In Gemfile: bundler
这里是 Ruby 和 Rails 的完全新手...过去尝试过一些教程,但仅此而已。我正在尝试学习“Ruby on Rails 3 教程”一书,但遇到了障碍,在此处和 Google 上搜索后我无法找到任
bundle有什么区别& bundler命令? bundle有什么区别& bundle install ? 如果没有区别,为什么有多个命令做同样的事情? 最佳答案 可执行文件 bundle & bun
Bundler 1.1.1 似乎与 rake 不兼容。 我不知道发生了什么,我正在尝试安装 webistrano,当我运行以下命令时 RAILS_ENV=production rake db:migr
标题就是问题,这里是提示它的上下文。 gem 文件: source "http://rubygems.org" # Specify your gem's dependencies in the gem
当我使用 require 'bundler/setup' 我得到 Bundler.with_clean_env 不受支持。 但是当我把它改成 require 'bundler' 它支持Bundler.
我是 Rails 的新手,正在尝试启动并运行演示应用程序。我的 linux 系统(lubuntu,主要是全新安装)在运行“捆绑安装”时遇到了问题。即使是这样,如果我关闭我的终端并启动另一个终端,它也无
所以我在我的电脑硬盘上安装了鹦鹉操作系统, 之后我更新了漏洞系统并尝试运行 MSFCONSOLE . 执行该命令后,我收到此错误: Bundler failed to load and return
我正在使用 heroku,每次我尝试推送我的应用程序时都会显示此消息: remote: Compressing source files... done. remote: Building sourc
我几天前才开始使用 ruby。我不完全理解 gemfile 的概念。我的 Gemfile 看起来像: source 'http://rubygems.org' gem 'sunspot_solr'
这是: require 'bundler' Bundler.setup 完成与: require 'bundler/setup' 据我所知,bundler/setup 自动要求所有组,而 requir
我已尝试使用 Elastic Beanstalk for rails。当我运行 eb deploy 时,我收到了这个错误。我需要至少安装 bundler 1.8.4。知道如何解决这个问题吗? Bun
在 Rails 应用程序中,在 boot.rb 中,有一行: require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) 在appli
您好,我一直在尝试安装 Ruby gem 包。收到此消息后,我按照 gem install bundle 的说明进行操作,但是当我键入 bundle -v 时它仍然不起作用。我也打字 捆绑并接收 /U
我是一名优秀的程序员,十分优秀!