From: Luis Lavena Date: 2010-05-06T01:30:07+09:00 Subject: Re: racc 1.4.6 fails to install on windows On May 5, 2:15 am, Amey Mahajan wrote: > 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. > Ruby DevKit is required to compile extensions that are not provided as prebuilt-binaries. Please report to racc bug tracker the issue with Windows: http://rubyforge.org/projects/racc/ You can suggest the project developers to use rake-compiler to take advantage of cross-compilation functionality and provide binaries for Windows. -- Luis Lavena