Installing json-1.1.1 gem on windows xp

Hi all,
I was trying to install the json extension gem… but says ‘Error
failed to create local extension/nmake …’
When I went through the conf file it showed it requires both mkmf (meant
for extensions) and rbconfig…
Now the question where do I get these files and how do I install them on
my win-xp os…
Thanks in advance…

Sumanth.

Sumanth A. wrote:

I was trying to install the json extension gem... but says 'Error

failed to create local extension/nmake …’
When I went through the conf file it showed it requires both mkmf (meant
for extensions) and rbconfig…
Now the question where do I get these files and how do I install them on
my win-xp os…
Thanks in advance…

This sounds as if you try to compile the gem on your Windows box. This
is a PITA
on this operating system (it comes with no vendor compiler toolchain by
default)
and/or with Ruby (only the One Click Installer?) It might not be
possible at
all. It’s perhaps better, if you use the Windows binary (mswin32
platform) gem I
provide on rubyforge in this case.

You can also try to install the Visual C++ development environment and
Microsoft’s Platform SDK and use the provided Rakefile to create this
gem
yourself, if you still have problems. But this is not for the faint of
heart:
the installation of these two archives takes forever, you have to
configure all
the correct environment variables, and you also have to edit Ruby’s
config.h if
you want to use a current version of Visual C++. If all things are
configured
correctly and in place, it works quite well, though. The whole process
still
feels rather hackish to me – it pisses me off every time I have to walk
through it.

On 30 juil. 07, at 11:39, Florian F. wrote:

This sounds as if you try to compile the gem on your Windows box.

Maybe not. I had the exact same problem a while back when trying to
install (not compile, install) the json gem (yes, the win32 “variant”
which should contain a precompiled binary) on a Windows XP system,
and it just kept failing with the same error message. Since I’m
always trying to keep my usage of Windows to the bare minimum to keep
a good mental health, I just switched to json-pure to be done with it :slight_smile:

But I’d love to hear more about this.

Well thanks for your suggestions guys.
The problem got solved when I installed the json-1.1.1-mswin32 gem and
now I am able to suer the parse method of json.

Sumanth

Sumanth A. wrote:

Hi all,
I was trying to install the json extension gem… but says ‘Error
failed to create local extension/nmake …’
When I went through the conf file it showed it requires both mkmf (meant
for extensions) and rbconfig…
Now the question where do I get these files and how do I install them on
my win-xp os…
Thanks in advance…

Sumanth.

hi all…
I am very new developer in ruby on rails… I faced the same prob…
same configuration as u …
but still problem is not solved so what can i do? can u tell me
plzzzzz…

Mehedi

if u help me then i send u a thanks…otherwise sorry…

I just saw that the JSON comes as the module with ruby…
(http://caboo.se/doc/classes/ActiveSupport/JSON.html). How do I include
this module and make use of the functions like encode and decode? I do
not think that JSON gem is required since we already have the module…

Any help in this regard, welcome. Thanks in advance!

Sumanth.