#46 楼 @ywjno #45 楼 @kgen #43 楼 @litianzzk #42 楼 @tianchaos #好吧·不打算折腾了~
#40 楼 @tianchaos 我知道啥意思!
#4 楼 @qichunren 我在工作的的机器上还是想把 win 弄好~笔记本按上了 linux,其他环境不会出这些乱七八糟的问题吗?谢谢·
请各位帮忙看一下!!!
D:\myapp>bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.1.1) Using i18n (0.6.9) Using minitest (4.7.5) Installing multi_json (1.8.4) Installing atomic (1.1.15) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .
"C:/Program Files/RailsInstaller/Ruby1.9.3/bin/ruby.exe" extconf.rb C:/Program Files/RailsInstaller/Ruby1.9.3/bin/ruby.exe: invalid switch in RUBYOP T: -F (RuntimeError)
Gem files will remain installed in C:/Program Files/RailsInstaller/Ruby1.9.3/lib /ruby/gems/1.9.1/gems/atomic-1.1.15 for inspection. Results logged to C:/Program Files/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/ gems/atomic-1.1.15/ext/gem_make.out An error occurred while installing atomic (1.1.15), and Bundler cannot continue.
Make sure that gem install atomic -v '1.1.15'
succeeds before bundling.
D:\myapp>
刚看到运行 bundle install 我试试~
win 下弄的我头大,还是新手呢·ww
#12 楼 @kevinzhow 好多文件,是这么组织起来的!暂时不会呢·谢谢!
#30 楼 @small_fish__ 请问你建程序的编辑工具用哪个?
#30 楼 @small_fish__ 已经用过了,已经安装成功了,不知道后续会不会出问题·
#14 楼 @zhbinx 删除不了https://rubygems.org/~,不知道什么原因
感谢四位,我是 winxp 下,cmd 命令安装,请帮忙看下! #4 楼 @Martin91 #3 楼 @floger #1 楼 @leozwa #2 楼 @longfellow
cmd 命令下的错误信息: C:\Documents and Settings\Administrator>gem install rails Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb checking for libkern/OSAtomic.h... *** 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=C:/Ruby192/bin/ruby
--with-atomic_reference-dir
--without-atomic_reference-dir
--with-atomic_reference-include
--without-atomic_reference-include=${atomic_reference-dir}/include
--with-atomic_reference-lib
--without-atomic_reference-lib=${atomic_reference-dir}/lib
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in try_do': The complier failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:452:in
try_cpp'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:834:in block in have_header'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in
block in checking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block (2 levels) in postp
one'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in block in postpone'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in
open'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in postpone'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in
checking_for'
from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:833:in have_header'
from extconf.rb:17:in
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/atomic-1. 1.15 for inspection. Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/at omic-1.1.15/gem_make.out