racc 1.4.6 fails to install on windows

Discussion in 'Ruby' started by Amey Mahajan, May 5, 2010.

  1. Amey Mahajan

    Amey Mahajan Guest

    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/.
     
    Amey Mahajan, May 5, 2010
    #1
    1. Advertising

  2. Amey Mahajan

    Luis Lavena Guest

    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
     
    Luis Lavena, May 5, 2010
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim Freeze

    Which racc?

    Jim Freeze, Sep 25, 2003, in forum: Ruby
    Replies:
    1
    Views:
    105
    Minero Aoki
    Sep 25, 2003
  2. Jim Freeze

    Error reporting in Racc

    Jim Freeze, Oct 17, 2003, in forum: Ruby
    Replies:
    0
    Views:
    99
    Jim Freeze
    Oct 17, 2003
  3. Martin DeMello

    Can't compile racc under windows

    Martin DeMello, Aug 18, 2004, in forum: Ruby
    Replies:
    2
    Views:
    87
    Martin DeMello
    Aug 19, 2004
  4. Rod Dik

    Can't install racc

    Rod Dik, Jun 9, 2009, in forum: Ruby
    Replies:
    2
    Views:
    106
    Rod Dik
    Jun 9, 2009
  5. Gordon Marsh

    Racc fails on install

    Gordon Marsh, Nov 27, 2009, in forum: Ruby
    Replies:
    7
    Views:
    166
    Gordon Marsh
    Nov 30, 2009
Loading...

Share This Page