SID-01503: RCS causes software error on configure
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
5.16.0 |
| Category: |
CategoryInstallation |
Server OS: |
Arch Linux, kernel 3.4.4 |
Last update: |
5 years ago |
As part of my initial install, configure displays a Software Error on the page without finishing loading the rest of the settings after CGI setup:
Argument "5.8.1" isn't numeric in numeric lt (<) at /srv/http/twiki/lib/TWiki/Configure/Checker.pm line 307.
RCS is version 5.8.1 and this only happened when I installed it so I know that must be what it is. I'm not sure where to go from here.
--
PeteLey - 2012-07-17
Discussion and Answer
It looks like configure is failing to detect
RCS properly. Try this patch:
--- twiki/lib/TWiki/Configure/Checker.pm (revision 23023)
+++ twiki/lib/TWiki/Configure/Checker.pm (working copy)
@@ -299,9 +299,10 @@
$err .= $key.' is not set';
} else {
my $version = `$prog -V` || '';
- if ( $version =~ /(\d+(\.\d+)+)/ ) {
+ if ( $version !~ /Can't exec/ && $version =~ /(\d+(\.\d+)+)/ ) {
$version = $1;
} else {
+ $version = '';
$err .= $this->ERROR($prog.' did not return a version number (or might not exist..)');
}
if( $version =~ /^\d/ && $version < $rcsverRequired ) {
--
PeterThoeny - 2012-07-19
This is tracked in
TWikibug:Item6905
.
--
PeterThoeny - 2012-07-21
You may also want to see this:
ConfigureCheckerNumericError
--
AaronLWalker - 2012-07-30
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2012-10-24
Hello,
After I change this code to
m if ( $version !~ /Can't exec/ && $version =~ /(\d+(\.\d+))/ ) {
It works again. It seems to be the regex matching issue. This modification will only read first two blocks of version. ex. 5.8.1 -> 5.8
--
TWiki Guest - 2020-03-21
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.