• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

how to FTP using MacPerl or From Win95?

Hi, I would like to know how to FTP either using MacPerl or Win95 platform.  I tried with ftp.pl but with no success. Please Help. Thanks.
0
sunghkim
Asked:
sunghkim
  • 9
  • 6
1 Solution
 
b2piCommented:
I've no idea about MacPerl, but on windows 95, you can do the following:

1.) from the command line execute perl
2.) Type the following

use Net::FTP;

3.) Press Control-C to get out
4.) If step 2 produced a bunch of text like:
Can't locate Net/FTP.pm in @INC (@INC contains: .....)

then download Net::FTP from http://www.perl.com/CPAN-local/modules/by-module/Net/libnet-1.0605.tar.gz

and then install it.

5.) Look at the documentation.  As a start,

use Net::FTP;

$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","me@here.there");
$ftp->cwd("/pub");
$ftp->get("that.file");
$ftp->quit;

transfers a file 'that.file' from ftp://some.host.name/pub

0
 
sunghkimAuthor Commented:
I just decompressed libnet. what else should i do? i put the files to Net folder and i tried to run your sample program but it saids "can't locate Net/Config.pm in @INC at perl/lib/net/FTP.pm.  

Thanks.
0
 
b2piCommented:
Did you read the README file?

Take the files out of the folder where they are. Since you're on
Win95, uncompress libnet-1.0605.tar.gz into the /tmp directory. cd to
the directory where the files actually are.  Read the README file.
Read any other pertinent documents. As they'll tell you, type in (the
name of your make may differ, but if you're using VC++, it's nmake):

perl Makefile.PL
nmake
nmake test
nmake install


0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
sunghkimAuthor Commented:
I did perl Makefile.PL and I think it is installed correctly. but when i try to run that sample program, it says "Global symbol "%NetConfig" requires explicit package name at C:\perl\lib/Net/FTP.pm line 57.

what 's that mean?

Thanks for your help b2pi.
0
 
b2piCommented:
You have to follow the above steps explicitly (well, there are
shortcuts you can take, but don't)

1.) unpack libnet to a temp directory
2.) go to the temp directory
3.) run

    perl Makefile.PL

4.) run

    nmake

5.) run

    nmake test

6.) run

    nmake install




0
 
sunghkimAuthor Commented:
I did perl Makefile.PL and I think it is installed correctly. but when i try to run that sample program, it says "Global symbol "%NetConfig" requires explicit package name at C:\perl\lib/Net/FTP.pm line 57.

what 's that mean?

Thanks for your help b2pi.
0
 
sunghkimAuthor Commented:
there is no nmake.
after perl makefile.pl, it creates "makefile" file and i can't find any file called nmake.
0
 
b2piCommented:
You don't have a compiler?
0
 
sunghkimAuthor Commented:
no compiler. is there another way?
0
 
b2piCommented:
1.) Do you own the machine (i.e. can you install a new perl?)
2.) Which version of perl do you currently have?
0
 
sunghkimAuthor Commented:
no compiler. is there another way?
0
 
sunghkimAuthor Commented:
i have version 5.005_02 built for MSWin32-x86-object. Is there a version that already have libnet installed?
Thanks for the help.
0
 
b2piCommented:
This is activestate?  There's supposed to be some magical way to download modules directly for activestate, but I don't know what it is.  The standard binary distribution (the GURU version) comes with libnet.
0
 
sunghkimAuthor Commented:
where can i get it? can you give me the link?
thanks a lot.
0
 
sunghkimAuthor Commented:
thanks.
I found it and i tried it and it works!!!
thanks a lot.

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 9
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now