1834498 Members
2388 Online
110067 Solutions
New Discussion

Net::FTP

 
Tom Dawson
Regular Advisor

Net::FTP

Hi,

Does anyone have a Makefile.PL for compiling the Net::FTP module? I downloaded FTP.pm from www.cpan.org. But I didn't see a makefile in the archive.

I have the HP ANSI-C compiler on HP-UX 11.11.

TIA,
Tom
7 REPLIES 7
H.Merijn Brand (procura
Honored Contributor

Re: Net::FTP

 
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: Net::FTP

Sorry for the empty message, that's Opera-7's fault :/

1. Net::FTP is part of the core as of 5.8.0
2. Net::FTP is part of libnet, and thus cannot be downloaded as a module of it's own

Fetch http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/libnet-1.12.tar.gz

# cd /tmp
# gzip -d # cd libnet-1.12
# perl Makefile.PL
# make
# make test
# make install
# cd ..
# rm -rf libnet-1.12
Enjoy, Have FUN! H.Merijn
Jordan Bean
Honored Contributor

Re: Net::FTP

Better to install the entire libnet bundle after updating the CPAN module.

perl -MCPAN -e shell
> install Bundle::CPAN
> reload cpan
> install Bundle::libnet
> q

Tom Dawson
Regular Advisor

Re: Net::FTP

Procura,

I get the following when I try to run the makefile:

flo1q07 /home/tdawson/perl_modules/libnet-1.12 # perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1
/opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .)
at Makefile.PL line 12.
BEGIN failed--compilation aborted at Makefile.PL line 12.
flo1q07 /home/tdawson/perl_modules/libnet-1.12 #

My "ExtUtils" directory is located here:

/opt/perl/lib/5.6.1/ExtUtils

This will show what a novice I am with Perl. I can see that I need to add
'/opt/perl/lib/5.6.1' to the @INC variable. But I haven't a clue as to how
or where I should do that.

Jordan,

Are you saying that after I do the "make install" as procura suggests above,
that I should then execute "perl -MCPAN -e shell" as in your example?

Thanks,
Tom
H.Merijn Brand (procura
Honored Contributor

Re: Net::FTP

You've got *two* (or more) versions of perl that conflict.

You *want* the 5.6.1 version, so `disable' the old 5.005_02, which is easy in your case

You've got several options to test if that would work

1. Make the bad one inaccessable

# chmod 000 /opt/perl5

2. Remove /opt/perl5/bin from your $PATH (don't forget to check /etc/PATH)
3. Remove that version altogether with swremove
4. Remove *all* perl versions with swremove and re-install perl, so you *know* what you are working with
Enjoy, Have FUN! H.Merijn
Jordan Bean
Honored Contributor

Re: Net::FTP

The approach using the CPAN module is an entirely separate option... Somebody correct if I'm wrong, but I think it may actually attempt to upgrade the PERL core as well if not already at 5.8.0. If so, don't use it.
Tom Dawson
Regular Advisor

Re: Net::FTP

Procura,

The "other" perl is that which is installed with apache. I didn't want to mess around with removing that one. So I went out and got your 5.8.0 ports from:

www.beepz.com/personal/merijn

I had problems with the libraries with the 10.20/pa1.1 version because I'm running 11.11. The 11.00/pa2.0 version failed because my CPUs are 1.1.

So I downloaded Perl 5.8.0 from the HP Porting Centre:

http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.0/

That seems to be working fine. I know I'm missing the Oracle::DBD class, but my dba isn't clamoring for perl yet. Thanks for your help!

Jordan,

Since I've got 5.8.0 installed, I don't have to worry about installing libnet.

Thanks,
Tom