Hi All,
I'm stuck. A syntax error is being reported by configure on a new installation in TWiki.pm. I've checked and double checked the install for both
LocalLib.cfg and Localsite.cfg. Checked permissions and reinstalled the whole thing from scratch. My Localsite.cfg was created by the configure process and not modified by me in any way.
Twiki version 4.0.1
configure: [Fri Feb 10 13:55:24 2006] configure: syntax error at /web/twiki/lib/TWiki.pm line 269, near "PubDir
TemplateDir ScriptUrlPath LocalesDir )"
[Fri Feb 10 13:55:24 2006] configure: [Fri Feb 10 13:55:24 2006] configure: (Might be a runaway multi-line () string starting on line 268)
[Fri Feb 10 13:55:24 2006] configure: [Fri Feb 10 13:55:24 2006] configure: BEGIN not safe after errors--compilation aborted at /web/twiki/lib/TWiki.pm line 274.
All help is most welcome and appreciated. I'm fighting an MS sharepoint happy IT dept.
thanks,
System Information:
perl -version
This is perl, version 5.005_03 built for i686-linux
Module versions:
Error 0.15
CGI 2.46
Algorithm::Diff 1.1901
FileHandle 2.00
CGI::Carp 1.13
File::Spec 0.82
File::Copy 2.02
OS:
cat /proc/version:
Linux version 2.2.25 (gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release))
cat LocalSite.cfg:
$TWiki::cfg{DataDir} = '/web/twiki/data';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{LocalesDir} = '/web/twiki/locale';
$TWiki::cfg{TemplateDir} = '/web/twiki/templates';
$TWiki::cfg{ScriptUrlPath} = '/bin';
$TWiki::cfg{PubDir} = '/web/twiki/pub';
$TWiki::cfg{DefaultUrlHost} = 'http://test1.quince.cobaltgroup.com';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';
$TWiki::cfg{PubUrlPath} = '/pub';
$TWiki::cfg{UseClientSessions} = 0;
1;
Could your problem be Perl 5.5? Just about everyone else is using 5.8. Just a thought.
CC
No further information forthcoming from the reporter, and I can't reproduce it, so I'm discarding this.
CC
I just ran into the same error, using perl 5.00503 as well (TWiki-4.0.1). When I changed to 5.6, the problem was gone. (It remains fairly annoying as I can't change /usr/bin/perl on the box I'm using so I'm changing #! in all scripts...)
-- Wim Livens - 19 Feb 2006