baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:

hi,

well i need an advice. so far whenever people asked me if could write a program for them to speed up their work, i scoped the internet (mostly cpan) to look if anyone has already done something usable and i just used it, combined it into a working unit and that was it. after i instilled perl on clients comp or told him from where he can download all necessary data (cpan modules) and my job was done . but now i've stumbled upon the task in which my client doesn't want to have anything to do with downloading necessary modules. the idea is to run instalation file once and then run the program. so i was wondering on how to do this. my initial idea was to somehow put all the necessary modules.tar.gz into my.tar.gz file and them make a sript to extract and make all modules. also it is necesery to install all modules in a local Lib directory where the program would then look for them

" use lib "./Lib";"

but some of the modules are Term::ReadLine , ::GNU, Term::ReadKey and i have no idea how would they react, or how to force their 'make' into my local Lib directory

Thank you

PS

OS is *NIX and user is administrator , and program would be totally free to redistribute , and modify under GNU, so i don't get into any legal trouble with distributing perl modules or anything like that :)

  • Comment on reristirbuting perl program with modules - opinion needed

Replies are listed 'Best First'.
Re: reristirbuting perl program with modules - opinion needed
by sathiya.sw (Monk) on Jan 31, 2009 at 12:11 UTC
    Give the PREFIX argument while executing "perl MakeFile.PL"

    Sathiyamoorthy
Re: reristirbuting perl program with modules - opinion needed
by marto (Cardinal) on Jan 31, 2009 at 11:50 UTC

    Hi baxy77bax

    Have you considered using PAR::Packer and pp to create an executable which includes the modules you need?

    Martin