cURL / Mailing Lists / curl-library / Single Mail


Re: install (fwd)

From: Daniel Stenberg <>
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 --
---------- Forwarded message ----------
Date: Thu, 03 Jan 2002 17:23:06 -0500
From: rick vaillancourt <>
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:
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
Any ideas?
////////////// 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_easy_setopt(curl, CURLOPT_URL, "localhost:8080/MyTest.html"); */
    curl_easy_setopt(curl, CURLOPT_URL, "");
    curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
    res = curl_easy_perform(curl);
    /* always cleanup */
  return 0;
>From: Daniel Stenberg <>
>To: rick vaillancourt <>
>CC: libcurl Mailing list <>,        Jean
>Robertson <>
>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
>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
> > 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 "", the following
> > 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:
>If you have a compiler installed, getting a source archive and
>using that is very easy.
>     Daniel Stenberg -- curl groks URLs --
Join the world’s largest e-mail service with MSN Hotmail.
Received on 2002-01-04