Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I have tried 'cpan install LWP::UserAgent::https', but it seemed didn't work. Then i tried to force it with 'cpan install -fi LWP::UserAgent::https'. It said 'make install --OK'.

Note that the distribution name is LWP::Protocol::https, not LWP::UserAgent::https, which does not exist.

That most likely means that "installing" the module failed its tests for some reason, but you decided to paper over the failure.

A better approach is to look at the installation log and look at the failure cause:

cpan look LWP::Protocol::https perl Makefile.PL make make test

If the output of make test (or anything earlier) is not OK, you should investigate that failure. For me, installing URI fails, for example, on a current Termux, on Android 8 (Oreo).

Update: At least the URI.pm test failure can be forced. It only happens because the test suite assumes a working /bin/pwd (which does exist but fails to work on Termux).

Update 2: After that, I need to also install openssh-dev using the Termux package manager. Net::SSLeay still fails to find the headers, but that should be fixable by setting some environment variables.

Unless you tell us more about the exact failure you get, I'll leave things be at this point in time.


In reply to Re: How to Install LWP::UserAgent::https in Termux by Corion
in thread How to Install LWP::UserAgent::https in Termux by Anon6372098

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-25 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found