ruby on rails - Gems suddenly missing -
i'm learning how utilize ruby on rails , fine. today, tried utilize command rails new foo
or rails -v
gave me this:
c:\users\me\ruby>rails new demo_app c:/program files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems.rb:926:in `r eport_activate_error': not find rubygem railties (>= 0) (gem::loaderror) c:/program files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems .rb:244:in `activate_dep' c:/program files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems
.rb:236:in activate' c:/program files (x86)/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems .rb:1307:in
gem' c:/ruby193/bin/rails:22:in `'
so... whats going wrong?
gem list rails
gave me this:
c:\users\me\ruby>gem list rails *** local gems ***
i'm using windows 7 , have no rvm or pik, worked fine lastly 5 days.
okay, tried install rails new 'gem install rails' , said this:
c:\users\me\ruby>gem install rails fetching: i18n-0.6.1.gem (100%) fetching: multi_json-1.5.0.gem (100%) fetching: activesupport-3.2.11.gem (100%) fetching: builder-3.0.4.gem (100%) fetching: activemodel-3.2.11.gem (100%) fetching: rack-1.4.5.gem (100%) fetching: rack-cache-1.2.gem (100%) fetching: rack-test-0.6.2.gem (100%) fetching: journey-1.0.4.gem (100%) fetching: hike-1.2.1.gem (100%) fetching: tilt-1.3.3.gem (100%) fetching: sprockets-2.2.2.gem (100%) fetching: erubis-2.7.0.gem (100%) fetching: actionpack-3.2.11.gem (100%) fetching: arel-3.0.2.gem (100%) fetching: tzinfo-0.3.35.gem (100%) fetching: activerecord-3.2.11.gem (100%) fetching: activeresource-3.2.11.gem (100%) fetching: polyglot-0.3.3.gem (100%) fetching: treetop-1.4.12.gem (100%) fetching: mail-2.4.4.gem (100%) fetching: actionmailer-3.2.11.gem (100%) fetching: rack-ssl-1.3.3.gem (100%) fetching: json-1.7.6.gem (100%) error: error installing rails: 'json' native gem requires installed build tools. please update path include build tools or download devkit 'http://rubyinstaller.org/downloads' , follow instructions @ 'http://github.com/oneclick/rubyinstaller/wiki/development-kit'
well... installed devkit 5 days ago, did again, time starting command line admin.
then 'tried' install json:
c:\users\me\devkit>gem install json temporarily enhancing path include devkit... building native extensions. take while... error: error installing json: error: failed build gem native extension. "c:/program files (x86)/ruby-1.9.2/bin/ruby.exe" extconf.rb creating makefile create makefile:160: warning: overriding commands target `c:/program' makefile:153: warning: ignoring old commands target `c:/program' makefile:160: warning: overriding commands target `files' makefile:153: warning: ignoring old commands target `files' c:/program files (x86)/ruby-1.9.2/bin/ruby -e "puts 'exports', 'init_generator'" > generator-i386-mingw32.def /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `c:/program files (x86)/ruby-1.9.2/bin/ruby -e "puts 'expor ts', 'init_generator'" > generator-i386-mingw32.def' make: *** [generator-i386-mingw32.def] error 2 gem files remain installed in c:/program files (x86)/ruby-1.9.2/lib/ruby/ge ms/1.9.1/gems/json-1.7.6 inspection. results logged c:/program files (x86)/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/jso n-1.7.6/ext/json/ext/generator/gem_make.out
and got this-.-
im beginner in this, dont know else try.
you messed ruby/rails installation @ point.
i highly recommend using railsinstaller takes care of installing ruby, rails , gotchas (devkit etc) you, in 1 click.
of course of study should uninstall first.
ruby-on-rails windows heroku
No comments:
Post a Comment