Rails 3.1推到Heroku的Sqlite3错误 [英] Rails 3.1 Sqlite3 Error On Push To Heroku

查看:133
本文介绍了Rails 3.1推到Heroku的Sqlite3错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个rails 3.1应用程序,我正试图推向Heroku。它会保持失败,当我推它。

I have a rails 3.1 app that i am trying to push to Heroku. It keeps failing when i push it.

Installing sqlite3 (1.3.4) 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 sqlite3-devel' and check your shared library search path (the
       location where your sqlite3 shared library is located).

我更改了我的gem文件,其中包含以下几行:

I changed my gem file to have the following lines:

gem 'sqlite3', :group => [:development, :test]
gem 'pg', :group => [:production]

即使在运行软件包安装等之后,我也遇到了错误。我甚至在我的gem文件中运行了一些没有sqlite3的测试,它仍然试图在Heroku上安装它。任何建议?

Even after running bundle install etc i am getting the error. I even ran some tests without sqlite3 in my gem file and it still tries to install it on Heroku. Any suggestions?

推荐答案

这篇关于Rails 3.1推到Heroku的Sqlite3错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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