Rails 3.1推到Heroku的Sqlite3错误

编程入门 行业动态 更新时间:2024-10-24 14:25:13
本文介绍了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 github/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错误

本文发布于:2023-10-23 02:15:10,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:推到   错误   Rails   Heroku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!