InGearX
asked on
Installing modules from cpan.org for my ActiveState WinXP?
I have ActiveState ActivePerl 5.8 and the modules search & instal tool provided doesn't find all the modules available on http://search.cpan.org
How can I manually instal the modules I find on http://search.cpan.org onto my WinXP ActiveState ActivePerl 5.8 PERL?
Any tools? tricks?
Thank you...
How can I manually instal the modules I find on http://search.cpan.org onto my WinXP ActiveState ActivePerl 5.8 PERL?
Any tools? tricks?
Thank you...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you all... I'm soon to get to this - look over the answers and do accept(s) ;-)
More answers are welcome - maybe I'll increase the points and split them...
More answers are welcome - maybe I'll increase the points and split them...
ASKER
What about the installing CPAN.pm module to do the searches/installs?
C:/Perl/lib/CPAN/Config.pm initialized.
CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.
Now that I instaled it? I'm not sure on how to do searches and installs LOL any idea?
C:/Perl/lib/CPAN/Config.pm
CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.
Now that I instaled it? I'm not sure on how to do searches and installs LOL any idea?
If you are using ActiveState Perl, you are better off using the PPM (Perl Package Manager) interface that comes with it. ActiveState package up most of the popular CPAN modules and for other ones (like the one you were after), other people often package them up.
Follow the instructions I previously gave, and you should be able to install Net::SSH
Follow the instructions I previously gave, and you should be able to install Net::SSH
##########################
Sometimes we need to install the modules from a CD where the Perl Server is behind the firewall and without any connection to the internet.
Generally you would want to download the module from here beforehand:
http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/
unzip into a specific folder, then use PPM command to install it from that location.
If you unzipped the modules into c:\temp
then run "ppm"
execute command
"set repository local c:\temp"
and install the module you unzipped by executing
"install MODULENAME.ppm"
If in doubt of a command, execute
"help" when in ppm.
##########################
For the rest of the modules, available on CPAN:
Sometimes a module is just a simple text file with the name:
Module.pm
Just get the source from the CPAN page for that module and save it from the web page into the text file named by the name of the module into the
c:\Perl\site\lib\
Folder of where your Perl is installed.
If the module is a subclass like
HTML::Element
then find its source, save to a text file, named Element.pm and put it into the folder:
c:\Perl\site\lib\HTML\
If it is for example
HTML::Element::Traverse
Then save the source into the file name Traverse.pm and put it into
c:\Perl\site\lib\HTML\Elem
folder.
Sometimes there are dependancies. One module requires another one, so make sure that all required modules are there.
Sometimes there is just no module developed for Windows platform.
it is on CPAN, but it is for any Linux or UNIX platform, but either was not tested ordoes not work with Windows.
So it can be a pain...
The easiest is the ActiveState.
You can also try Perl Dev Kit from ActiveState. It has a very nice Virtual package manager which is visual (Web Based) and you can add multiple module sources easily and without any command lines.