Solved

apache configure error

Posted on 2003-12-03
6
308 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

773 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