Subject: Problems installing libnet-1.12.tar.gz / PERL
To: netbsd <netbsd-users@netbsd.org>
From: =?iso-8859-1?q?Shyam=20Kumar=20Mangayil?= <linuxhelpin@yahoo.co.uk>
List: netbsd-users
Date: 11/05/2002 12:09:54
--0-445627692-1036498194=:24779
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


I tried to install libnet-1.12.tar.gz
for getting SMTP.pm and POP3.pm.
We use apache as the web server ,
and have configured IP - based virtual hosts
for this server.
test.org ,testxyz.com ,test34.com , testShippersParadise.com.
However ,
http://testxyz.org/cgi-bin/printenv  or http://test34.com/cgi-bin/printenv
(all use the same cgi-bin , because these are primarily testing )
all show Server Name=test.com

and I know that webmin , qmail , and even PHP use  the @test.com
to send mail.

But when I gave test.com as the domain when asked by the perl installer ,
I get an error , and SMTP.pm is not successfully installed. Why , when the
same thing seems to be taken on PHP ?

I have given below whet has been done to install the package.I think this

problem is very generic to the Unixes ,  can happen on any of them , the same problem.



Thanks,
Shyam
_________________________________________________________
:/home/pms/cgi# tar zxvf libnet-1.12.tar.gz
libnet-1.12/
libnet-1.12/Net/
libnet-1.12/Net/FTP/
libnet-1.12/Net/FTP/dataconn.pm
libnet-1.12/Net/FTP/L.pm
libnet-1.12/Net/FTP/A.pm
libnet-1.12/Net/FTP/E.pm
libnet-1.12/Net/FTP/I.pm
libnet-1.12/Net/POP3.pm
libnet-1.12/Net/SMTP.pm
libnet-1.12/Net/FTP.pm
libnet-1.12/Net/Cmd.pm
libnet-1.12/Net/NNTP.pm
libnet-1.12/Net/Time.pm
libnet-1.12/Net/Config.pm
libnet-1.12/Net/Domain.pm
libnet-1.12/Net/Netrc.pm
libnet-1.12/Net/libnetFAQ.pod
libnet-1.12/demos/
libnet-1.12/demos/smtp.self
:/home/pms/cgi/libnet-1.12# ls
ChangeLog  Configure       MANIFEST     Net     demos           t
Config.eg  Hostname.pm.eg  Makefile.PL  README  install-nomake
:/home/pms/cgi/libnet-1.12# make Makefile.PL
make: Nothing to be done for `Makefile.PL'.
:/home/pms/cgi/libnet-1.12# perl Makefile.PL
Checking for Socket...ok
Checking for IO::Socket...ok
Checking if your kit is complete...
Looks good

Ah, I see you already have installed libnet before.

Do you want to modify/update your configuration (y|n) ? [no] y

This script will prompt you to enter hostnames that can be used as
defaults for some of the modules in the libnet distribution.

To ensure that you do not enter an invalid hostname, I can perform a
lookup on each hostname you enter. If your internet connection is via
a dialup line then you may not want me to perform these lookups, as
it will require you to be on-line.

Do you want me to perform hostname lookups (y|n) ? [yes] y

The following questions all require a list of host names, separated
with spaces. If you do not have a host available for any of the
services, then enter a single space, followed by <CR>. To accept the
default, hit <CR>

Enter a list of available NNTP hosts : []
Enter a list of available SMTP hosts : [] test.com
Enter a list of available POP3 hosts : [] test.com
Enter a list of available SNPP hosts : [] test.com
Enter a list of available PH Hosts   : [] test.com
Enter a list of available TIME Hosts   : [] test.com
Enter a list of available DAYTIME Hosts   : [] test.com

Do you have a firewall/ftp proxy  between your machine and the internet

If you use a SOCKS firewall answer no

(y|n) ? [no]

Normally when FTP needs a data connection the client tells the server
a port to connect to, and the server initiates a connection to the client.

Some setups, in particular firewall setups, can/do not work using this
protocol. In these situations the client must make the connection to the
server, this is called a passive transfer.

Should all FTP connections be passive (y|n) ? [no]

What is your local internet domain name : []

If you specified some default hosts above, it is possible for me to
do some basic tests when you run `make test'

This will cause `make test' to be quite a bit slower and, if your
internet connection is via dialup, will require you to be on-line
unless the hosts are local.

Do you want me to run these tests (y|n) ? [yes] y

To allow Net::FTP to be tested I will need a hostname. This host
should allow anonymous access and have a /pub directory

What host can I use : []

Writing libnet.cfg
Writing Makefile for Net
:/home/pms/cgi/libnet-1.12# make
cp Net/POP3.pm blib/lib/Net/POP3.pm
cp Net/libnetFAQ.pod blib/lib/Net/libnetFAQ.pod
:/home/pms/cgi/libnet-1.12# make test
PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl
/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests
@ARGV;' t/*.t
t/config............ok
t/ftp...............skipped test on this platform
t/hostname..........ok
t/netrc.............ok, 2/20 skipped: testing as root
t/nntp..............skipped test on this platform
t/require...........ok
t/smtp..............FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
Failed Test Status Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
----
t/smtp.t                       3    3 100.00%  1-3
2 tests and 2 subtests skipped.
Failed 1/7 test scripts, 85.71% okay. 3/44 subtests failed, 93.18% okay.
make: *** [test_dynamic] Error 29









----------------------------(*)-X-(*)----------------------------

                    Knowledge is Power

-----------------------------------------------------------------




---------------------------------
Get a bigger mailbox -- choose a size that fits your needs.

--0-445627692-1036498194=:24779
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<P>I tried to install libnet-1.12.tar.gz<BR>for getting SMTP.pm and POP3.pm.<BR>We use apache as the web server ,<BR>and have configured IP - based virtual hosts<BR>for this server.<BR>test.org ,testxyz.com ,test34.com , testShippersParadise.com.<BR>However ,<BR>http://testxyz.org/cgi-bin/printenv">http://testxyz.org/cgi-bin/printenv</A>&nbsp; or <A href="http%#%#%test34.com/cgi-bin/printenv://<BR>(all">http://test34.com/cgi-bin/printenv<BR>(all use the same cgi-bin , because these are primarily testing )<BR>all show Server Name=test.com<BR><BR>and I know that webmin , qmail , and even PHP use&nbsp; the @test.com<BR>to send mail.<BR><BR>But when I gave test.com as the domain when asked by the perl installer ,<BR>I get an error , and SMTP.pm is not successfully installed. Why , when the<BR>same thing seems to be taken on PHP ?<BR><BR>I have given below whet has been done to install the package.I think this</P>
<P>problem is very generic to the Unixes ,&nbsp; can happen on any of them , the same problem.</P>
<P><BR><BR>Thanks,<BR>Shyam<BR>_________________________________________________________<BR>:/home/pms/cgi# tar zxvf libnet-1.12.tar.gz<BR>libnet-1.12/<BR>libnet-1.12/Net/<BR>libnet-1.12/Net/FTP/<BR>libnet-1.12/Net/FTP/dataconn.pm<BR>libnet-1.12/Net/FTP/L.pm<BR>libnet-1.12/Net/FTP/A.pm<BR>libnet-1.12/Net/FTP/E.pm<BR>libnet-1.12/Net/FTP/I.pm<BR>libnet-1.12/Net/POP3.pm<BR>libnet-1.12/Net/SMTP.pm<BR>libnet-1.12/Net/FTP.pm<BR>libnet-1.12/Net/Cmd.pm<BR>libnet-1.12/Net/NNTP.pm<BR>libnet-1.12/Net/Time.pm<BR>libnet-1.12/Net/Config.pm<BR>libnet-1.12/Net/Domain.pm<BR>libnet-1.12/Net/Netrc.pm<BR>libnet-1.12/Net/libnetFAQ.pod<BR>libnet-1.12/demos/<BR>libnet-1.12/demos/smtp.self<BR>:/home/pms/cgi/libnet-1.12# ls<BR>ChangeLog&nbsp; Configure&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MANIFEST&nbsp;&nbsp;&nbsp;&nbsp; Net&nbsp;&nbsp;&nbsp;&nbsp; demos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t<BR>Config.eg&nbsp; Hostname.pm.eg&nbsp; Makefile.PL&nbsp; README&nbsp; install-nomake<!
BR>:/home/pms/cgi/libnet-1.12# make Makefile.PL<BR>make: Nothing to be done for `Makefile.PL'.<BR>:/home/pms/cgi/libnet-1.12# perl Makefile.PL<BR>Checking for Socket...ok<BR>Checking for IO::Socket...ok<BR>Checking if your kit is complete...<BR>Looks good<BR><BR>Ah, I see you already have installed libnet before.<BR><BR>Do you want to modify/update your configuration (y|n) ? [no] y<BR><BR>This script will prompt you to enter hostnames that can be used as<BR>defaults for some of the modules in the libnet distribution.<BR><BR>To ensure that you do not enter an invalid hostname, I can perform a<BR>lookup on each hostname you enter. If your internet connection is via<BR>a dialup line then you may not want me to perform these lookups, as<BR>it will require you to be on-line.<BR><BR>Do you want me to perform hostname lookups (y|n) ? [yes] y<BR><BR>The following questions all require a list of host names, separated<BR>with spaces. If you do not have a host available for any of the<!
BR>services, then enter a single space, followed by &lt;CR&gt;. To accept the<BR>default, hit &lt;CR&gt;<BR><BR>Enter a list of available NNTP hosts : []<BR>Enter a list of available SMTP hosts : [] test.com<BR>Enter a list of available POP3 hosts : [] test.com<BR>Enter a list of available SNPP hosts : [] test.com<BR>Enter a list of available PH Hosts&nbsp;&nbsp; : [] test.com<BR>Enter a list of available TIME Hosts&nbsp;&nbsp; : [] test.com<BR>Enter a list of available DAYTIME Hosts&nbsp;&nbsp; : [] test.com<BR><BR>Do you have a firewall/ftp proxy&nbsp; between your machine and the internet<BR><BR>If you use a SOCKS firewall answer no<BR><BR>(y|n) ? [no]<BR><BR>Normally when FTP needs a data connection the client tells the server<BR>a port to connect to, and the server initiates a connection to the client.<BR><BR>Some setups, in particular firewall setups, can/do not work using this<BR>protocol. In these situations the client must make the connection to the<BR>server, this !
is called a passive transfer.<BR><BR>Should all FTP connections be passive (y|n) ? [no]<BR><BR>What is your local internet domain name : []<BR><BR>If you specified some default hosts above, it is possible for me to<BR>do some basic tests when you run `make test'<BR><BR>This will cause `make test' to be quite a bit slower and, if your<BR>internet connection is via dialup, will require you to be on-line<BR>unless the hosts are local.<BR><BR>Do you want me to run these tests (y|n) ? [yes] y<BR><BR>To allow Net::FTP to be tested I will need a hostname. This host<BR>should allow anonymous access and have a /pub directory<BR><BR>What host can I use : []<BR><BR>Writing libnet.cfg<BR>Writing Makefile for Net<BR>:/home/pms/cgi/libnet-1.12# make<BR>cp Net/POP3.pm blib/lib/Net/POP3.pm<BR>cp Net/libnetFAQ.pod blib/lib/Net/libnetFAQ.pod<BR>:/home/pms/cgi/libnet-1.12# make test<BR>PERL_DL_NONLAZY=1<BR>/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl<BR>/5.6.1 -!
e 'use Test::Harness qw(&amp;runtests $verbose); $verbose=0; runtests<BR>@ARGV;' t/*.t<BR>t/config............ok<BR>t/ftp...............skipped test on this platform<BR>t/hostname..........ok<BR>t/netrc.............ok, 2/20 skipped: testing as root<BR>t/nntp..............skipped test on this platform<BR>t/require...........ok<BR>t/smtp..............FAILED tests 1-3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Failed 3/3 tests, 0.00% okay<BR>Failed Test Status Wstat Total Fail&nbsp; Failed&nbsp; List of Failed<BR>----------------------------------------------------------------------------<BR>----<BR>t/smtp.t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp;&nbsp;&nbsp; 3 100.00%&nbsp; 1-3<BR>2 tests and 2 subtests skipped.<BR>Failed 1/7 test scripts, 85.71% okay. 3/44 subtests failed, 93.18% okay.<BR>make: *** [test_dynamic] Error 29<BR><BR><BR><BR><BR><BR></P><BR><BR><P>---------------!
-------------(*)-X-(*)----------------------------</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Knowledge is Power</P>
<P>-----------------------------------------------------------------</P><p><p><br><hr size=1><a href="http://uk.yahoo.com/mail/tagline_xtra/?http://uk.docs.yahoo.com/mail_storage.html"><b><font face="Arial" size="2">Get a bigger mailbox -- choose a size that fits your needs.</font></b></a><br>
--0-445627692-1036498194=:24779--