LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache install problems on Suse 11.1 (https://www.linuxquestions.org/questions/linux-newbie-8/apache-install-problems-on-suse-11-1-a-772519/)

swalker 11-30-2009 03:23 PM

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!

Didier Spaier 11-30-2009 04:51 PM

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

knudfl 12-01-2009 06:55 AM

*

# zypper in apache2

.. provides version 2.2.10 .

bret381 12-01-2009 07:52 AM

Quote:

Originally Posted by Didier Spaier (Post 3774916)
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

swalker 12-01-2009 09:16 AM

Thank you!


All times are GMT -5. The time now is 11:35 AM.