From: Amey Mahajan Date: 2010-05-05T14:15:39+09:00 Subject: racc 1.4.6 fails to install on windows racc fails to install and gives following error on the STDOUT. D:\Watir>gem install --local racc-1.4.6.gem Building native extensions. This could take a while... ERROR: Error installing racc-1.4.6.gem: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb extconf.rb:3:in ``': No such file or directory - uname -p (Errno::ENOENT) from extconf.rb:3 Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/racc-1.4.6 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/racc-1.4.6/ext/racc/cparse/gem_ make.out I need windows equivalent of the racc-1.4.6.gem by performing following steps. 1. Edit the racc-1.4.6.gem for "C:\ruby\lib\ruby\gems\1.8\gems\racc-1.4.6\ext\racc\cparse\extconf.rb" 2. Comment "ENV["ARCHFLAGS"] = "-arch #{`uname -p` =~ /powerpc/ ? 'ppc' : 'i386'}" " line from extconf.rb 3. Execute following steps and provide the gem. % cp -r C:\ruby\lib\ruby\gems\1.8\gems\racc-1.4.6 $HOME % cd $HOME/racc-1.4.6 % rake gem % gem install pkg/racc-1.4.6.gem Note: I don't have Ruby DevKit. Thanks in advance. -- Posted via http://www.ruby-forum.com/.