Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux 2.6.21.1-ts.grh.mh.i386
Web server: Apache 1.3.37 (Unix)
Perl version: 5.8.7
Client OS: Mac OSX
Web Browser: Firefox 2.0..4
Categories: Installation, Authentication

-- AlanHarper - 05 Jul 2007

Answer

ALERT! 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

Change status to:

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml configure_output.html r1 manage 160.4 K 2007-07-05 - 01:51 UnknownUser Configure Error Message
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-07-07 - AlanHarper
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.