0

嗨,当我在 Ubuntu 11.10 中运行命令 rhc-create-domain 时出现错误。我按照以下步骤操作:

命令行上的 rhc-create-domain 出错 (Openshitft)

但我接受了这个错误:

mastervodoo@vodoo:/boot/grub$ rhc domain create -n projveh -l xxxxx@gmail.com 
Invalid gemspec in [/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date format in specification: "2012-03-21 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date format in specification: "2012-03-21 00:00:00.000000000Z"
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require': no such file to load -- mime/types (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rest-client-1.6.7/lib/restclient.rb:13
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rest-client-1.6.7/lib/rest-client.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rhc-0.92.11/lib/rhc-rest.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rhc-0.92.11/lib/rhc-common.rb:12
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:53:in `require'
from /var/lib/gems/1.8/gems/rhc-0.92.11/bin/rhc-domain:2
from /usr/local/bin/rhc-domain:19:in `load'
from /usr/local/bin/rhc-domain:19

我需要 `gem_original_require': no such file to load -- mime/types 但是我如何或在哪里可以安装或修复它?,谢谢。

4

1 回答 1

2

好吧,我用一个简单的解决方案解决了这个问题。Gemspecs 有一些不验证的不同日期格式。我运行这个命令:

$ sudo sed -i 's/ 00:00:00.000000000Z//' /var/lib/gems/1.8/specifications/*

然后我可以运行命令

$ rhc 域创建 thkns。

于 2012-05-30T02:45:53.753 回答