> C:\Program Files\Microsoft Visual Studio\VC98\Bin>gem install curb
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Building native extensions.  This could take a while...
> ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
>     ERROR: Failed to build gem native extension.
>
> ruby extconf.rb install curb
> checking for main() in curl.lib... yes
> checking for curl/curl.h... yes
> creating Makefile
>
> nmake
>
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>         c:\ruby\bin\ruby -e "puts 'EXPORTS', 'Init_curb_core'"  >
> curb_core-i386
> -mswin32.def
>         cl -nologo -I. -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD
> -Zi -O2b2
> xg- -G6 -DHAVE_CURL_CURL_H -c -Tccurb.c
> curb.c

These are compiler errors:

> curb_easy.h(31) : error C2236: unexpected 'struct' '$S1'
> curb_easy.h(31) : error C2027: use of undefined type '$S1'
>         curb_easy.h(31) : see declaration of '$S1'

These are probably consequences of the above error.

> curb.c(224) : error C2275: 'curl_version_info_data' : illegal use of
> this type a
> s an expression
>         C:\PROGRA~1\MIAF9D~1\VC98\INCLUDE\curl/curl.h(1394) : see
> declaration of
>  'curl_version_info_data'
> curb.c(224) : error C2065: 'ver' : undeclared identifier
> curb.c(225) : error C2275: 'VALUE' : illegal use of this type as an
> expression
>         c:/ruby/lib/ruby/1.8/i386-mswin32\ruby.h(86) : see declaration
> of 'VALUE
> '
> curb.c(225) : error C2146: syntax error : missing ';' before identifier
> 'curlver
> '
> curb.c(225) : error C2065: 'curlver' : undeclared identifier
> curb.c(225) : error C2065: 'curllongver' : undeclared identifier
> curb.c(225) : error C2065: 'curlvernum' : undeclared identifier
> curb.c(229) : error C2223: left of '->version' must point to
> struct/union
> curb.c(229) : error C2198: 'rb_str_new2' : too few actual parameters
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
>
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/curb-0.1.2 for
>  inspection.
> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/curb-0.1.2/ext/gem_make.out

> message.What is my misstake? I guss I have failed to put the libcurl.dll
> into the right path. Please help me.

Ok, you're doing good, you're on the right path. Now your compile
environment is right, you can compile.

The error you are facing is a problem somewhere in the sources, or in
the configuration. There's a bug filed that asks for support for
windows, so maybe it just doesn't work. I have looked at the sources,
and can't find that $S1, so I'm confused. I'll have a look tomorrow,
and maybe find something (I don't have a win box here).

In the meantime, you can try to remove the directory
(c:/ruby/lib/ruby/gems/1.8/gems/curb-0.1.2/), and try again.

J.