Question
Hi All,
How do I install the CPAN modules on the linux, since nothing is going into CPAN directory of twiki when I installed it, do in to set it for $CPANBASE (I used .rpm files to install it).
Thanks in advance,
Regards,
S.Vishal
Environment
--
VishalSanganaboina - 12 Oct 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
If you are using standard Linux methods to install CPAN modules, they usually go into a directory like
/usr/lib/perl5/site_perl/, so that they are available to all Perl programs and not just for TWiki. You shouldn't have to change anything in your installation to make such modules "just work".
TWiki's CPAN directory is intended for people who can not install into the system wide Perl library because they don't have root access.
--
HaraldJoerg - 12 Oct 2006
See also supplemental
HowToInstallCpanModules document.
--
PeterThoeny - 13 Oct 2006
If that is the case then why do I get the error in the log.
"Can't locate CGI/Session.pm in
@INC
(
@INC
contains: /var/www/twiki/lib/CPAN/lib//arch/ /var/www/twiki/lib/CPAN/lib//5.8.0/i386-linux-thread-multi/ /var/www/twiki/lib/CPAN/lib//5.8.0/ /var/www/twiki/lib/CPAN/lib// /var/www/twiki/lib . /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 (eval 8) line 1., referer:
http://localhost"
--
VishalSanganaboina - 13 Oct 2006
Moreover I am a super user
--
VishalSanganaboina - 13 Oct 2006
That is an indication that CGI::Session is not installed on your system.
--
PeterThoeny - 13 Oct 2006
Ok, so I need to install CPAN modules. And one more question how do I set the path for the installed componenets.
--
VishalSanganaboina - 16 Oct 2006
Peter I got one doubt, if twiki is asking for CGI::Session does that mean, linux has not been installed properly.
--
VishalSanganaboina - 16 Oct 2006
I mean enterprise edition of linux has not been installed
--
VishalSanganaboina - 16 Oct 2006
Linux does not ship with the CGI::Session module. You need to install it. See updated
HowToInstallCpanModules documentation.
--
PeterThoeny - 17 Oct 2006
Hey done now, but when I am registering I am getting it error
"TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
path -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F% of ...path failed: 1
"
Any comments
--
VishalSanganaboina - 19 Oct 2006
I have seen that kind of erros when there is a problem with a file permission. Make sure that the Apache user has the right permission in the TWiki directory and files.
--
RafaelAlvarez - 19 Oct 2006