From: "Md.elme focruzzaman Shuvo" Date: 2007-06-09T04:15:27+09:00 Subject: Re: Installing Curb Was: Re: ruby libcurl maintainer? Jano Svitok wrote: > On 6/8/07, Md.elme focruzzaman Shuvo wrote: >> > 1. you need msvc 6.0 because curb contains c extension - to compile it >> > start cmd.exe, exexute vsvars32.bat and after that you are ready to >> >> Thank You again Jano, >> >> One thins again. I already use php curl & libcurlNET. I am familier with >> C/C++ also.But never use libcurl in c/c++. So, do not know how can I >> install it. I try to put libcurl.dll on the System32 dir but the result >> is same.I do not want to built it again just want to use the >> libcurl.dll. Can you please help me? How can I install libcurl on my >> machine? > > I suppose you have VC6 installed. > > from the zip file I mentioned, you need: 1. header files, put them in > c:/program files/msvs/vc/inc/curl > 2. libcurl.dll - put it somewhere on the path > 3. libcurl_imp.lib - put it into msvs/vc.lib > maybe you'll need to rename it to curl.lib to match the gem config > > After that, try again *from the vsvars environment* (I suppose you > should get another kind of message when you call gem from vc > environment. > > J. Thanks Jano, You are greate.But now I got the following error message: -------------------------------------------------------- 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 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' 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 ------------------------------------------------------------ I put the curl(the header fielse) on to C:\Program Files\Microsoft Visual Studio\VC98\Include path. Rename libcur_imp.lib to curl.lib and put it into C:\Program Files\Microsoft Visual Studio\VC98\Lib path. And finally the libcurl.dll. I do not understand well where it I can put. So, 1st I put it the path C:\Program Files\Microsoft Visual Studio\VC98.After got the error message 1st time I put them (libcurl.dll,libeay32.dll,ssleay32.dll & zlib1.dll) into the path C:\Program Files\Microsoft Visual Studio\VC98\Include.I got the same error message.And finally I put then into C:\Program Files\Microsoft Visual Studio\VC98\Include\curl path and I got the same error message.What is my misstake? I guss I have failed to put the libcurl.dll into the right path. Please help me. Regards, Shuvo. -- Posted via http://www.ruby-forum.com/.