For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > November 2006 > Problem installing Curl









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem installing Curl
Mailing Lists

2006-11-20, 6:58 pm

Hi, I need to install Curl, and It seems to just hang after I do
"install WWW::Curl"

Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Curl
cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
AutoSplitting blib/lib/WWW/Curl/Easy.pm (blib/lib/auto/WWW/Curl/Easy)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap
Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
cc -c -I/usr/include -fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -DVERSION=\"3.02\"
-DXS_VERSION=\"3.02\" -fpic
"-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" Curl.c
Running Mkbootstrap for WWW::Curl ()
chmod 644 Curl.bs
rm -f blib/arch/auto/WWW/Curl/Curl.so
LD_RUN_PATH="/usr/lib:/lib:/usr/kerberos/lib" cc -shared
-L/usr/local/lib Curl.o -o blib/arch/auto/WWW/Curl/Curl.so -lcurl
-L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err -lresolv -ldl -lz -lssl -lcrypto
chmod 755 blib/arch/auto/WWW/Curl/Curl.so
cp Curl.bs blib/arch/auto/WWW/Curl/Curl.bs
chmod 644 blib/arch/auto/WWW/Curl/Curl.bs
Manifying blib/man3/WWW::Curl::Easy.3
Manifying blib/man3/WWW::Curl::Multi.3
Manifying blib/man3/WWW::Curl.3
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00constants.............ok
t/01basic.................


this is where it hangs...
when I type <control>c, then I get this:

make: *** [test_dynamic] Interrupt
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Failed during this command:
CRISB/WWW-Curl-3.02.tar.gz : make_test NO


Does anybody know what is going on?

thanks
Rick



JT

2006-11-20, 6:58 pm



On Nov 20, 9:44 am, l...@gmnet.net (Mailing Lists) wrote:
> Hi, I need to install Curl, and It seems to just hang after I do
> "install WWW::Curl"
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for WWW::Curl
> cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
> cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
> cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
> cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
> AutoSplitting blib/lib/WWW/Curl/Easy.pm (blib/lib/auto/WWW/Curl/Easy)
> /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp
> -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap
> Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
> cc -c -I/usr/include -fno-strict-aliasing -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -DVERSION=\"3.02\"
> -DXS_VERSION=\"3.02\" -fpic
> "-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" Curl.c
> Running Mkbootstrap for WWW::Curl ()
> chmod 644 Curl.bs
> rm -f blib/arch/auto/WWW/Curl/Curl.so
> LD_RUN_PATH="/usr/lib:/lib:/usr/kerberos/lib" cc -shared
> -L/usr/local/lib Curl.o -o blib/arch/auto/WWW/Curl/Curl.so -lcurl
> -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto
> -lcom_err -lresolv -ldl -lz -lssl -lcrypto
> chmod 755 blib/arch/auto/WWW/Curl/Curl.so
> cp Curl.bs blib/arch/auto/WWW/Curl/Curl.bs
> chmod 644 blib/arch/auto/WWW/Curl/Curl.bs
> Manifying blib/man3/WWW::Curl::Easy.3
> Manifying blib/man3/WWW::Curl::Multi.3
> Manifying blib/man3/WWW::Curl.3
> /usr/bin/make -- OK
> Running make test
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00constants.............ok
> t/01basic.................
>
> this is where it hangs...
> when I type <control>c, then I get this:
>
> make: *** [test_dynamic] Interrupt
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
> Failed during this command:
> CRISB/WWW-Curl-3.02.tar.gz : make_test NO
>
> Does anybody know what is going on?
>
> thanks
> Rick


There is some info in the README file regarding environment variables
that may help

-jt

Adriano Rodrigues

2006-11-20, 6:58 pm

On 11/20/06, Mailing Lists <lists@gmnet.net> wrote:
> Hi, I need to install Curl, and It seems to just hang after I do
> "install WWW::Curl"
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for WWW::Curl
> cp lib/WWW/Curl/Form.pm blib/lib/WWW/Curl/Form.pm
> cp lib/WWW/Curl.pm blib/lib/WWW/Curl.pm
> cp lib/WWW/Curl/Multi.pm blib/lib/WWW/Curl/Multi.pm
> cp lib/WWW/Curl/Easy.pm blib/lib/WWW/Curl/Easy.pm
> AutoSplitting blib/lib/WWW/Curl/Easy.pm (blib/lib/auto/WWW/Curl/Easy)
> /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp
> -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap
> Curl.xs > Curl.xsc && mv Curl.xsc Curl.c
> cc -c -I/usr/include -fno-strict-aliasing -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -DVERSION=\"3.02\"
> -DXS_VERSION=\"3.02\" -fpic
> "-I/usr/local/lib/perl5/5.8.0/i686-linux/CORE" Curl.c
> Running Mkbootstrap for WWW::Curl ()
> chmod 644 Curl.bs
> rm -f blib/arch/auto/WWW/Curl/Curl.so
> LD_RUN_PATH="/usr/lib:/lib:/usr/kerberos/lib" cc -shared
> -L/usr/local/lib Curl.o -o blib/arch/auto/WWW/Curl/Curl.so -lcurl
> -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto
> -lcom_err -lresolv -ldl -lz -lssl -lcrypto
> chmod 755 blib/arch/auto/WWW/Curl/Curl.so
> cp Curl.bs blib/arch/auto/WWW/Curl/Curl.bs
> chmod 644 blib/arch/auto/WWW/Curl/Curl.bs
> Manifying blib/man3/WWW::Curl::Easy.3
> Manifying blib/man3/WWW::Curl::Multi.3
> Manifying blib/man3/WWW::Curl.3
> /usr/bin/make -- OK
> Running make test
> PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/00constants.............ok
> t/01basic.................
>
>
> this is where it hangs...
> when I type <control>c, then I get this:
>
> make: *** [test_dynamic] Interrupt
> /usr/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install without force
> Failed during this command:
> CRISB/WWW-Curl-3.02.tar.gz : make_test NO
>
>
> Does anybody know what is going on?


Everything Jay Savage said applies (mainly, do you have a working curl
in your machine?)

I reached the same wall when trying to install the module. If one
takes a look at the test script t/01basic.t (which can be seen here:
http://search.cpan.org/src/CRISB/WW....02/t/01basic.t),
we see a URL which defaults to $ENV{CURL_TEST_URL} || "" and an
attempt to read input from user and to access the network.

I am behind an authenticating proxy, so to use curl, I needed

curl --proxy proxy-host:port --proxy user:password URL

To use just

curl URL

I created a ~/.curlrc with the two lines

proxy= proxy-host:port
proxy-user= user:password

(Apparently this is used by libcurl as well - which is just what we
want from Perl.)

I setted the environment variable

$ CURL_TEST_URL=http://search.cpan.org/dist/WWW-Curl
$ export CURL_TEST_URL

And then, after testing with "perl -Mblib t/01basic.t", I discovered
that I could get away with murder by redirecting /dev/null to STDIN

make test < /dev/null

and it worked (almost with the output at the end of this message). I
don't understand all the details, but the module most works after all.

Regards,
Adriano Ferreira



$ make test < /dev/null
/usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00constants.............ok
t/01basic.................ok
t/02header-callback.......ok
t/03body-callback.........ok
t/04abort-test............ok
t/05progress..............ok
t/06http-post.............ok
t/07ftp-upload............skipped
all skipped: no reason given
t/08ssl...................ok
t/09times.................ok
t/10errbuf................ok
t/11oldstyle1.............ok
t/12oldstyle2.............ok
t/13slowleak..............ok
t/14duphandle.............ok
t/15duphandle-callback....ok
t/16formpost..............ok
t/17slist.................skipped
all skipped: no reason given
t/18twinhandles...........FAILED test 5
Failed 1/8 tests, 87.50% okay
t/19basic-back............skipped
all skipped: no reason given
t/20basic-back-func.......skipped
all skipped: no reason given
t/21basic-back-easy.......ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/18twinhandles.t 8 1 5
4 tests skipped.
Failed 1/22 test scripts. 1/134 subtests failed.
Files=22, Tests=134, 387 wallclock secs ( 9.74 cusr + 6.18 csys = 15.93 CPU)
Failed 1/22 test programs. 1/134 subtests failed.
make: *** [test_dynamic] Error 255
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com