in reply to Install of libwww-perl problems

It's the "http://" prefix that makes it a bad hostname.

LWP comes with a little script talk-to-ourself which is using Sys::Hostname to determine the hostname of the current system. Apparently something is configured incorrectly... so I would look into Sys::Hostname to figure out why it's returning the hostname with a leading http://.

You can call it standalone like this:

$ perl -MSys::Hostname -e'print hostname()."\n"'

(Update: fixed typo — thanks Anonymous Monk!)

Replies are listed 'Best First'.
Re^2: Install of libwww-perl problems
by Anonymous Monk on Jun 08, 2009 at 14:53 UTC
    hostname is a function :)
    perl -MSys::Hostname -le " print hostname "
Re^2: Install of libwww-perl problems
by ARiccela (Novice) on Jun 08, 2009 at 15:50 UTC
    @AnonymousMonk - Since I am fairly new to Perl and Linux, I did not feel comfortable proceeding with the install until I knew exactly what was causing the problem. I didn't want to do a 'broken install' and then have to go back and fix something I really don't know how to fix! And thank you for the clarification on 'hostname.' I was assuming it was a Linux system var or Perl var. @Almut - Thank you for the explanaion and a direction to pursue!
      If you are running a Webserver , make your hostname match the ServerName