# Installing json-1.1.1 gem on windows xp

**URL:** <https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724>\
**Category:** Ruby\
**Created:** [July 30, 2007, 9:36am UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724 "2007-07-30T09:36:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [July 30, 2007, 9:36am UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/1 "2007-07-30T09:36:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [July 30, 2007, 11:40am UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/2 "2007-07-30T11:40:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [July 31, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/3 "2007-07-31T13:29:26Z")

</div>

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 🙂

But I’d love to hear more about this.

---

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [August 1, 2007, 7:17am UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/4 "2007-08-01T07:17:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [August 9, 2007, 9:16am UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/5 "2007-08-09T09:16:29Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![sumi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sumi](https://www.ruby-forum.com/u/sumi)\
**Post date:** [August 1, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/installing-json-1-1-1-gem-on-windows-xp/110724/6 "2007-08-01T16:49:49Z")

</div>

I just saw that the JSON comes as the module with ruby…  
([http://caboo.se/doc/classes/ActiveSupport/JSON.html](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.
