how to install a package in perl ????

Answers were Sorted based on User's Feedback



how to install a package in perl ???? ..

Answer / jayakumar.b

Perl Installation on Linux/Unix:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% perl Makefile.PL
% make // nmake for Windows.
% make test
% make install
% make clean

Perl Installation on Windows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% perl -MCPAN -e shell
% install <Module Name> Eg: install Net::FTP

Is This Answer Correct ?    6 Yes 0 No

how to install a package in perl ???? ..

Answer / kuldip singh behal

doing make test and doing install <mod name> is only
possible if you are a root user or a trusted su user,
otherwise it is not at all possible to install the module in
perl.
but if you want to use that module without actually
installing it, it is possible. first download the tar file
of the module from the CPAN then untar the file in your
desired directory then see that where the .pm file lies copy
that .pm file to your desired location. now you have to see
whether that module is further using any module or not if
not then it is fine but if then you have to do the entire
process for the new module and provide the customized path
to the first module in the use or require, include the
desired pm file as using require lib or pushing the pm at
@INC manually.
push @INC <path to module>;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

What can be done for efficient parameter passing in perl? Explain.

0 Answers  


How can information be put into hashes?

0 Answers  


Where do we require ‘chomp’ and what does it mean?

0 Answers  


What does read () command do?

0 Answers  


How do I print the entire contents of an array with Perl?

0 Answers  






What is qq (double q)operator in perl?

0 Answers  


What?s your favorite module and why?

3 Answers  


Explain the functioning of conditional structures in perl.

0 Answers  


Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.

0 Answers  


How can the user execute a long command repeatedly without typing it again and again?

0 Answers  


Write syntax to add two arrays together in perl?

0 Answers  


Explain cpan?

0 Answers  


Categories