我正在对heroku进行第一次测试,我对heroku db有问题:推送。 我的配置:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0]
gem 1.3.7
有人可以帮助我吗?
$ heroku db:push
Loaded Taps v0.3.12
Auto-detected local database: mysql://root@localhost/siftest?encoding=utf8
Warning: Data in the app 'morning-waterfall-18' will be overwritten and will not be recoverable.
Are you sure you wish to continue? (y/n)? y
Sending schema
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
Schema: 100% |==========================================| Time: 00:00:24
/Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3:in `require': no such file to load -- rubygems (LoadError)
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/bin/schema:3
/Library/Ruby/Gems/1.8/gems/json_pure-1.4.6/lib/json/pure/parser.rb:148:in `parse': source did not contain any JSON! (JSON::ParserError)
from /Library/Ruby/Gems/1.8/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/lib/taps/operation.rb:410:in `push_indexes'
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/lib/taps/operation.rb:388:in `run'
from /Library/Ruby/Gems/1.8/gems/taps-0.3.12/lib/taps/cli.rb:169:in `clientxfer'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/lib/heroku/commands/db.rb:162:in `taps_client'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/lib/heroku/commands/db.rb:13:in `push'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/lib/heroku/command.rb:48:in `send'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/lib/heroku/command.rb:48:in `run_internal'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/lib/heroku/command.rb:20:in `run'
from /Library/Ruby/Gems/1.8/gems/heroku-1.10.5/bin/heroku:13
from /usr/bin/heroku:19:in `load'
from /usr/bin/heroku:19
答案 0 :(得分:0)
你得到没有这样的文件加载rubygems错误,这可能意味着:
3.3没有这样的文件加载 - rubygems
当我运行gem命令时,我收到以下错误消息:
ruby:没有要加载的文件 - rubygems(LoadError) 怎么了?
答案 看起来执行Ruby的副本没有安装RubyGems库。 RubyGems可能一次安装(因为gem命令被识别),但它可能已经安装在与您当前运行的Ruby不同的Ruby安装上。
要检查的事情 检查正在运行的Ruby的安装是否与安装了RubyGems的安装相同。在unix系统上,which命令(或类型命令)将帮助解决这个问题。 验证当前正在运行的Ruby安装确实安装了RubyGems库。您应该在Ruby安装的site_ruby / 1.8目录中找到“rubygems.rb”文件。 安装新的Ruby实例后很容易发生这些混淆,但旧的实例先于PATH列表中的新实例。
可在此处找到该信息:http://docs.rubygems.org/read/chapter/19