06-11-2009
Install modules on strawberry perl
Hi,
I'm using strawberry perl on windows 7 rc, and for the past few days I haven't manage to install any modules.
I understand that I have to download the module from cpan, which I do, afterwards I have to open cmd, change directory to where I have extracted the module, and type:
perl makefile.pl
make
make test
make install
ok so.. I type perl makefile.pl and press ENTER. Then I see lots of text, saying extracting and all sorts of stuff.
Than if I type make, I get command not found...
After checking google, I found another way to compile de C files from the module directory, which would be to use nmake from microsoft, but it's a 16bit application and it's not supported on vista nor windows 7.
I also installed vmware, with ubuntu (bad choice?), but I couldn't connect to my pppoe connection since I don't have a router and using a proxy server on windows just to be able to connect ubuntu to the internet to download perl is too much of a fuss. Anyone can tell me if Fedora would work better?
thx in advance.
-----Post Update-----
dear god.. I managed to make it work...
In case anyone ever reads this post, ever.. this is how I did it..
in make case..
I downloaded Tk module from cpan.
I extracted it.
I moved the folder which was named something like: tk8.01912 to C:\strawberry\perl\lib\
I opened cmd , I typed cd C:\strawberry\perl\lib\ pressed enter.
than I typed : perl makefile.pl and pressed enter.. waited to load
than I type dmake afterwards dmake test and dmake install.
Last edited by byte1918; 06-11-2009 at 10:19 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi. i installed perl 5.8.8.822 in my D: drive(windows xp).When im trying to install IO-Stringy.pm module( or any module for tat matter ) it is getting installed in 'c:\temp\please run installed script' folder no matter from where ever i run the ppm installation.The path variable is set to... (3 Replies)
Discussion started by: Anuj8584
3 Replies
2. Shell Programming and Scripting
Hello, I would really appreciate any advice on this issue:
My Perl Module Environment:
/usr/lpp/perl/lib/5.8.7 => has the Perl modules that come with the base Perl installation. Comes first in @INC concatination.
/usr/lpp/perl/lib/site_perl/5.8.7 => has all my installed Perl modules... (1 Reply)
Discussion started by: genya01
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am using Strawberry Perl on WinXP but i am unable to download modules from Cpan via cmd,everytime a connection timeout error pops up.
I get the following error :
C:\>cpan Tk
CPAN: LWP::UserAgent loaded ok (v5.834)
CPAN: Time::HiRes loaded ok (v1.9719)
Fetching with LWP:... (0 Replies)
Discussion started by: parimal14
0 Replies
4. Shell Programming and Scripting
Hi All,
How to install the perl modules in Solaris?
pwd
/eweiquu/ocsta/lib/XML-Simple-2.18
and
bash-3.00# perl Makefile.PL
Checking installed modules ...
XML::Parser is installed, it will be used by the test suite
Writing Makefile for XML::Simple
and then
the readme file says,you... (2 Replies)
Discussion started by: Damon_Qu
2 Replies
5. Shell Programming and Scripting
Hi,
I am using perl 5.12. I want to install XML modules and Excel modules which is from perl in windows.
I am using ppm to install these perl modules.
My proxy is this: mtd.ixs.ibab.com/proxy.pac (with http in the beginning)
I used this to set but i unable to download any pakage, Using... (5 Replies)
Discussion started by: vanitham
5 Replies
6. Windows & DOS: Issues & Discussions
Hi,
I am struggling in installing TK module for strawberry perl.
I downloaded TK804 module,
extracted to a folder, kept in c:/strawberry/perl/lib path,
then from tht path
1) perl makefile.pl
2)dmake
3)dmake test
4)dmake install
During perl makefile.pl it is giving error as... (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies
7. Shell Programming and Scripting
I have some custom functions which i want to use in perl Scripting all time.
i want to How to create modules in perl and how to import them.
Also if i create 15 modules and i want to > import all at once then how can i import? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies
8. Programming
Having a script.pl how can I automatically download from CPAN all required modules and install and update as required? Something like "emerge -uDNav world" for the perl?
---------- Post updated at 05:38 PM ---------- Previous update was at 05:28 PM ----------
Doesn't matter I've found it
... (6 Replies)
Discussion started by: Tribe
6 Replies
9. Shell Programming and Scripting
Hi guys,
I need to upgrade perl modules on about multiple machines. I'm writing a for loop for it.
for i in 1 2 3 4 5 6;
do
ssh server$i " sudo cpan Mozilla::CA,
sudo cpan LWP::UserAgent,
sudo cpan LWP::Protocol::https,
sudo cpan IO::Socket::SSL,
sudo cpan Net::SSL,... (2 Replies)
Discussion started by: scj2012
2 Replies
10. Shell Programming and Scripting
Hi,
I have a task to install a list of perl modules in several servers.
It's very tedious task to install it one by one through CPAN.
Can I have option in CPAN to feed that list so that it install all the modules. (0 Replies)
Discussion started by: nixhead
0 Replies
LEARN ABOUT MOJAVE
cpanplus::dist::mm
CPANPLUS::Dist::MM(3pm) Perl Programmers Reference Guide CPANPLUS::Dist::MM(3pm)
NAME
CPANPLUS::Dist::MM - distribution class for MakeMaker related modules
SYNOPSIS
$mm = CPANPLUS::Dist::MM->new( module => $modobj );
$mm->create; # runs make && make test
$mm->install; # runs make install
DESCRIPTION
"CPANPLUS::Dist::MM" is a distribution class for MakeMaker related modules. Using this package, you can create, install and uninstall perl
modules. It inherits from "CPANPLUS::Dist".
ACCESSORS
parent()
Returns the "CPANPLUS::Module" object that parented this object.
status()
Returns the "Object::Accessor" object that keeps the status for this module.
STATUS ACCESSORS
All accessors can be accessed as follows:
$mm->status->ACCESSOR
makefile ()
Location of the Makefile (or Build file). Set to 0 explicitly if something went wrong.
make ()
BOOL indicating if the "make" (or "Build") command was successful.
test ()
BOOL indicating if the "make test" (or "Build test") command was successful.
prepared ()
BOOL indicating if the "prepare" call exited successfully This gets set after "perl Makefile.PL"
distdir ()
Full path to the directory in which the "prepare" call took place, set after a call to "prepare".
created ()
BOOL indicating if the "create" call exited successfully. This gets set after "make" and "make test".
installed ()
BOOL indicating if the module was installed. This gets set after "make install" (or "Build install") exits successfully.
uninstalled ()
BOOL indicating if the module was uninstalled properly.
_create_args ()
Storage of the arguments passed to "create" for this object. Used for recursive calls when satisfying prerequisites.
_install_args ()
Storage of the arguments passed to "install" for this object. Used for recursive calls when satisfying prerequisites.
METHODS
$bool = $dist->format_available();
Returns a boolean indicating whether or not you can use this package to create and install modules in your environment.
$bool = $dist->init();
Sets up the "CPANPLUS::Dist::MM" object for use. Effectively creates all the needed status accessors.
Called automatically whenever you create a new "CPANPLUS::Dist" object.
$bool = $dist->prepare([perl => '/path/to/perl', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
"prepare" preps a distribution for installation. This means it will run "perl Makefile.PL" and determine what prerequisites this
distribution declared.
If you set "force" to true, it will go over all the stages of the "prepare" process again, ignoring any previously cached results.
When running "perl Makefile.PL", the environment variable "PERL5_CPANPLUS_IS_EXECUTING" will be set to the full path of the "Makefile.PL"
that is being executed. This enables any code inside the "Makefile.PL" to know that it is being installed via CPANPLUS.
Returns true on success and false on failure.
You may then call "$dist->create" on the object to create the installable files.
$href = $dist->_find_prereqs( file => '/path/to/Makefile', [verbose => BOOL])
Parses a "Makefile" for "PREREQ_PM" entries and distills from that any prerequisites mentioned in the "Makefile"
Returns a hash with module-version pairs on success and false on failure.
$bool = $dist->create([perl => '/path/to/perl', make => '/path/to/make', makeflags => 'EXTRA=FLAGS', prereq_target => TARGET, skiptest => BOOL,
force => BOOL, verbose => BOOL])
"create" creates the files necessary for installation. This means it will run "make" and "make test". This will also scan for and attempt
to satisfy any prerequisites the module may have.
If you set "skiptest" to true, it will skip the "make test" stage. If you set "force" to true, it will go over all the stages of the
"make" process again, ignoring any previously cached results. It will also ignore a bad return value from "make test" and still allow the
operation to return true.
Returns true on success and false on failure.
You may then call "$dist->install" on the object to actually install it.
$bool = $dist->install([make => '/path/to/make', makemakerflags => 'EXTRA=FLAGS', force => BOOL, verbose => BOOL])
"install" runs the following command:
make install
Returns true on success, false on failure.
$bool = $dist->write_makefile_pl([force => BOOL, verbose => BOOL])
This routine can write a "Makefile.PL" from the information in a module object. It is used to write a "Makefile.PL" when the original
author forgot it (!!).
Returns 1 on success and false on failure.
The file gets written to the directory the module's been extracted to.
perl v5.18.2 2014-01-06 CPANPLUS::Dist::MM(3pm)