CloudFoundry需要哪个版本的红宝石? [英] which version of ruby is needed for CloudFoundry?

查看:126
本文介绍了CloudFoundry需要哪个版本的红宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过vmc工具管理我的mysql服务时.我收到如下错误:

when I try to manager my mysql service by vmc tool. I got a error like below:

$ vmc tunnel cucgp --port 9999 mysql
Getting tunnel connection info: OK

Service connection info: 
  username : uxpHWCAlOdElr
  password : pIw5h2MKQjDOI
  name     : d4bbe4b16b3904c41bd5ff42c1df92b7a

Starting tunnel to cucgp on port 9999.
Launching 'mysql --protocol=TCP --host=localhost --port=9999 --user=uxpHWCAlOdElr --password=pIw5h2MKQjDOI d4bbe4b16b3904c41bd5ff42c1df92b7a'

terminate called after throwing an instance of 'std::runtime_error'
  what():  Encryption not available on this event-machine
已放弃
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
$ vmc -v
vmc 0.3.18

我的ruby版本有麻烦吗?我只是使用ubuntu来源的apt安装它. 最后,我为我的英语不好道歉.

Is that some trouble with my ruby version?I just install it with apt from ubuntu source. At the end, I make apologies for my poor English.

推荐答案

我们建议您至少使用1.9.2或Ruby版本,最简单的安装方法是使用RVM-

we recommend you use at least version 1.9.2 or Ruby, the easiest way to install this is with RVM - https://rvm.io/rvm/install/, have a good scan over this site before continuing

要安装它,只需在终端窗口中运行以下命令;

To install it, just run the following command in a terminal window;

$ curl -L https://get.rvm.io | bash -s stable --ruby

RVM允许您管理多个版本的ruby,它还将在该版本中安装的所有宝石存储在用户的主目录中,这意味着您可以安装宝石而不必使用sudo!

RVM allows you to manage multiple versions of ruby, it also stores any gems installed for that version in your users home path which means you can install gems without having to use sudo!

一旦安装了RVM,我将继续安装Ruby的1.9.3版本;

Once RVM is installed, I would go ahead and install version 1.9.3 of Ruby;

$ rvm install 1.9.3

然后告诉RVM默认使用此版本

Then tell RVM to use this version by default

$ rvm use 1.9.3 --default

完成此操作后,您需要重新安装以前为1.8.7安装的所有gem,因此请重新安装vmc和caldecott

Once you have done this you need to re-install any gems you may have previously installed for 1.8.7, so re-install vmc and caldecott

$ gem install vmc
$ gem install caldecott

这篇关于CloudFoundry需要哪个版本的红宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆