Question
The first time Twiki installation on
FreeBSD. The configuration utility generates the following
Error: The CGI::Session Perl module is required for session support, but is not available.
{UseClientSessions} is always on
Also /var/log/httpd-error.log shows:
[Sat Nov 04 19:02:43 2006] [error] [client xxx] Can't locate CGI/Session.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch/ /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int/ /usr/local/www/twiki/lib/CPAN/lib//5.8.8/ /usr/local/www/twiki/lib/CPAN/lib// /usr/local/www/twiki/lib . /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8) at (eval 15) line 1.
[Sat Nov 04 19:02:43 2006] [error] [client xxx] BEGIN failed--compilation aborted at (eval 15) line 1.
[Sat Nov 04 19:02:43 2006] [error] [client xxx] Premature end of script headers: view
Any help appreciated.
- Rudolp
Environment
--
TWikiGuest - 05 Nov 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
That looks pretty straightforward: Install
CGI::Session, or set
$TWiki::cfg{UseClientSessions} to a false value.
--
HaraldJoerg - 06 Nov 2006
--
TWikiGuest - 06 Nov 2006
This is my first Twiki installation and the following is what I have done so far.
What I have done wrong?
Thank you for your help.
# ... my TWiki configuration:
Operating system Unix (freebsd)
Perl version 5.8.8
@INC library path /usr/local/www/twiki/lib/CPAN/lib//arch/
/usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int/
/usr/local/www/twiki/lib/CPAN/lib//5.8.8/
/usr/local/www/twiki/lib/CPAN/lib//
/usr/local/www/twiki/lib
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach
/usr/local/lib/perl5/5.8.8
.
This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules.
CGI bin directory /usr/local/www/twiki/bin
TWiki module in @INC path OK, TWiki.pm found (Version: Tue, 04 Jul 2006 build 10807)
Required Perl modules
Error 0.15
File::Copy 2.09
File::Spec 3.12
CGI 3.15
CGI::Carp 1.29
Algorithm::Diff 1.1901
FileHandle 2.01
Optional Perl Modules
CGI::Cookie 1.26
Digest::SHA1
Warning: not installed. May be required for SHA1 password encoding
Text::Diff 0.35
CGI::Session
Warning: not installed. May be required for sessions
Net::SMTP 2.29
MIME::Base64 3.07
POSIX 1.09
Digest::MD5 2.36
Locale::Maketext::Lexicon 0.49
Encode 2.12
PATH_INFO
For a URL such as http://192.168.1.103/twiki/bin/configure/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Click here to test this - particularly if you are using mod_perl, Apache or IIS, or are using a web hosting provider. Look at the new path info here. It should be /foo/bar.
mod_perl Not used for this script
mod_perl is not loaded into Apache
CGI user userid = www groups = www,www,www
Your CGI scripts are executing as this user.
Original PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
This is the PATH value passed in from the web server to this script - it is reset by TWiki scripts to the PATH below, and is provided here for comparison purposes only.
Current PATH /bin:/usr/bin
This is the actual PATH setting that will be used by Perl to run programs. It is normally identical to {SafeEnvPath}, unless that variable is empty, in which case this will be the webserver users standard path..
patch
Warning: 'patch' program was found on the PATH but is not GNU patch - this may cause problems. Patch version 2.1
It is used by the UpgradeTwiki script to upgrade an existing TWiki installation
# ... error on accessing .../twiki/bin/view
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
Can't locate TWikipath in @INC (@INC contains: path path-freebsd-64int/ path path path . path path path path path path path)
# ... apache log @ /var/log/httpd-error.log
[Mon Nov 06 00:06:40 2006] [error] [client xxx] Can't locate TWiki/Plugins/TablePlugin/Core.pm in @INC (@INC contains: /usr/local/www/twiki/lib/CPAN/lib//arch/ /usr/local/www/twiki/lib/CPAN/lib//5.8.8/i386-freebsd-64int/ /usr/local/www/twiki/lib/CPAN/lib//5.8.8/ /usr/local/www/twiki/lib/CPAN/lib// /usr/local/www/twiki/lib . /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8) at (eval 48) line 2.
[Mon Nov 06 00:06:40 2006] [error] [client xxx] at (eval 48) line 2
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::TablePlugin::BEGIN() called at TWiki/Plugins/TablePlugin/Core.pm line 2
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval {...} called at TWiki/Plugins/TablePlugin/Core.pm line 2
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval 'use TWiki::Plugins::TablePlugin::Core
[Mon Nov 06 00:06:40 2006] [error] [client xxx] ;' called at /usr/local/www/twiki/lib/TWiki/Plugins/TablePlugin.pm line 66
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugi
[Mon Nov 06 00:06:40 2006] [error] [client xxx] n.pm line 225
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugin::invoke('TWiki::Plugin=HASH(0x872b5e0)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 303
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x86625c8)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 489
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::preRenderingHandler('TWiki::Plugins=HASH(0x86625c8)', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Render.pm line 933
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Render::getRenderedVersion('TWiki::Render=HASH(0x8711430)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Main', 'WebHome') called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 323
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...'
[Mon Nov 06 00:06:40 2006] [error] [client xxx] , 'TWiki=HASH(0x804d28c)', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x877dc28)', 0) called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 289
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::View::view('TWiki=HASH(0x804d28c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 109
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::__ANON__() called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 379
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval {...} called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 371
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tError::subs::try('CODE(0x879497c)', 'HASH(0x877d46c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 158
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::run('CODE(0x809ae2c)') called at /usr/local/www/twiki/bin/view line 31
[Mon Nov 06 00:06:40 2006] [error] [client xxx] BEGIN failed--compilation aborted at (eval 48) line 2.
[Mon Nov 06 00:06:40 2006] [error] [client xxx] at (eval 48) line 2
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval 'use TWiki::Plugins::TablePlugin::Core
[Mon Nov 06 00:06:40 2006] [error] [client xxx] ;' called at /usr/local/www/twiki/lib/TWiki/Plugins/TablePlugin.pm line 66
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugin.pm line 225
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugin::invo
[Mon Nov 06 00:06:40 2006] [error] [client xxx] ke('TWiki::Plugin=HASH(0x872b5e0)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 303
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x86625c8)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 489
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::preRenderingHandler('TWiki::Plugins=HASH(0x86625c8)', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Render.pm line 933
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Render::getRenderedVersion('TWiki::Render=HASH(0x8711430)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Main', 'WebHome') called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 323
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'TWiki=HASH(0x804d28c)', 'Main',
[Mon Nov 06 00:06:40 2006] [error] [client xxx] 'WebHome', 'TWiki::Meta=HASH(0x877dc28)', 0) called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 289
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::View::view('TWiki=HASH(0x804d28c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 109
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::__ANON__() called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 379
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval {...} called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 371
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tError::subs::try('CODE(0x879497c)', 'HASH(0x877d46c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 158
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::run('CODE(0x809ae2c)') called at /usr/local/www/twiki/bin/view line 31
[Mon Nov 06 00:06:40 2006] [error] [client xxx] at /usr/local/lib/perl5/5.8.8/CGI/Carp.pm line 314
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tCGI::Carp::realdie('Can\\'t locate TWiki/Plugins/TablePlugin/Core.pm in @INC (@INC...') called at /usr/local/lib/perl5/5.8.8/CGI/Carp.pm line 385
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tCGI::Carp::die('Can\\'t locate TWiki/Plugins/TablePlugin/Core.pm in @INC (@INC...') called at /usr/local/www/twiki/lib/TWiki/Plugins/TablePlugin.pm line 67
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::TablePlugin::preRenderingHandler('<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1
[Mon Nov 06 00:06:40 2006] [error] [client xxx] 999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugin.pm line 225
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugin::invoke('TWiki::Plugin=HASH(0x872b5e0)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 303
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x86625c8)', 'preRenderingHandler', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Plugins.pm line 489
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Plugins::preRenderingHandler('TWiki::Plugins=HASH(0x86625c8)', '<!--\\x{0}0\\x{0}--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang...', 'HASH(0x8807b28)') called at /usr/local/www/twiki/lib/TWiki/Render.pm line 933
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::Render::getRenderedVersion('TWiki::Render=HASH(0x8711430)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'Main', 'WebHome') called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 323
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTW
[Mon Nov 06 00:06:40 2006] [error] [client xxx] iki::UI::View::_prepare('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'TWiki=HASH(0x804d28c)', 'Main', 'WebHome', 'TWiki::Meta=HASH(0x877dc28)', 0) called at /usr/local/www/twiki/lib/TWiki/UI/View.pm line 289
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::View::view('TWiki=HASH(0x804d28c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 109
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::__ANON__() called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 379
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \teval {...} called at /usr/local/www/twiki/lib/CPAN/lib///Error.pm line 371
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tError::subs::try('CODE(0x879497c)', 'HASH(0x877d46c)') called at /usr/local/www/twiki/lib/TWiki/UI.pm line 158
[Mon Nov 06 00:06:40 2006] [error] [client xxx] \tTWiki::UI::run('CODE(0x809ae2c)') called
--
TWikiGuest - 06 Nov 2006
To install
CGI::Session see
HowToInstallCpanModules.
--
PeterThoeny - 07 Nov 2006
On
FreeBSD you can install a port called "portupgrade" which will help with this. It's in /usr/ports/sysutils.
Once portupgrade is installed you can do;
portinstall -vR --exclude "twiki" twiki
which should install the pre-requesites for twiki, but not twiki itself.
If you're needing CPAN modules, it's better to see if it is available as a
FreeBSD port before installing it directly from CPAN. It makes upgrades and management much easier.
--
CarlMakin - 09 Nov 2006
Hi, thank you all for suggestions.
I tried to install CPAN:
...
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled
cpan> reload cpan
...
cpan> install DateTime::TimeZone
...
Installing /usr/local/bin/config_data
Writing
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/Module/Build/.packlist
FreeBSD: Registering installation in the package database
/usr/bin/make install -- OK
* Cannot install without Module::Build. Exiting ...
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
cpan> quit
Lockfile removed
/root/.cpan/sources/authors/id/A/AN/ANDK/CPAN-1.76.tar.gz
/root/.cpan/build/CPAN-1.76
/root/.cpan/build/CPAN-1.76/lib/CPAN.pm
/root/.cpan/build/CPAN-1.76/lib/CPAN
/root/.cpan/build/CPAN-1.76/lib/Bundle/CPAN.pm
/root/.cpan/Bundle/CPAN.pm
/usr/local/lib/perl5/5.8.8/CPAN.pm
/usr/local/lib/perl5/5.8.8/CPAN
/usr/local/lib/perl5/5.8.8/perl/man/man3/CPAN.3.gz
/usr/local/lib/perl5/5.8.8/perl/man/man3/CPAN::Nox.3.gz
/usr/local/lib/perl5/5.8.8/perl/man/man3/CPAN::FirstTime.3.gz
/usr/local/www/twiki/lib/CPAN
/usr/ports/www/twiki/work/lib/CPAN
Unfortunately nothing changed and TWiki still complain that cannot find TWiki/Plugins/TablePlugin/Core.pm
Is this is due to path setting or incomplete CPAN installation?
Thank you for your help
-- TWikiGuest - 12 Nov 2006
This is where Core.pm can be found:
/usr/local/www/twiki/lib/TWiki/Plugins/EditTablePlugin/Core.pm
/usr/local/www/twiki/lib/TWiki/Plugins/TablePlugin/Core.pm
/usr/ports/www/twiki/work/lib/TWiki/Plugins/EditTablePlugin/Core.pm
/usr/ports/www/twiki/work/lib/TWiki/Plugins/TablePlugin/Core.pm
Where should I set the path that twiki locates that module?
-- TWikiGuest - 13 Nov 2006
Oops. My mistake. I forgot to set proper permission.
It is working now; thanks for the help.
-- TWikiGuest - 13 Nov 2006
Glad it worked, closing question.
-- PeterThoeny - 14 Nov 2006