LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2009, 03:23 PM   #1
swalker
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Apache install problems on Suse 11.1


I am new to Linux and have been having problems installing Apache. I have been searching the internet and have removed some errors but I still have the following:

configure: error: in `/usr/local/httpd-2.2.14':
configure: error: C preprocessor "gcc -E" fails sanity check

When I check the config.log I find these errors:

gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux)
configure:4713: $? = 0
configure:4702: gcc -V >&5
gcc: '-V' option must have argument
configure:4713: $? = 1
configure:4702: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files

and

configure:5231: result: gcc -E
configure:5251: gcc -E -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:122,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
configure:5251: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5251: gcc -E -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:122,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/syslimits.h:7,
from /usr/lib64/gcc/x86_64-suse-linux/4.3/include-fixed/limits.h:11,
from conftest.c:10:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
configure:5251: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5281: error: in `/usr/local/httpd-2.2.14':
configure:5284: error: C preprocessor "gcc -E" fails sanity check

As I said - this is fewer errors than I started with but would appreciate any help finding a fix for the above. Thanks in advance!
 
Old 11-30-2009, 04:51 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,173

Rep: Reputation: Disabled
Welcome to LQ.

You don't need to compile Apache yourself, there are binary packages for it, available for Open Suse 11.1 Why not use it ?

Just follow this link
 
Old 12-01-2009, 06:55 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*

# zypper in apache2

.. provides version 2.2.10 .
 
Old 12-01-2009, 07:52 AM   #4
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
Quote:
Originally Posted by Didier Spaier View Post
Welcome to LQ.

You don't need to compile Apache yourself, there are binary packages for it, available for Open Suse 11.1 Why not use it ?

Just follow this link
I have to agree. compiling yourself is more headache than it's worth when you have YAST. Run that, and do a search for apache. I think it shows up as apache 2 pre-fork or something like that
 
Old 12-01-2009, 09:16 AM   #5
swalker
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server load problems with Suse 9.3 and Apache 2.0.53 wessie Linux - Newbie 1 08-04-2006 05:14 AM
trying to install suse 10.1 with rpm/package apache and php5/ssl problems?? wandering Linux - General 1 07-03-2006 12:20 PM
Problems with Apache and PHP on SUSE jacobt Linux - Software 9 12-20-2005 04:56 AM
Problems with Apache and SuSE 8.2 l1mpp1mp Linux - Networking 6 09-20-2003 05:54 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration