rhc-create-domain出错(Openshitft)

时间:2012-05-30 01:30:26

标签: ruby jboss openshift openshift-client-tools

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

Error with rhc-create-domain on command line (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':没有这样的文件要加载 - mime / types但是我可以在哪里或者在哪里安装或修复它?,thnks。

1 个答案:

答案 0 :(得分:2)

我通过一个简单的解决方案来解决这个问题。 Gemspecs有一些不同的日期格式,不能验证。 我运行这个命令:

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

然后我可以运行命令

$ rhc domain create thkns。