Question
I can't seem to get CGI::Session registered with twiki. I have installed it on a computer on which I do not have root access.
I installed CGI:Session in ~/perl using "perl -MCPAN -e shell" and I can see it at ~/perl/lib/perl5/site_perl/5.8.7/CGI .
I thought I could get twiki to find this by setting either
$CPANBASE or
@localPerlLibPath in bin/LocalLib.cfg, but no matter what values they have, the config script can't find the module.
I have not tried to set up Apache authentication, because I really don't understand that at all.
Thanks for any pointers you can give.
Environment
--
AlanHarper - 05 Jul 2007
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.
Don't use the
~
prefix: This is a shortcut notation for
your home directory, but the web server will not be able to find it. Try
/home/aharper/perl
instead, or install
CGI::Session
under
~/public_html/twiki/lib/CPAN/lib/
.
I am surprised that in your configure output there's no hint for your added directories for
$CPANBASE
. Is it possible that you have a syntax error in your
LocalLib.cfg
? Such an error would be suppressed silently....
--
HaraldJoerg - 05 Jul 2007
Thank you. I will try all this, and review my
LocalLib.cfg
, a syntax error there might explain other issues.
I thought I read that it was a security risk to put extensions in my publicly-accessible directory. But unless I hear otherwise, I will do this--it will be much easier to maintain.
--
AlanHarper - 06 Jul 2007
Well, you were right,
LocalLib.cfg
was missing a semicolon.
It turns out that
CGI::Session
gets installed in a long series of sub-directories, and I had to move it by hand to a place where twiki could find it.
I ran
% perl Makefile.PL PREFIX=/home/aharper/public_html/twiki/CPAN/lib
% make
% make test
% make install
(following this
recipe)
and
CGI::Status
was installed
~/public_html/twiki/lib/CPAN/lib/perl5/site_perl/5.8.7
! Moving the
CGI directory up to
"~/public_html/twiki/lib/"
by hand allowed twiki to find it.
I must say this seemed a little harder than it needed to be, and I could never get the
$CPANBASE
variable to do anything useful.
Thanks for your help.
--
AlanHarper - 07 Jul 2007