加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 推送到Heroku的Rails 3.1 Sqlite3错误

发布时间:2020-12-17 02:16:16 所属栏目:百科 来源:网络整理
导读:我有一个rails 3.1应用程序,我试图推送到Heroku.当我推动它时它会一直失败. 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/
我有一个rails 3.1应用程序,我试图推送到Heroku.当我推动它时它会一直失败.

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文件更改为以下行:

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

即使在运行捆绑安装等后我也收到了错误.我甚至在我的gem文件中运行了一些没有sqlite3的测试,它仍然试图在Heroku上安装它.有什么建议?

解决方法

大声笑,事实证明我正在一个分支上工作,正在推动我的主人.一旦我合并他们并推动正确的分支一切都很好.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读