Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache HTTP Server and C error on AIX 5.1

Status
Not open for further replies.

redwings

MIS
Aug 6, 2001
93
0
0
US
Hello all,

I am trying to get the Apache HTTP Server to run on AIX 5.1. I followed the instructions from the apache.org website and when I get to the configure using C this is the issue I get:

configure: error: C compiler cannot create executables

I am using IBM C for AIX version 4.4, can anyone help me out with this issue.
 
I am just following the procedures that Apache has on the Website to install the software:

Download $ lynx Extract $ gzip -d httpd-2_0_NN.tar.gz
$ tar xvf httpd-2_0_NN.tar
Configure $ ./configure --prefix=PREFIX
Compile $ make
Install $ make install
Customize $ vi PREFIX/conf/httpd.conf
Test $ PREFIX/bin/apachectl start

NN must be replaced with the current minor version number, and PREFIX must be replaced with the filesystem path under which the server should be installed. If PREFIX is not specified, it defaults to /usr/local/apache2.

Each section of the compilation and installation process is described in more detail below, beginning with the requirements for compiling and installing Apache HTTPD.
 
This might be a stupid question on my part, but are you actually typing "PREFIX"? This should be /usr/local or wherever you want to install Apache, and defaults to /usr/local/apache2.
 
Also, the NN in your httpd-2_0_NN.tar needs to be replaced by the Apache version, e.g., 18, so it would be httpd-2_0_18.tar
 
We have made all those changes. We actually let it default to /usr/local/apache2. We have untarred the file, and it created the directory to find the configure command to run.
 
Is this a true statement:

C for AIX must be at level 5.0.2.X in order to be used with AIX 5L

If it is, then I know why I am having issues, can someone confirm this.
 
WEll now that we were able to get it compiled this is what we get when we try to start the apache software:
[Fri Mar 19 14:00:18 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Fri Mar 19 15:36:28 2004] [warn] pid file /usr/local/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache
run?
[Fri Mar 19 15:36:28 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Fri Mar 19 15:36:28 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Fri Mar 19 15:36:28 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Fri Mar 19 15:36:28 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295
[Fri Mar 19 15:36:28 2004] [notice] Apache/2.0.40 (Unix) configured -- resuming normal operations
[Fri Mar 19 15:36:28 2004] [alert] Child 18222 returned a Fatal error...
Apache is exiting!
[Fri Mar 19 15:36:28 2004] [alert] (22)Invalid argument: setgid: unable to set group id to Group 4294967295

Any ideas?
 
If you read the comments in the httpd.conf file it mentions this specific problem. You need to set the group to an actual group or try -1.
 
I missed that in the httpd.conf.

Thanks, I made the change and now it is up and running.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top