If you run perl Makefile.pl it actually installes the module (.pm) file.
This usually is in the usr/bin/ directory or somewhere similar and on a host it 
means you must have permissions to do so.
The most easy way is to ask your host to install the module for you, but there 
is also something else you can try yourself
(from http://search.cpan.org/dist/perl/pod/perlmodinstall.pod):

-- but you can install modules into any directory you wish.
For instance,
where I say perl Makefile.PL,
you can substitute perl Makefile.PL PREFIX=/my/perl_directory to install the 
modules into /my/perl_directory.
Then you can use the modules from your Perl programs with use lib 
"/my/perl_directory/lib/site_perl"; or sometimes just use "/my/perl_directory";.
If you're on a system that requires superuser/root access to install modules 
into the directories you see when you type perl -e "print qq(@INC)",
you'll want to install them into a local directory (such as your home 
directory) and use this approach.

Dirk






----- Original Message ----
From: Lewis Kirk <captk...@dmzgraphics.com>
To: beginners-cgi@perl.org
Sent: Sunday, January 18, 2009 8:40:36 PM
Subject: What does MakeFile do?

Which is obviously a real beginner question. I have googled around, but all the 
info I have found assumes you have access to the server.

My sites are shared hosting accounts located at Earthlink, Verio, GoDaddy, etc. 
I have used a number of scripts which I can use just by ftp uploading text 
files and changing permissions. Now I have a script (a module actually) I would 
like to use which arrives as a package that needs to be installed with a 
MakeFile.PL

First, how can I install this module?

Or should the .pm file located in the package work just by uploading?

But more generally, what does make do?

Is there a way to do it locally (on MacOSX) and then upload? Or is the 
installation server specific? (I did try it via Terminal, but it threw an error 
and did not complete.)
-- 
Lewis Kirk
www.dmzgraphics.com
803-787-3450

-- 
To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org
For additional commands, e-mail: beginners-cgi-h...@perl.org
http://learn.perl.org/


      

-- 
To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org
For additional commands, e-mail: beginners-cgi-h...@perl.org
http://learn.perl.org/


Reply via email to