如今最新版本是4.0.2, 使用這個key仍然有效, 對於這個沒什麼好說的, 若有必要,請支持購買正版。html
No.1:mysql
name: rubymine
License Key:git
70414-12042010
github
00002VG0BeoZbwmNAMNCx5E882rBEM
Ysn1P!e"s830EDlHcWg8gmqYVkvZMo
Injf4yqlO1yy"82NiwNzyYInoT7AiX
No.2:sql
username:EMBRACE
license key:
89330-12042010
00001p4HOxG8it!A4uOcpk1E"boEjk
數據庫
v!tn2JZJC8Jw4hVlEmviJ0ge461sTw
owxcaVPQvd1gQzGxOpt2rElKQ3"R7w
1
2
3
4
5
6
7
8
9
10
11
|
class
Hello
def
say
str =
'hello world!!!'
5
.times { puts str }
end
end
hello = Hello.
new
()
hello.say
|
1
|
gem install rails --version "= 4.0.0" --no-ri --no-rdoc
|
1
|
gem install rails-4.0.0.gem --verbose --no-ri --no-rdoc
|
1
2
3
4
5
6
7
8
|
#列舉全部源
gem sources
#添加一個源
gem sources -a "http://ruby.taobao.org"
#刪除一個源
gem sources -r "https://rubygems.org"
|
1
2
3
4
|
http:
//rubygems
.org/
http:
//gems
.github.com
http:
//gems
.rubyforge.org
http:
//ruby
.taobao.org
|
1
2
|
#更新RubyGem管理器
gem update --system
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
D:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=D:/RailsInstaller/Ruby1.9.3/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
extconf.rb:37:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError
)
Gem files will remain installed in D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/mysql2-0.3.13 for inspection.
Results logged to D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.
3.13/ext/mysql2/gem_make.out
|
1
2
3
4
|
gem install mysql2 --platform=ruby --
'--with-mysql-lib="C:\Program Files (x86)\MySQL\mysql-connector-c-noinstall-6.0.2-win32\lib"
--with-mysql-include="C:\Program Files (x86)\MySQL\mysql-connector-c-noinstall-6.0.2-win32\include"
--with-mysql-dir="C:\Program Files (x86)\MySQL\mysql-connector-c-noinstall-6.0.2-win32"'
|
1
2
3
4
5
6
7
|
D:\Ruby200\bin>gem install rails --platform=ruby
ERROR: Error installing rails:
The 'atomic' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
|
1
2
3
4
5
6
7
8
|
> cd <DEVKIT_INSTALL_DIR>
> ruby dk.rb init
#生成config.yml,這裏會檢查將要添加DevKit支持的Ruby列表,只支持經過RubyInstaller安裝的Ruby
#若是這裏列出的Ruby與你的要求不符,能夠手動修改
> ruby dk.rb review #檢查要添加DevKit支持的Ruby列表是否有誤,能夠略過
> ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby192'
[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'
|