繁体   English   中英

Rails-将ruby升级到1.9.3并将rails升级到3.2后没有上传到heroku

[英]Rails - Not uploading to heroku after upgrading ruby to 1.9.3 and rails to 3.2

我有一个使用1.9.2和Rails 3.2的应用程序,今天我将ruby版本更改为1.9.3(使用rbenv),然后一切都出错了。

我在我的gemfile上有这个

group:development做gem'sqlite3'结束

组:生产宝石'pg'结束

每次我跑:

捆绑安装-无生产

现在什么时候都没有发生

git push heroku主

我犯了同样的错误:

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:

它显然试图安装sqlite,但是即使我从我的Gemfile中删除了sqlite gem,也没有任何反应,看来问题出在heroku,但现在我什么也不能做

希望有人可以帮助我,因为我正在尝试做

heroku db:拉

因此,我想添加taps gem,然后按照本教程进行操作

http://railsapps.github.com/rails-heroku-tutorial.html

我在heroku中更改了ruby的版本,现在我认为问题出在rbenv,但我不确定

提前致谢

哈维尔·Q

实际上,为了获得所有数据库,我只需要做:

gem install taps

而不是将其放入Gemfile中,因为它需要sqlite3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM