ruby是什么意思

Python014

ruby是什么意思,第1张

ruby的汉语意思如下:

n.

红宝石深红色。

adj.

红宝石的红宝石色的。

ruby的读音是:英 [ˈruːbi]   美 [ˈruːbi] 。

ruby的造句如下:

1、RDT is a far more full-featured Ruby IDE with a ton of exciting and time-saving options.

RDT是一个功能更为完善的Ruby开发环境,具备许多令人兴奋并且可以节省大量开发时间的选项。

2、Rich ruby color with tastes of black cherry, full plum and soft vanilla and toffee notes.

酒体呈漂亮的宝石红色,富含蓝莓和熟李子的果香,以及优雅的香草及太妃糖香气。

3、Download and install Ruby libraries easily.

容易地下载和安装ruby库。

4、Tasting notes: A bright ruby red colour with attractive purple hues.

品酿笔记:酒泽如红宝石般明亮动人,但又透露著 * 紫色于其中。

5、Deep ruby coloured with purple reflections in the first years and tending to orange when older.

深宝石红,年轻时泛紫色边缘,随着时间变化会慢慢转成橘黄色。

6、The origin of Ruby Fall.

红宝石瀑布的起源.

先安装rubyinstaller,下载并解压DevKit,注意,这两个版本要对应,网页上有说明(http://rubyinstaller.org/downloads/),解压DevKit后,打开目录,运行devkitvars.bat(是不是必须的不确定)。

打开cmd,进入DevKit的解压目录

ruby dk.rb

---

Configures an MSYS/MinGW based Development Kit (DevKit) for

each of the Ruby installations on your Windows system. The

DevKit enables you to build many of the available native

RubyGems that don't yet have a binary gem.

Usage: ruby dk.rb COMMAND [options]

where COMMAND is one of:

init prepare DevKit for installation

review review DevKit install plan

install install required DevKit executables

and 'install' [options] are:

-f, --force overwrite existing helper scripts

-------------

ruby dk.rb init

---

Initialization complete! Please review and modify the auto-generated

'config.yml' file to ensure it contains the root directories to all

of the installed Rubies you want enhanced by the DevKit.

--------------------------------

ruby dk.rb install

---

Invalid configuration or no Rubies listed. Please fix 'config.yml'

and rerun 'ruby dk.rb install'

如果出现的是这个,则需要修改config.yml

加入

- C:\Ruby200-x64

---

[INFO] Updating convenience notice gem override for 'C:/Ruby200-x64'

[INFO] Installing 'C:/Ruby200-x64/lib/ruby/site_ruby/devkit.rb'

这是对的

---------------------

gem install ruby-debug-ide

---

Temporarily enhancing PATH to include DevKit...

Building native extensions. This could take a while...

Successfully installed ruby-debug-ide-0.4.17

Parsing documentation for ruby-debug-ide-0.4.17

Installing ri documentation for ruby-debug-ide-0.4.17

1 gem installed

在Mac OS X上安装 Ruby运行环境:

在安装CocoaPods之前要先配置好RUBY环境,本文就怎么安装RUBY的环境进行一总结。安装Ruby环境首先需要安装Xcode然后需要安装Homebrew,接下来需要安装RVM最后安装Ruby环境。

Homebrew是一个包管理器,用于在mac上安装一些os x上没有的UNiX工具。Homebrew将这些工具统统安装到了 /usr/local/Cellar 目录中,并在 /usr/local/bin 中创建符号链接。

1.中文地址:http://brew.sh/index_zh-cn.html

打开终端(Terminal)把以下粘贴到终端内

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装过程中需要按回车确认(Press enter to continue)安装完后可以通过brew doctor命令检查是否安装成功,如果提示"Your system is ready to brew."就可以使用了。可以参考:http://blog.csdn.net/maojudong/article/details/7918291

2.安装设置RVM

命令:curl -L https://get.rvm.io | bash -s stable

期间会问你管理员的密码,以及自动通过homebrew安装依赖包,等待一段时间后就可以成功安装好 RVM。 然后,载入 RVM环境(新开 Termal 就不用这么做了,会自动重新载入的)

3. 设置RVM

通过以下命令启用RVM

source ~/.rvm/scripts/rvm

检查一下是否安装正确命令

rvm -v

正确的话会出现类似下面的文字

rvm 1.26.11 (master) by Wayne E. Seguin [email protected]>, Michal Papis [email protected]>[https://rvm.io/]

4.安装RUBY

rvm install 2.0.0

漫长的等待下载过程,安装完成后需要执行下面的命令指定哪个RUBY为系统默认的

rvm 2.0.0 --default