SID-02414: Error Running Configure
| Status: |
Answered |
TWiki version: |
6.1.0 |
Perl version: |
5.28.1 |
| Category: |
CategoryInstallation |
Server OS: |
centos 7.6, kernel 3.10.0 |
Last update: |
6 years ago |
Hi - I am installing the latest twiki verison fresh on a Centos 7 server - I am getting this error though when running bin/configure:
Failed to load the perl module File::Temp. The module was found at /usr/local/lib/perl5/5.28.1/File/Temp.pm
Please ensure that:
- File::Temp is installed,
- that the module is available on the @INC
path,
- that the webserver user (apache) has permission to read the File/Temp.pm file.
The detailed error seen was:
Can't load '/usr/local/lib/perl5/5.28.1/x86_64-linux/auto/Fcntl/Fcntl.so' for module Fcntl: /usr/local/lib/perl5/5.28.1/x86_64-linux/auto/Fcntl/Fcntl.so: undefined symbol: PL_stack_sp at /usr/share/perl5/XSLoader.pm line 68.
at /usr/local/lib/perl5/5.28.1/x86_64-linux/Fcntl.pm line 66.
Compilation failed in require at /usr/local/lib/perl5/5.28.1/File/Temp.pm line 15.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.28.1/File/Temp.pm line 15.
Compilation failed in require at (eval 16) line 2.
BEGIN failed--compilation aborted at (eval 16) line 2.
I have File::Temp installed though:
# cpan -l | grep -i temp
Locale::Maketext::Extract::Plugin::TextTemplate 1.00
File::Temp 0.2309
File::Temp 4.40
CGI::File::Temp 4.13
File::Temp 0.2304
Can anyone help and point me in the right direction?
--
TWiki Guest - 2019-09-25
Discussion and Answer
It looks like something is wrong with the File::Temp and dependencies. To debug try this in shell as root and apache:
perl -e 'use File::Temp; print "$File::Temp::VERSION\n"'
I also recommend to google for
undefined symbol: PL_stack_sp
--
Peter Thoeny - 2019-09-25
Problem is fixed now - in the bin/LocalLib.cfg there was this section:
------------++ Path to TWiki's CPAN base.
# OPTIONAL:
# TWiki ships with some CPAN modules, such as File::Temp. They load after
# the default Perl libs. If you want to load them before the system libs,
# uncomment the following line.
#$CPANBASE = "$twikiLibPath/CPAN/lib/";
The bottom line was uncommented - when I commented it out it all started working.
--
TWiki Guest - 2019-09-26
I am glad it's fixed.
--
Peter Thoeny - 2019-09-30
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.