Solved

apache configure error

Posted on 2003-12-03
6
309 Views
Last Modified: 2010-03-04
I want to install apache and I got this error during :
CC="cc" ./configure

----C preprocessor "lib/cpp" fails sanity check (srclib/apr)----

Any idea? I need to set some environment variables?

Or maybe its mandatory to install gcc before installing apache?

0
Comment
Question by:Alta_
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
samri earned 50 total points
ID: 9875506
Alta_,

What is your platform? Apache version?

gcc is not mandatory to compile Apache? BUT C compiler is.  Check you system and see if you had a C compiler installed. The simplest thing to do would be try to run "cc" or "gcc"

If the C compiler is missing, you may need to install one.  GCC is free?  Depeding on your OS type/version, we can recommend a site to download the precompiled binary (I alway found it is fun to build the gcc compared to getting the precompiled version).

please check the availability of C compiler first. If it's missing, then state the OS (maybe "uname -a" command would display the info), then we may be able to help to get the compiler first.
0
 

Author Comment

by:Alta_
ID: 9880625
I use Apache 2.0.48 and Unix Tru64.
I already had cc but maybe some files were missing.
I have installed some extra files..I think header  and library files (OSFINCLUDE,OSFLIBA) ...
and I succeded to configure,make,install Apache.
But I've read it is recommended to have gcc before installing Apache. I dont want to use precompiled version. And gcc-3.2 installing fails
("make bootstrap")...with an error.. some file is missing . So..its needed gcc or not?


0
 
LVL 15

Expert Comment

by:samri
ID: 10001933
HI Alta_,

Apology.  I've been extra busy lately.

So, If you do not want to use the precomiled version of GCC, then you must build the compiler itself.  It's not going to be a fun job though.

I did some searches thru google, and found out that people actually recommending using the bundled C compiler that comes with Tru64 (http://dbforums.com/arch/184/2003/4/719286) -- since it produces faster binaries. (not sure).  Check your system and see if the C compiler is installed.  If not, try to get some help to get it installed.


0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 15

Expert Comment

by:samri
ID: 10001953
HI Alta_,

Apology.  I've been extra busy lately.

So, If you do not want to use the precomiled version of GCC, then you must build the compiler itself.  It's not going to be a fun job though.

I did some searches thru google, and found out that people actually recommending using the bundled C compiler that comes with Tru64 (http://dbforums.com/arch/184/2003/4/719286) -- since it produces faster binaries. (not sure).  Check your system and see if the C compiler is installed.  If not, try to get some help to get it installed.
0
 

Author Comment

by:Alta_
ID: 10050149
Okay, thanks.
I checked and the bundled C compiler exists and its working...after I installed some header files and libraries..apache is working good so far..so
maybe I do not need gcc for the moment.
0
 
LVL 15

Expert Comment

by:samri
ID: 10051701
that sounds great.

If you feels that you are doing fine now, you may close the Question.

feel free to ask should you require any assistance.

cheers.  (and Happy New Year!)
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question