Practical mod_perl / HTML Book /



previous page: 3.1.8. perl Makefile.PL Troubleshooting
  
page up: HTML Version of the book
  
next page: 3.1.8.2. Missing or misconfigured libgdbm.so

3.1.8.1. A test compilation with your Makefile configuration failed...


When you see the following error during the perl Makefile.PL stage:

** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.
 Aborting!

it's possible that you have a problem with a compiler. It may be improperly installed or not installed at all. Sometimes the reason is that your Perl executable was built on a different machine, and the software installed on your machine is not the same. Generally this happens when you install prebuilt packages, such as rpm or deb. You may find that the dependencies weren't properly defined in the Perl binary package and you were allowed to install it even though some essential packages were not installed.

The most frequent pitfall is a missing gdbm library (see the next section).

But why guess, when we can actually see the real error message and understand what the real problem is? To get a real error message, edit the Apache src/Configure script. Around line 2140, you should see a line like this:

if ./helpers/TestCompile sanity; then

Add the -v option, as follows:

if ./helpers/TestCompile -v sanity; then

and try again. Now you should get a useful error message.

 

Continue to:

  • prev: 3.1.8. perl Makefile.PL Troubleshooting
  • Table of Contents
  • next: 3.1.8.2. Missing or misconfigured libgdbm.so







TOP
previous page: 3.1.8. perl Makefile.PL Troubleshooting
  
page up: HTML Version of the book
  
next page: 3.1.8.2. Missing or misconfigured libgdbm.so


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com