On Fri, Jul 20, 2012 at 4:30 AM, Sophia <sophia.joac
...@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