SID-02249: Error installing Twiki - POSIX tzset not implemented
| Status: |
Asked |
TWiki version: |
6.0.2 |
Perl version: |
5.24.0 ActivePerl |
| Category: |
CategoryInstallation |
Server OS: |
Windows 2012 Server R2 |
Last update: |
9 years ago |
I´ve installed and configured twiki 6.0.2, but when I try to open the page
http://localhost/do/view
, there is the following error:
"TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
POSIX::tzset not implemented on this architecture"
At Twiki log:
| 2016-09-14 - 13:06:18 | POSIX::tzset not implemented on this architecture at C:/www/twiki/lib/TWiki/Time.pm line 215.
Please, can any help me?
--
Martin MC - 2016-09-14
Discussion and Answer
What Perl engine do you use on Windows? Strawberry Perl on Windows does not support POSIX::tzset. If you use this, you will need to switch to an alternative Perl distribution. You can use
ActivePerl which is free, and is the leading commercial-grade distribution of Perl; download from
http://www.activestate.com/activeperl/downloads
See also
TWikibug:Item7705
.
Alternatively,
DownloadTWikiVM and run it on VMware on Windows. This is straight forward and performs well.
--
Peter Thoeny - 2016-09-15
Hi, I am using
ActivePerl, version 5.24.0.2400 for Windows 64bits. I also tryed with
ActivePerl 5.22.1 with the same error. What might be happening?
Thanks.
--
Martin MC - 2016-09-15
After reading
http://develop.twiki.org/~twiki/cgi-bin/view/Bugs/Item7705
, as a workaround, I have wrapped tzset calls (at Time.pm) in an eval block (eval{tzset()};) and the page is displayed correctly.
What consequences has this solution?
--
Martin MC - 2016-09-15
This workaround is harmless unless you rely on a plugin using the function
TWiki::Time::formatTime() (see
TWikiFuncDotPm),
and you have with different local time zones in your TWiki user base.
--
Harald Jörg - 2016-09-18
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.