cURL / Mailing Lists / curl-users / Single Mail

curl-users

Perl www::curl quite uneasy

From: Laurent Demaret <laurent.demaret_at_free.fr>
Date: Fri, 12 Sep 2003 22:39:52 +0200

Hi,

I asked here a few days ago how to make curl invoke an https url and it
works fine, thank you.
Seing what curl was able to do I wanted to get a tool in order to
request urls composed via the most simple interface within the terminal
where i could input values to request. Some of terminal https client.
Decided to choose perl as there is a lot of stuff ready to build and
got on an horrible mess because I update perl 5.6 built in for 5.8
mucho meilleure.
 From there i have read your explanation that the built in curl is not
the good one, opened as session as root in aqua mode and copied
/sw/lib/include/curl/ directory at /usr/lib/include/ place. Sacrilege ..

But it did not worked. It goes much further but I'm still stopped :

> cpan> install WWW::Curl
> Running install for module WWW::Curl
> Running make for C/CR/CRISB/WWW-Curl-2.0.tar.gz
> Is already unwrapped into directory
> /Users/ld/.cpan/build/WWW-Curl-2.0
> Has already been processed within this session
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00constants.............
> Testing curl version libcurl/7.10.3 OpenSSL/0.9.7a ipv6 zlib/1.1.3
> t/00constants.............ok
> t/01basic.................ok 1/6

There I have been obliged to ctrl-c to make it stops. It was just
blinking and waiting, if i make return it goes on saying things are
wrong so Ctrl-C to stop everything seemed me better ...

[Mymac/] ld% curl -V
curl 7.10.3 (powerpc-apple-darwin6.6) libcurl/7.10.3 OpenSSL/0.9.7a
ipv6 zlib/1.1.3

So i decided to download last curl archive and discovered it could not
go through all tests

> [/Temp_Items/curl-7.10.8-pre1] ld% ld% make test
> Making all in data
> make[2]: Nothing to be done for `all'.
> Making all in server
> make all-am
> Making all in libtest
> make[2]: Nothing to be done for `all'.
> make[2]: Nothing to be done for `all-am'.
> make all-am
> [ -f test1 ] || ln -s ./test* .
> srcdir=. /usr/bin/perl -I. ./runtests.pl -s -a
> ********* System characteristics ********
> * curl 7.10.8-pre1 (powerpc-apple-darwin6.6)
> * libcurl/7.10.8-pre1 OpenSSL/0.9.6i ipv6 zlib/1.1.3
> * Host: OscarMac.local.
> * System: Darwin OscarMac.local. 6.6 Darwin Kernel Version 6.6: Thu
> May 1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power
> Macintosh powerpc
> * Server SSL: OFF
> * libcurl SSL: ON
> * libcurl debug: OFF
> *****************************************
> test 001...OK
> ..
> TESTDONE: 142 tests out of 142 reported OK: 100%
> TESTDONE: 158 tests were considered.
> TESTINFO: 16 tests were skipped due to these restraints:
> TESTINFO: "no SSL-capable server" 11 times (300, 301, 302, 303, 304,
> 305, 306, 400, 401, 402, 403)
> TESTINFO: "lacks netrc_debug" 5 times (130, 131, 132, 133, 134)
>
Maybe i should just place new version /usr/local/include ?

Could be ..

And it could be a wrong thing to do ?

I have read pdf, INSTALL README, i have tried the exemples config --

> [/Temp_Items/curl-7.10.8-pre1] ld% curl-confg --libs
> curl-confg: Command not found.
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --libs
> -L/sw/lib -lcurl -L/sw/lib -lz -ldl -lz
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --cflags
>
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --cflags
>
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --feature | grep SSL
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --feature | grep SSL
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --cc --cflags --libs -o
> example example.c
> gcc
>
> -L/sw/lib -lcurl -L/sw/lib -lz -ldl -lz
> unknown option: -o
> Usage: curl-config [OPTION]
>
> Available values for OPTION include:
>
> --ca ca bundle install path
> --cc compiler
> --cflags pre-processor and compiler flags
> --feature newline separated list of enabled features
> --help display this help and exit
> --libs library linking information
> --prefix curl install prefix
> --version output version information
> --vernum output the version information as a number (hexadecimal)

I'm afraid it's over me ..

so long ...

Maybe ...
I tried to run cpan archive that was the beginning ..
> WWW-Curl-2.0.tar.gz
> Is already unwrapped into directory
> /Users/ld/.cpan/build/WWW-Curl-2.0
so moved to WWW-curl directory
and edit Makefile in wich i found :
> # Get curl to tell us where it is, if we can
> #
> my $cflags = `curl-config --cflags`;
> my $lflags = `curl-config --libs`;

And i know the answer in config --test which was not the good one :
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --libs
> -L/sw/lib -lcurl -L/sw/lib -lz -ldl -lz
> [/Temp_Items/curl-7.10.8-pre1] ld% curl-config --cflags
> -- no answer ..

That could be the point ? should be /usr/lib/ ?

tia for help if you can. now i need to wait your answer and leave a bit
that screen,

btw : python would not be more appropriated ? did not try that ..

laurent demaret

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-12