- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: configure error no acceptable C compiler found...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 12:52 PM
тАО10-13-2010 12:52 PM
configure error no acceptable C compiler found in path in Red Hat
I want to install Apache 2.2.16 (httpd-2.2.16) on Red Hat (Linux VM). When I try to configure as follows:
./configure \ --prefix=/usr/local/apache2 \ --with-mpm=prefork \ --enable-ssl \ --disable-charset-lite \ --disable-include \ --disable-env \ --enable-setenvif \ --disable-status \ --disable-autoindex \ --disable-asis \ --disable-cgi \ --disable-negotiation \ --disable-imap \ --disable-actions \ --disable-userdir \ --disable-alias \ --disable-so
I get an error at the end:
configure: error: no acceptable C compiler found in $PATH
I have check several issues such as:
$PATH: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/libexec/gcc
# rpm тАУqa | grep gcc
libgcc-4.1.2-42.el5
libgcc-4.1.2-42.el5
compat-libgcc-296-2.96-138
From this point IтАЩm in a daze as to my next move, whether I should look into if my compiler is supporting or if a different version of gcc is needed.
Please advice asap, thanks in advance.
T. Hall
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 01:10 PM
тАО10-13-2010 01:10 PM
Re: configure error no acceptable C compiler found in path in Red Hat
> libgcc-4.1.2-42.el5
> libgcc-4.1.2-42.el5
> compat-libgcc-296-2.96-138
Those are C run-time libraries, which are
used by compiled programs. The compiler
itself is not in that list.
> [...] or if a different version of gcc is
> needed.
_Some_ version of GCC is needed. You don't
seem to have one.
type gcc
gcc --version
On my Debian system, it's "/usr/bin/gcc". I
don't know where Red Hat puts it, but that
PATH looks as if it hits all the popular
spots. Knowing nothing, I'd guess that you
need a plain "gcc" rpm, not only "libgcc"
stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2010 01:13 PM
тАО10-13-2010 01:13 PM
Re: configure error no acceptable C compiler found in path in Red Hat
> (httpd-2.2.16) [...]
If all you want is to _install_ Apache, then
you shouldn't need a C compiler, only a
complete Apache kit for your OS+hardware
combination. If you want to _build_ Apache
from a source kit, _then_ you need a C
compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 08:19 AM
тАО10-14-2010 08:19 AM
Re: configure error no acceptable C compiler found in path in Red Hat
I├в m very green to this process but ultimately I want to install Apache 2.2.16 like you detected. Base on the information I collected online it├в s pretty consistent that in order to install an Apache HTTP server 2.* (htppd-2.2.16) on Unix and Unix-like (Linux) system I have to follow these steps: download, extract, configure, compile, install, customize and test (http://httpd.apache.org/docs/2.0/install.html). Even after following these steps I├в m consistently coming up with errors like mention above.
Researching the errors its been mention that I may need a compiler or a certain gcc. So, again I├в m blindly following examples and if I├в m suspecting that I downloaded a complete Apache Kit from their website; however, if I├в m making adjustments instead of accepting default settings in the configuration then I might need a C compiler, right?
By the way thanks for responding, I├в m in this on my own so it├в s refreshing to bounce ideas off of someone else!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 08:53 AM
тАО10-14-2010 08:53 AM
Re: configure error no acceptable C compiler found in path in Red Hat
if you absolutely must have the latest version then download from apache.org and compile yourself.
be sure to read all the release information especially the co-requisites, pre-requisites and specific compiler requirements.
be prepared to spend some time doing this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 09:16 AM
тАО10-14-2010 09:16 AM
Re: configure error no acceptable C compiler found in path in Red Hat
Thanks for the assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 09:59 AM
тАО10-14-2010 09:59 AM
Re: configure error no acceptable C compiler found in path in Red Hat
> accepting default settings in the
> configuration then I might need a C
> compiler, right?
No. Read this again:
> If all you want is to _install_ Apache, then
> you shouldn't need a C compiler, only a
> complete Apache kit for your OS+hardware
> combination. If you want to _build_ Apache
> from a source kit, _then_ you need a C
> compiler.
_Configuring_ Apache is something which is
done after it's (built and) installed.
Not trying to be unkind, but if this much
isn't clear, then your chances of building
Apache yourself are pretty poor.
> If 2.2.3 is easier and is compatible with
> apache I'll just go with that.
"compatible with apache"? He's talking about
a version _of_ Apache. Until you know more,
you should stick with pre-built RPM kits for
your system, and avoid source kits which
require more work than simple installation
(steps like, say, "configure" and "compile").
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 10:25 AM
тАО10-14-2010 10:25 AM
Re: configure error no acceptable C compiler found in path in Red Hat
# yum install gcc
If you want apache, then the command to install that would be:
# yum install httpd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 10:40 AM
тАО10-14-2010 10:40 AM
Re: configure error no acceptable C compiler found in path in Red Hat
├в The first step in order to install Apache with SSL/TLS support is to configure and install the Apache 2 web server, and create a user and group named "apache". A secure way of installing Apache's 2.0 has already been published on SecurityFocus in the article Securing Apache 2.0: Step-by-Step. The only difference to that process is to enable mod_ssl and mod_setenvif, which is required to provide compatibility with some versions of MS Internet Explorer, as follows (changes shown in bold):
./configure \ --prefix=/usr/local/apache2 \ --with-mpm=prefork \ --enable-ssl \ --disable-charset-lite \ --disable-include \ --disable-env \ --enable-setenvif \ --disable-status \ --disable-autoindex \ --disable-asis \ --disable-cgi \ --disable-negotiation \ --disable-imap \ --disable-actions \ --disable-userdir \ --disable-alias \ --disable-so
Nevertheless, after this step my original error stated above occurs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 10:45 AM
тАО10-14-2010 10:45 AM
Re: configure error no acceptable C compiler found in path in Red Hat
Just for sake of argument I tired yum install for both httpd and httpd-2.2.16
[root@uncc49ers ~]# yum install httpd
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package httpd available.
Nothing to do
[root@uncc49ers ~]# yum install httpd-2.2.16
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package httpd-2.2.16 available.
Nothing to do
[root@uncc49ers ~]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2010 04:59 PM
тАО10-14-2010 04:59 PM
Re: configure error no acceptable C compiler found in path in Red Hat
Who are "they"?
> ./configure [...]
Ok. That is building Apache from a source
kit. To do that, you need a C compiler
(GCC), so you'll need to install that first.
Apache probably has many other prerequisites,
too, all of which you'll need to install,
too.
> [...] my original error stated above occurs.
You need to install GCC.
> This system is not registered with RHN.
If you expect to get this kind of service
from Red Hat, then you may need to pay for
it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2010 04:21 AM
тАО10-15-2010 04:21 AM
Re: configure error no acceptable C compiler found in path in Red Hat
If you only want to install apache you don't need to build it yourself from source. You can download a pre-compiled binary, which is much easier than compile it yourself.
Look for an apache binary rpm package, you can download it e.g. from here:
http://xenia.sote.hu/ftp/mirrors/www.apache.org//httpd/binaries/rpm/x86_64/
other links to binaries and the source:
http://httpd.apache.org/download.cgi#apache22
Regards,
Viktor
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2010 10:49 AM
тАО10-15-2010 10:49 AM
Re: configure error no acceptable C compiler found in path in Red Hat
> don't need to build it yourself from
> source. [...]
Good luck with that argument. It didn't work
when I tried it (twice).
Did you look at his proposed "./configure"
options (with all the "--disable-*" options)?
I doubt that most available kits will have
been built with "--disable-cgi", for example.
Whether it's reasonable to expect such a
novice to build Apache from the source is a
different question. I don't think that
there's much hope, but what do I know?