Installing json-1.1.1 gem on windows xp

S

Sumanth Ambati

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.
 
F

Florian Frank

Sumanth said:
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.
 
L

Luc Heinrich

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.
 
S

Sumanth Ambati

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
 
S

Sumanth Ambati

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.
 
M

Mehedi Hasan

Sumanth said:
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...
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top