[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing json-1.1.1 gem on windows xp

Sumanth Ambati

7/30/2007 7:37:00 AM

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.
--
Posted via http://www.ruby-....

5 Answers

Florian Frank

7/30/2007 9:39:00 AM

0

Sumanth Ambati 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.

--
Florian Frank

Luc Heinrich

7/31/2007 11:29:00 AM

0

On 30 juil. 07, at 11:39, Florian Frank 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.

--
Luc Heinrich



Sumanth Ambati

8/1/2007 5:18:00 AM

0

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
--
Posted via http://www.ruby-....

Sumanth Ambati

8/1/2007 2:50:00 PM

0

I just saw that the JSON comes as the module with ruby...
(http://caboo.se/doc/classes/ActiveSupport...). 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.
--
Posted via http://www.ruby-....

Mehedi Hasan

8/9/2007 7:16:00 AM

0

Sumanth Ambati 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...
--
Posted via http://www.ruby-....