racc 1.4.6 fails to install on windows

A

Amey Mahajan

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.
 
L

Luis Lavena

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top