# Racc 1.4.6 fails to install on windows

**URL:** <https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063>\
**Category:** Ruby\
**Created:** [May 5, 2010, 7:15am UTC](https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063 "2010-05-05T07:15:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahajan-amey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mahajan-amey](https://www.ruby-forum.com/u/mahajan-amey)\
**Post date:** [May 5, 2010, 7:15am UTC](https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063/1 "2010-05-05T07:15:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mahajan-amey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mahajan-amey](https://www.ruby-forum.com/u/mahajan-amey)\
**Post date:** [May 5, 2010, 6:30pm UTC](https://www.ruby-forum.com/t/racc-1-4-6-fails-to-install-on-windows/188063/2 "2010-05-05T18:30:48Z")

</div>

On May 5, 2:15 am, Amey M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> from extconf.rb:3
> 
> ```
> 
> 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/](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.
