curl-library
Re: install (fwd)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 4 Jan 2002 07:37:40 +0100 (MET)
Date: Fri, 4 Jan 2002 07:37:40 +0100 (MET)
Please don't mail me privately with curl-related questions. I forward this to
the mailing list.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ ---------- Forwarded message ---------- Date: Thu, 03 Jan 2002 17:23:06 -0500 From: rick vaillancourt <rick_vaillancourt_at_hotmail.com> To: daniel_at_haxx.se Subject: Re: install Thanks Daniel. I downloaded the source got it going... I ran the ftpget.c successfully, it ftp'd the file. I switched to run the simple.c, I ran it with 3 different urls: curl.haxx.se localhost:8080/MyTest.html www.yahoo.com the example seemed to run ok(slow), the dumpit file was created, but was empty. Is the response from the page supposed to be written to the dumpit file? Any ideas? Thanks. -Rick ////////////// simple.c //////////////// #include <stdio.h> #include <curl/curl.h> #include <curl/types.h> #include <curl/easy.h> int main(int argc, char **argv) { CURL *curl; CURLcode res; FILE *headerfile; headerfile = fopen("dumpit", "w"); curl = curl_easy_init(); if(curl) { /* what call to write: */ /* curl_easy_setopt(curl, CURLOPT_URL, "curl.haxx.se"); */ /* curl_easy_setopt(curl, CURLOPT_URL, "localhost:8080/MyTest.html"); */ curl_easy_setopt(curl, CURLOPT_URL, "www.yahoo.com"); curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile); res = curl_easy_perform(curl); /* always cleanup */ curl_easy_cleanup(curl); } return 0; } >From: Daniel Stenberg <daniel_at_haxx.se> >To: rick vaillancourt <rick_vaillancourt_at_hotmail.com> >CC: libcurl Mailing list <curl-library_at_lists.sourceforge.net>, Jean >Robertson <jean_at_cc.mcgill.ca> >Subject: Re: install >Date: Wed, 2 Jan 2002 23:50:54 +0100 (MET) > >On Wed, 2 Jan 2002, rick vaillancourt wrote: > >[reply CC'ed to the libcurl mailing list and Jean Robertson who packages >the >archive you downloaded, please direct follow-ups to the mailing list] > > > I am trying to get your C++ lib installed and get an example running > > without much luck yet. > >Actually, it is a C library. The difference may not be too important >though. > > > I have untar'd curl-ssl-7.9.2-sparc-2.6.pkg.tar[1] to a test diectory. > > > > from what I am reading on "curl.haxx.se/docs/install", the following >looks > > like the appropriate steps. > > > > ./configure > > make > > make test (optional) > > make install > >Those installation steps you refer to are what it takes to build curl and >libcurl from the standard source distribution archive. You, however, didn't >get one of those. You have downloaded a binary package pre-compiled for >Solaris 2.6 on Sparc. > >Based on the 'pkg' part of the file name, I figure it means that you should >use 'pkgadd' and family to install this package in your system. > >Jean, can you give us some more details? > > > I do see a /curlssl/bin/curl-config, I tried that instead and I get > > prompted for parameters when I run it, I am not sure what to specify. > >Yes, as that is not 'configure'. curl-config is explained in detail here: >http://curl.haxx.se/libcurl/using/curl-config.html > >If you have a compiler installed, getting a source archive and >compile/build >using that is very easy. > >-- > Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ > _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.comReceived on 2002-01-04