Rails Nmake Error
Contents |
Ruby on Rails Help and rails validation errors Discussion Forum »Setup and Configuration »rails gem installation error.. rails validation error message NMAKE fatal error stdlib.h no such file Pages 1 Posts [ 1 ] 1
Rails Error Messages In View
Topic by ajmal017 2012-12-11 11:58:02 ajmal017 Registered: 2010-02-01 Posts: 2 Topic: rails gem installation error.. NMAKE fatal error stdlib.h no such file I
Rails Custom Error Messages
am getting this error when I install Rails gem or update.. Pls guide..(vctoolkit 2003 was installed to rectify a earlier error of cl not found)Q:\Rails\Rails>gem install railsTemporarily enhancing PATH to include DevKit... Building native extensions. This could take a while...ERROR: Error installing rails: ERROR: Failed to build rails form errors gem native extension. Q:/Rails/Rails/bin/ruby.exe extconf.rbcreating MakefilenmakeMicrosoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. Q:\Rails\Rails\bin\ruby -e "puts 'EXPORTS', 'Init_generator'" > generator-i386-mswin32.def cl -nologo -I. -IQ:/Rails/Rails/include/ruby-1.9.1/i386-mswin32 -IQ:/Rails/Rails/include/ruby-1.9.1/ruby/backward -IQ:/Rails/Rails/include/ruby-1.9.1 -I. -MD -Zi -W2 -O3b2xg- -G6 -Zm600 -DJSON_GENERATOR -Fogenerator.obj -c -Tcgenerator.ccl : Command line warning D4002 : ignoring unknown option '-O3'generator.cq:\Rails\Rails\include\ruby-1.9.1\ruby\ruby.h(50) : fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directoryNMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x2'Stop.Gem files will remain installed in Q:/Rails/Rails/lib/ruby/gems/1.9.1/gems/json-1.7.5 for inspection.Results logged to Q:/Rails/Rails/lib/ruby/gems/1.9.1/gems/json-.7.5/ext/json/ext/generator/gem_make.outQ:\Rails\Rails> Last edited by ajmal017 (2012-12-11 12:41:13) Posts [ 1 ] Pages 1 Rails Forum - Ruby on Rails Help and Discussion Forum »Setup and Configuration »rails gem installation error.. NMAKE fatal error stdlib.h no such file Hosting provided by aTech Media
here for a quick overview of the site Help Center Detailed answers to any questions you might have
Rails Exceptions
Meta Discuss the workings and policies of this site About Us activerecord errors Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with activerecord errors full messages us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just http://archive.railsforum.com/viewtopic.php?id=51569 like you, helping each other. Join them; it only takes a minute: Sign up problems installing thin on Windows up vote 1 down vote favorite 1 I'm trying to install Thin on Windows (ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]) but get an error message: C:>gem install thin Building native extensions. This could take a while... ERROR: http://stackoverflow.com/questions/2100213/problems-installing-thin-on-windows Error installing thin: ERROR: Failed to build gem native extension. C:/rails/ruby/bin/ruby.exe extconf.rb checking for main() in c.lib... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/rails/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcparser.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5 for inspection. Results logged to C:/rails/ruby/lib/ruby/gems/1.8/gems/thin-1.2.5/ext/thin_parser/gem_make.out Google doesn't seem to help me here. Someone knows what is going on? Thanks windows ruby rubygems thin share|improve this question asked Jan 20 '10 at 9:24 Tarscher 1,09411440 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted Thin needs to compile a C extension used by it. While it seems you have nmake, seems that you don't have the complete Visual C++ 6.0 required to build it (the missing cl is the
Windows XP, ruby console) C:\\InstantRails\\rails_apps\\shovell-debug-02>gem install ruby-debug Building https://www.sitepoint.com/community/t/ruby-debug-gem-install-chapter-11/57003 native extensions. This could take a while... ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. C:/InstantRails/ruby/bin/ruby.exe extconf.rb creating Makefile nmake 'nmake' is https://home.apache.org/~dch/blog/2008/09/06/setup-rails-on-windows-to-use-sqlite3/ not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/r uby-debug-base-0.10.3 for inspection. Results error message logged to C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby-debug-base-0. 10.3/ext/gem_make.out :sick: Mittineague 2010-06-07 16:36:44 UTC #2 I think your problem might be InstantRails. I myself and quite a few others here in the forum seem to have had problems with it. I gave up on InstantRails and installed the components separately and even though I rails validation error had a few hurdles I did manage to get everythng working OK. It's been a while so I've forgotten the actual steps I took, but I think if you try to install everything separately too you'll have better luck. axelsword 2010-06-07 12:36:15 UTC #3 Well in fact it did not. Othervise I wouldn't have started a thread about it.Here's the command to run server with debug C:\\InstantRails\\rails_apps>cd coal C:\\InstantRails\\rails_apps\\coal>ruby script/server --debugger => Booting Mongrel => Rails 2.3.5 application starting on http://0.0.0.0:3000 You need to install ruby-debug to run the server in debugging mode. With gems, u se 'gem install ruby-debug' C:\\InstantRails\\rails_apps\\coal> You are welcome to suggest something entirely different. Maybe I should re-install InstantRails or I don't know. I couldn't get "searchlogic" gem to work. I followed railscast about it but when I tried to edit config/environtment.rb then I couldn't start the server. Of course revertin
well the last time I looked at ruby, I did it all on OpenBSD. Seemed pretty easy at the time so I didn’t make any notes. Now I’m doing it on windows, MacOS X & amaxon’s EC2/ubuntu. SQLite is no longer the default DB in rails, but for my dev PC I don’t want the whole hog. So back to SQLite it was. I consider myself a bit of a windows guru, so I wasn’t expecting any real problems. I downloaded ruby & started to get up & running, installing gems, capistrano, ec2onrails, & finally sqlite3. I downloaded the SQLite3 DLL & command tool into SQLite3, added this to the path, & then tried to install the gem: D:\ruby\bin>gem install sqlite3-ruby Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. d:/ruby/bin/ruby.exe extconf.rb install sqlite3-ruby checking for fdatasync() in rt.lib... no checking for sqlite3.h... no nmake 'nmake' is not recognized as an internal or external command, operable program or batch file. not good!! nmake shouldn’t be necessary for installing a gem. Turns out we need to instead use: D:\ruby\bin>gem install --version 1.2.3 sqlite3-ruby Successfully installed sqlite3-ruby-1.2.3-x86-mswin32 1 gem installed Installing ri documentation for sqlite3-ruby-1.2.3-x86-mswin32... Installing RDoc documentation for sqlite3-ruby-1.2.3-x86-mswin32... which works a treat. I expect this will trip up a fair few people so hope this helps the happy googlers.