简体   繁体   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

I had this app using 1.9.2 and rails 3.2 and today I changed the ruby version into 1.9.3 (using rbenv) and everything went wrong then 我有一个使用1.9.2和Rails 3.2的应用程序,今天我将ruby版本更改为1.9.3(使用rbenv),然后一切都出错了。

I had this on my gemfile 我在我的gemfile上有这个

group :development do gem 'sqlite3' end group:development做gem'sqlite3'结束

group :production do gem 'pg' end 组:生产宝石'pg'结束

Everytime I run: 每次我跑:

bundle install --without production 捆绑安装-无生产

Nothing happens now and when I do 现在什么时候都没有发生

git push heroku master git push heroku主

I get the same error: 我犯了同样的错误:

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:

Its obviously trying to install sqlite, but even if I remove the sqlite gem from my Gemfile nothing happens, seems that the problem is in heroku but now I can't do nothing 它显然试图安装sqlite,但是即使我从我的Gemfile中删除了sqlite gem,也没有任何反应,看来问题出在heroku,但现在我什么也不能做

Hope someone can help me because I was trying to do 希望有人可以帮助我,因为我正在尝试做

heroku db:pull heroku db:拉

and because of that I wanted to add the taps gem, then I followed this tutorial 因此,我想添加taps gem,然后按照本教程进行操作

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

And I changed the version of ruby in heroku, now I think that the problem is rbenv but I'm not sure 我在heroku中更改了ruby的版本,现在我认为问题出在rbenv,但我不确定

Thanks in advance 提前致谢

Javier Q 哈维尔·Q

Actually in order to get all the db I only had to do: 实际上,为了获得所有数据库,我只需要做:

gem install taps

and not to put it into the Gemfile because it requires sqlite3 而不是将其放入Gemfile中,因为它需要sqlite3

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

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