开发环境搭建
现在最新版本是4.0.2, 使用这个key仍然有效, 对于这个没什么好说的, 如有必要,请支持购买正版。
No.1:
name:rubymine
License Key:
70414-12042010
00002VG0BeoZbwmNAMNCx5E882rBEM
Ysn1P!e"s830EDlHcWg8gmqYVkvZMo
Injf4yqlO1yy"82NiwNzyYInoT7AiX
No.2:
username:EMBRACE
license key:
89330-1204201000001p4HOxG8it!A4uOcpk1E"boEjk
v!tn2JZJC8Jw4hVlEmviJ0ge461sTw
owxcaVPQvd1gQzGxOpt2rElKQ3"R7w
1 2 3 4 5 6 7 8 9 10 11 | class Hello
def say
str= 'helloworld!!!'
5 .times{putsstr}
end end hello=Hello. new () hello.say |
1 | geminstallrails--version"=4.0.0"--no-ri--no-rdoc |
1 | geminstallrails-4.0.0.gem--verbose--no-ri--no-rdoc |
1 2 3 4 5 6 7 8 |
1 2 3 4 | http: //rubygems .org/ http: //gems .github.com http: //gems .rubyforge.org http: //ruby .taobao.org |
1 2 | #更新RubyGem管理器 gemupdate--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:Errorinstallingmysql2:
ERROR:Failedtobuildgemnativeextension.
D:/RailsInstaller/Ruby1.9.3/bin/ruby.exeextconf.rb checkingforrb_thread_blocking_region()...yes checkingforrb_wait_for_single_fd()...yes checkingforrb_hash_dup()...yes checkingforrb_intern3()...yes ***extconf.rbfailed*** CouldnotcreateMakefileduetosomereason,probablylackof necessarylibrariesand/orheaders.Checkthemkmf.logfileformore details.Youmayneedconfigurationoptions. Providedconfigurationoptions:
--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>':undefinedmethod`[]'fornil:NilClass(NoMethodError ) GemfileswillremaininstalledinD:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9 .1/gems/mysql2-0.3.13forinspection. ResultsloggedtoD:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0. 3.13/ext/mysql2/gem_make.out |
1 2 3 4 | geminstallmysql2--platform=ruby-- '--with-mysql-lib="C:ProgramFiles(x86)MySQLmysql-connector-c-noinstall-6.0.2-win32lib" --with-mysql-include="C:ProgramFiles(x86)MySQLmysql-connector-c-noinstall-6.0.2-win32include" --with-mysql-dir="C:ProgramFiles(x86)MySQLmysql-connector-c-noinstall-6.0.2-win32"' |
1 2 3 4 5 6 7 | D:Ruby200in>geminstallrails--platform=ruby ERROR:Errorinstallingrails:
The'atomic'nativegemrequiresinstalledbuildtools. PleaseupdateyourPATHtoincludebuildtoolsordownloadtheDevKit from'http://rubyinstaller.org/downloads'andfollowtheinstructions |
1 2 3 4 5 6 7 8 | >cd<DEVKIT_INSTALL_DIR> >rubydk.rbinit #生成config.yml,这里会检查将要添加DevKit支持的Ruby列表,只支持通过RubyInstaller安装的Ruby #如果这里列出的Ruby与你的要求不符,可以手动修改 >rubydk.rbreview#检查要添加DevKit支持的Ruby列表是否有误,可以略过 >rubydk.rbinstall [INFO]Updatingconveniencenoticegemoverridefor'C:/Ruby192' [INFO]Installing'C:/Ruby192/lib/ruby/site_ruby/devkit.rb' |