On Thu, Apr 23, 2009 at 09:07, Raheel Hassan <raheel.has...@gmail.com> wrote: snip > Thanks yes it works now. One more think when i tried to check any other > modules like, > 1-perl -MCrypt::SSLeay -le 'print "ok"' or > 2-perl -MMIME-Base64 -le 'print "ok"' or > 3-perl -MIO::Socket::SSL -le 'print "ok"' > > > It prompts this error. Can you please explain how can i read and understand > this problem and what changes do i need to make to remove this error. > Can't locate Crypt/SSLeay.pm in @INC (@INC contains: /etc/perl > /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 > /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 > /usr/local/lib/site_perl .). > BEGIN failed--compilation aborted. snip
This error says that perl looked in /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl and the current directory for the module and could not find it. This means that either you do not have that module installed or it is installed in a directory perl does not know to look in. You can use the environment variable PERL5LIB to tell perl about other directories to look in. >> >> snip >> >> If you get "ok" back then it is installed, if you get back an error >> >> then >> >> either it is not installed or you need to set PERL5LIB to point to >> >> where it >> >> is installed. >> > >> > How i will set the PERL5LIB to point where it is installed. >> snip >> >> export PERL5LIB=/path/to/install/directory >> >> It would probably be a good idea to put that in whatever you use as a >> startup >> script for your shell (e.g. ~/.profile, ~/.bash_profile, ~/.bashrc, etc.) > > Please explain this more, when i installed the perl i did not set any path > so perl installed on the default location and for executing the perl scripts > i use this (#!/usr/bin/perl) line first. Do you want that i will change my > first line? and i could not find PERL5LIB where is this folder? PERL5LIB is an environment variable. It holds a list of places to look for modules in the same way PATH holds a list of places to look for executable files. It is only necessary if you install modules in a non-standard location. For instance, I install modules in my home directory to avoid having to become root and to make uninstalling them easier, so I set PERL5LIB like this in my ~/.bash_profile: export PERL5LIB=~/perl/lib/perl5/site_perl -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/