I just ran for the first time perl -MCPAN -e shell and answered all the question, but i made a mistake and selected an incorrect mirror. How can I rerun this perl setup?
On Thu, 2007-01-25 at 22:30 -0500, Erick Perez wrote:
I just ran for the first time perl -MCPAN -e shell and answered all the question, but i made a mistake and selected an incorrect mirror. How can I rerun this perl setup?
---- probably the easiest way I can think of...
mv /root/.cpan /root/.cpan-bak
then run perl -MCPAN -e shell
Craig
didn't work. didn't prompt me again to setup CPAN.
On 1/25/07, Craig White craigwhite@azapple.com wrote:
On Thu, 2007-01-25 at 22:30 -0500, Erick Perez wrote:
I just ran for the first time perl -MCPAN -e shell and answered all the question, but i made a mistake and selected an incorrect mirror. How can I rerun this perl setup?
probably the easiest way I can think of...
mv /root/.cpan /root/.cpan-bak
then run perl -MCPAN -e shell
Craig
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Erick Perez wrote:
didn't work. didn't prompt me again to setup CPAN.
On 1/25/07, Craig White craigwhite@azapple.com wrote:
On Thu, 2007-01-25 at 22:30 -0500, Erick Perez wrote:
I just ran for the first time perl -MCPAN -e shell and answered all the question, but i made a mistake and selected an incorrect mirror. How can I rerun this perl setup?
probably the easiest way I can think of...
mv /root/.cpan /root/.cpan-bak
then run perl -MCPAN -e shell
Good day, Erick
Run perl -MCPAN -e shell
at the CPAN prompt type:
o conf init <return>
That should do it.
W.
Excellent!!! thanks it worked.
Now how do I make sure my centos 4.4 "sees" some modules that were added from CPAN?
On 1/25/07, Winter wfielder@mail.com wrote:
Erick Perez wrote:
didn't work. didn't prompt me again to setup CPAN.
On 1/25/07, Craig White craigwhite@azapple.com wrote:
On Thu, 2007-01-25 at 22:30 -0500, Erick Perez wrote:
I just ran for the first time perl -MCPAN -e shell and answered all the question, but i made a mistake and selected an incorrect mirror. How can I rerun this perl setup?
probably the easiest way I can think of...
mv /root/.cpan /root/.cpan-bak
then run perl -MCPAN -e shell
Good day, Erick
Run perl -MCPAN -e shell
at the CPAN prompt type:
o conf init <return>
That should do it.
W.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Erick Perez wrote:
Excellent!!! thanks it worked.
Now how do I make sure my centos 4.4 "sees" some modules that were added from CPAN?
Hello again, Erick, and well met. :)
If you install modules using CPAN it places them into your include path. If you're installing modules by hand...that's when things get tricky.
You can print out your Perl include path by typing:
perl -e "print qq(@INC)"
Usually (keyword usually) when you install a perl module with "perl Makefile.pl ; make ; make install", it installs into one of the common perl include directories. Sometimes, though, the world doesn't smile on you.
You can copy a hand-installed module into one of your include directories, or you can place it in a private directory and use it by typing in your script:
#!/usr/bin/perl
use lib '/path/to/module';
------ Here's a good link for you:
http://search.cpan.org/src/CMUNGALL/go-perl-0.04/INSTALL.html
Now...a couple fingers of whiskey are calling my name. ;)
Regards,
Winter
On Thu, Jan 25, 2007 at 10:59:56PM -0500, Erick Perez enlightened us:
Excellent!!! thanks it worked.
Now how do I make sure my centos 4.4 "sees" some modules that were added from CPAN?
RPM will never "see" your packages if you install them via CPAN. It is recommended you NOT install from CPAN if you would like to maintain the integrity of your CentOS system. RPMforge and Karan's Extras repositories already provide a lot of perl modules in RPM format. You can also use tools such as cpan2rpm and cpanflute to create RPMs for modules that don't already exist there.
See http://wiki.centos.org/Repositories for more details on those repos.
Matt