Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.