create new tag
, view all tags

SID-01629: Can't run configure script

Status: Answered Answered TWiki version: 5.1.3 Perl version:
Category: CategoryInstallation Server OS: Last update: 1 year ago

Can't do the first step of installation, running configure. Just popped up as a text file. Then I followed a bunch of fixing steps listed on this site and am now getting this error:

-- Could not load CGI::Carp. Please install this module before continuing. It can be downloaded from http://www.cpan.org

The error seen was: Can't locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl) at (eval 1) line 2. BEGIN failed--compilation aborted at (eval 1) line 2. --

Seriously doubt this is the problem, but I'm downloading carp now. Any other ideas?

-- David Tannenbaum - 2013-01-23

Discussion and Answer

This is an apache configuration issue. Your twiki/bin is configures as a html doc directory instead of a script directory. Use the ApacheConfigGenerator.

-- Peter Thoeny - 2013-03-05

Hi Peter

I had the same problem and used the web tool ApacheConfigGenerator. I get the following error in the apache error log. can you please give me nail me the exact issue and solution.

[Thu Jun 06 15:18:38 2013] [error] [client] access to /bin/configure failed, reason: require directives present and no Authoritative handler., referer: [Thu Jun 06 15:18:38 2013] [error] [client] Can't locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl5 /usr/share/perl5 /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl) at /srv/www/hsenidtwiki.com/twiki/bin/register line 28., referer: [Thu Jun 06 15:18:38 2013] [error] [client] BEGIN failed--compilation aborted at /srv/www/hsenidtwiki.com/twiki/bin/register line 28., referer: [Thu Jun 06 15:18:38 2013] [error] [client] Premature end of script headers: register, referer:

This is my httpd.conf

# Autogenerated httpd.conf file for TWiki. # Generated at http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator

# IMPORTANT NOTE: Make sure to enable mod_cgi in the primary apache configuration file.

# We set an environment variable called blockAccess. # # Setting a BrowserMatchNoCase to ^$ is important. It prevents TWiki from # including its own topics as URLs and also prevents other TWikis from # doing the same. This is important to prevent the most obvious # Denial of Service attacks. # # You can expand this by adding more BrowserMatchNoCase statements to # block evil browser agents trying the impossible task of mirroring a twiki # # Example: # BrowserMatchNoCase ^SiteSucker blockAccess # BrowserMatchNoCase ^$ blockAccess

BrowserMatchNoCase ^$ blockAccess

<IfModule mod_perl.c> # Mod_perl preloading PerlSwitches -T </IfModule>

# The ScriptAlias defines the bin directory as a directory where CGI # scripts are allowed. # The first parameter will be part of the URL to your installation e.g. # http://example.com/do/view/... # The second parameter must point to the physical path on your disc. ScriptAlias /srv/www/hsenidtwiki.com/twiki/bin "/srv/www/hsenidtwiki.com/twiki/bin"

# The Alias defines a url that points to the twiki pub directory, which # is the root of file attachments. Alias /srv/www/hsenidtwiki.com/twiki/pub "/srv/www/hsenidtwiki.com/twiki/pub"

# This specifies the options on the TWiki scripts directory. The ExecCGI # and SetHandler tell apache that it contains scripts. "Require all granted" # lets any IP address access this URL. <Directory "/srv/www/hsenidtwiki.com/twiki/bin"> AllowOverride None Require all granted Deny from env=blockAccess

Options ExecCGI FollowSymLinks SetHandler cgi-script

# Password file for TWiki users AuthUserFile /srv/www/hsenidtwiki.com/twiki/data/.htpasswd AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith)' AuthType Basic

# File to return on access control error (e.g. wrong password) ErrorDocument 401 /srv/www/hsenidtwiki.com/twiki/bin/view/TWiki/TWikiRegistration


# This sets the options on the pub directory, which contains attachments and # other files like CSS stylesheets and icons. AllowOverride None stops a # user installing a .htaccess file that overrides these options. # Note that files in pub are not protected by TWiki Access Controls, # so if you want to control access to files attached to topics you need to # block access to the specific directories same way as the ApacheConfigGenerator # blocks access to the pub directory of the Trash web <Directory "/srv/www/hsenidtwiki.com/twiki/pub"> Options None AllowOverride None Require all granted Deny from env=blockAccess

# This line will redefine the mime type for the most common types of scripts AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi

#add an Expires header that is sufficiently in the future that the browser does not even ask if its uptodate # reducing the load on the server significantly #IF you can, you should enable this - it will improve your twiki experience, even if you set it to under one day. # you may need to enable expires_module in your main apache config expires_module libexec/httpd/mod_expires.so mod_expires.c #<ifmodule mod_expires.c> # <filesmatch "\.(jpg|gif|png|css|js)$"> # ExpiresActive on # ExpiresDefault "access plus 11 days" # </filesmatch> #</ifmodule>


-- Saenthan Sae - 2013-06-06

Please follow the installation instructions and install the dependencies. "Can't locate CGI/Carp.pm in @INC" is an indication that you miss CPAN:CGI::Carp.

-- Peter Thoeny - 2013-06-06

I found a fix for this which is not mentioned in the install instructions, as far as I can tell. It worked for me. I am running on Ubuntu Server 14.04.2 LTS

sudo a2enmod cgi sudo service apache2 restart

-- Neil Roberts - 2015-07-28

Just for clarification. That should be on either two lines or with a ; in between. Eg, sudo a2enmod cgi ; sudo service apache2 restart

-- Neil Roberts - 2015-07-28

A new extension is now available that should address the CGI issue: CgiContrib - for background see AddCGIpmToTWikiCore.

-- Peter Thoeny - 2015-10-28

      Change status to:
ALERT! 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.
Status Answered
Title Can't run configure script
SupportCategory CategoryInstallation
TWiki version 5.1.3
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2015-10-28 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.