Re: [RubyInstaller] Cucumber Gem installation problem on Windows!!!

454 views
Skip to first unread message

James Cowlishaw

unread,
Jul 20, 2012, 8:00:04 AM7/20/12
to rubyin...@googlegroups.com
Hi Sophia,

Assuming that your ruby install is from rubyinstaller.org, you will need to make sure the devkit (compiler toolchain) is installed.

Check your ruby with:
  C:\ruby -v

Mine shows the following, it is the i386-mingw32 that is important for compatibility with the devkit:
  ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32]

See  http://rubyinstaller.org/downloads/ and look for the development kit download.
You can also refer to the wiki page ( https://github.com/oneclick/rubyinstaller/wiki/Development-Kit ) for a walkthrough.

Once the devkit is installed and working, try installing cucumber gem again:
D:\>gem install cucumber
Building native extensions.  This could take a while...
Fetching: gherkin-2.11.1-x86-mingw32.gem (100%)
Fetching: builder-3.0.0.gem (100%)
Fetching: diff-lcs-1.1.3.gem (100%)
Fetching: cucumber-1.2.1.gem (100%)
Successfully installed json-1.7.3
Successfully installed gherkin-2.11.1-x86-mingw32
Successfully installed builder-3.0.0
Successfully installed diff-lcs-1.1.3
Successfully installed cucumber-1.2.1
5 gems installed

I hope that gets you back to work.

James.


On 20 July 2012 08:30, Sophia <sophia....@gmail.com> wrote:

Hi Team,
I get the following error when i try to install Cucumber gem on my PC.

I have installed Ruby1.8.7. version. I use Windows XP.

C:\Ruby187\bin>gem install cucumber -v 1.2.1
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing cucumber:

    ERROR: Failed to build gem native extension.
    C:/Ruby187/bin/ruby.exe extconf.rb

creating Makefile

make
'make' is not recognized as an internal or external command, operable program or batch file.

Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/json-1.7.3
for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/json-1.7.3/ext/json/ext/pars
er/gem_make.out

Please help me.

Thanks in advance,
Sophia

--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyinstaller/-/GgOnhiJP3WUJ.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.

Luis Lavena

unread,
Jul 20, 2012, 8:31:21 AM7/20/12
to rubyin...@googlegroups.com
On Fri, Jul 20, 2012 at 4:30 AM, Sophia <sophia....@gmail.com> wrote:
> Hi Team,

Hello Sofia,

> I get the following error when i try to install Cucumber gem on my PC.
>
> I have installed Ruby1.8.7. version. I use Windows XP.
>
> C:\Ruby187\bin>gem install cucumber -v 1.2.1
> Temporarily enhancing PATH to include DevKit...
> Building native extensions. This could take a while...
> ERROR: Error installing cucumber:
>
> ERROR: Failed to build gem native extension.
> C:/Ruby187/bin/ruby.exe extconf.rb
>

The error is localized to the json gem, so we will try to install it.

From the error below:

> make
> 'make' is not recognized as an internal or external command, operable
> program or batch file.
>

It seems Ruby is having problems to find the compiler toolchain (make,
gcc and others)

Can you confirm that you installed DevKit? (following the instructions
from the wiki):

https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

First you need to download it from the RubyInstaller page:
http://rubyinstaller.org/downloads

And then extract to a location without spaces. Then execute:

ruby dk.rb init

follow the instructions on the screen and later:

ruby dk.rb install

That should place the DevKit into Ruby in the right locations.

It seems you already had DevKit installed, but you might have
relocated it or removed (I'm not sure about that, we don't know what
you had before)

So you can force installation of the newer DevKit by doing:

ruby dk.rb install --force

After that, please try to install the json gem:

gem install json

Let us know if that works.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Sophia

unread,
Jul 24, 2012, 6:32:14 AM7/24/12
to rubyin...@googlegroups.com
Hi Luis Lavena,
 
Thanks for your reply. I had installed DevKit in sone other path. I installed it in Ruby's bin again and it worked!
Reply all
Reply to author
Forward
0 new messages