CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Installing Modules

 



feljuri
Deleted

May 3, 2000, 2:32 PM

Post #1 of 3 (419 views)
Installing Modules Can't Post

How can I install a module in my server if a have only ftp access.

Thanks

Frank.



jumaru
Deleted

May 3, 2000, 6:53 PM

Post #2 of 3 (419 views)
Re: Installing Modules [In reply to] Can't Post

Hi
if the module requires makefile.pl, you can't


darian
Deleted

May 4, 2000, 6:48 AM

Post #3 of 3 (419 views)
Re: Installing Modules [In reply to] Can't Post

Actually even if the module comes with makefile you can still use them. There are a few (very few) that require you to compile them on the system. All you have to do with most modules is create a directory under your cgi-bin (thus putting them in a secure executable dir) and changing the file permissions to 0755. Now from your programs you can make use of these modules by referencing these modules full path.

Example:
use '/path/to/module';
require module.pm;

However this will now use this path for each require statement after that as well so you will not really be able to use several self installed modules. Now in theroy (and I mean this as I have not yet tested it myself) I would think that you could use multiple use statements like so:

use '/path/to/module1';
require module1.pm;
use '/path/to/module2';
require module2.pm;


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives