How to install a module in local linux machine, to use that module in a perl program


Read With Formatting | Free Open Source Tutorials Account

Perl Programming
Thread: How to install a module in local linux machine, to use that module in a perl program


pawan.sangal
Iam new to Perl....

I've the "Win32-GUI-1.05.tar" file & extracted "Win32-GUI-1.05" folder in my home dir.

~/mime/Win32-GUI-1.05.tar
~/mime/Win32-GUI-1.05

:confused: When Iam trying to use this module, Iam getting below error message. Iam using Win32 module in msgbox.pl ( like, use Win32;)

[pawan@localgfmd pawan]$ perl msgbox.pl
Can't locate Win32.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at msgbox.pl line 1.
BEGIN failed--compilation aborted at msgbox.pl line 1.


kindly tell me the steps to install the module, as other modules already installed in the above mentioned dir. path, what @INC is carrying.

I looked into /usr/lib/perl5/5.8.0 , There are several other .pm files.

:confused: Whether I've to (copy/move) that module to /usr/lib/perl5/5.8.0 , or create a directory like this /usr/lib/perl5/Win32-GUI-1.05
Or have to do something else....so that @INC should contain the Path of this module with it...

Is there any compulsion.....to always store a module in a specified directory...so that all the modules are placed and accessed from one place.

If this happens.....I'll try to use msgbox utility in perl program...to check the output value of any variable or something.....It's just a try....

Kindly advise....should I go for this or not....

Thanks & Regards,
Pawan Sangal

Botal20
Bor
http://www.shoescv.com/
http://www.shoescv.com/airline-shoes.html
http://www.shoescv.com/airport-friendly-shoes.html
http://www.shoescv.com/baby-dress-shoes.html
http://www.shoescv.com/bartender-shoes.html
http://www.shoescv.com/bicycle-toe-shoes.html
http://www.shoescv.com/bootie-shoes-boots.html
http://www.shoescv.com/cap-toe-shoes.html
http://www.shoescv.com/character-shoes.html
http://www.shoescv.com/chef-shoes.html
http://www.shoescv.com/coaching-shoes.html
http://www.shoescv.com/combat-boots.html
http://www.shoescv.com/dentist-shoes.html
http://www.shoescv.com/doctor-shoes.html
http://www.shoescv.com/football-shoes.html
http://www.shoescv.com/fringe-shoes.html
http://www.shoescv.com/groom-shoes.html
http://www.shoescv.com/groomsmen-shoes.html
http://www.shoescv.com/hospital-shoes.html
http://www.shoescv.com/hospitality-shoes.html
http://www.shoescv.com/kitchen-shoes.html
http://www.shoescv.com/light-up-shoes.html
http://www.shoescv.com/manufacturing-shoes.html
http://www.shoescv.com/mid-calf-boots.html
http://www.shoescv.com/monkstrap-shoes.html
http://www.shoescv.com/occupational-shoes.html
http://www.shoescv.com/knee-high-boots.html
http://www.shoescv.com/playground-shoes.html
http://www.shoescv.com/restaurant-shoes.html
http://www.shoescv.com/ring-bearer-shoes.html
http://www.shoescv.com/fur-trim-shoes-boots.html
http://www.shoescv.com/school-shoes.html
http://www.shoescv.com/secret-compartment-shoes.html
http://www.shoescv.com/security-shoes.html
http://www.shoescv.com/ankle-shoes-boots.html
http://www.shoescv.com/above-the-ankle-shoes-boots.html
http://www.shoescv.com/teaching-shoes.html
http://www.shoescv.com/narrow-calf-boots.html
http://www.shoescv.com/below-the-knee-boots.html
http://www.shoescv.com/special-occasion-shoes.html
http://www.shoescv.com/umpire-shoes.html
http://www.shoescv.com/uniform-shoes.html
http://www.shoescv.com/waiter-shoes.html
http://www.shoescv.com/cricket-shoes.html
http://www.shoescv.com/rowing-shoes.html
http://www.shoescv.com/nike-shoes.html
http://www.shoescv.com/handball-shoes.html
http://www.shoescv.com/throwing-shoes.html
http://www.shoescv.com/netball-shoes.html
http://www.shoescv.com/pull-on-boots.html
http://www.shoescv.com/gymnastics-shoes.html
http://www.shoescv.com/cycling-shoes.html
http://www.shoescv.com/badminton-shoes.html
http://www.shoescv.com/squash-shoes.html
http://www.shoescv.com/hockey-shoes.html
http://www.shoescv.com/slouch-boots.html
http://www.shoescv.com/stretch-boots.html
http://www.shoescv.com/wide-calf-boots.html
http://www.shoescv.com/zip-on-boots.html
http://www.shoescv.com/tailored-shoes.html
http://www.shoescv.com/hook-loop-shoes.html
http://www.shoescv.com/glass-acrylic-sandals.html
http://www.shoescv.com/tuxedo-shoes.html
http://www.shoescv.com/elasticated-shoes.html
http://www.shoescv.com/eco-friendly-shoes.html
http://www.shoescv.com/shower-shoes.html
http://www.shoescv.com/washable-shoes.html
http://www.shoescv.com/operas-shoes.html
http://www.shoescv.com/fashion-boots.html
http://www.shoescv.com/crocodile-skin-shoes.html
http://www.shoescv.com/affliction-shoes.html
http://www.shoescv.com/ahnu-shoes.html
http://www.shoescv.com/alias-shoes.html
http://www.shoescv.com/snow-shoes.html
http://www.shoescv.com/shearling-boots.html
http://www.shoescv.com/turf-shoes.html
http://www.shoescv.com/rugby-shoes.html
http://www.shoescv.com/moc-toe-shoes.html
http://www.shoescv.com/plain-toe-shoes.html
http://www.shoescv.com/weightlifting-shoes.html
http://www.shoescv.com/hunting-shoes.html
http://www.colehaanshoess.com