logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.




Apache 2.0.63 installation on AIX

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
rahim_s_a



Joined: 02 Dec 2009
Posts: 2

PostPosted: Wed 02 Dec '09 21:11    Post subject: Apache 2.0.63 installation on AIX Reply with quote

Hi gurus,

I am installing Apache 2.0.63 on AIX with native xlC. This requirement is a pre-requisite to have SAP Contnet Server.

I have xlC on my AIX 5.3 machine. Confirmed this with:
# lslpp -l | grep -i xlc
xlC.aix50.rte 10.1.0.0 COMMITTED XL C/C++ Runtime for
AIX 5.3
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.0 COMMITTED XL C/C++ Runtime
xlC.rte 10.1.0.0 COMMITTED XL C/C++ Runtime

I had to set the env variables as below, as per SAP recommendations:

CFLAGS="-q64", LDFLAGS="-q64", EXTRA_LDFLAGS_SHLIB="-b64" OBJECT_MODE=64

Also, CC=/usr/lpp/xlC was set to ensure that the native C compiler is used.

When I execute Configure command, I am getting the below error:


$ /home/gsqcs/apache_2063/httpd-2.0.63/configure --prefix=/home/gsqcs/apache_2063 --enable-mods-shared=most --with-mpm=prefork
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
checking target system type... powerpc-ibm-aix5.3.0.0

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... powerpc-ibm-aix5.3.0.0
checking host system type... powerpc-ibm-aix5.3.0.0
checking target system type... powerpc-ibm-aix5.3.0.0
Configuring APR library
Platform: powerpc-ibm-aix5.3.0.0
checking for working mkdir -p... yes
APR Version: 0.9.17
checking for chosen layout... apr
checking for gcc... /usr/lpp/xlC
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
----------

SAP guys says - Under AIX the compiler gcc is not replaced automatically. For that you need to export the flag CC=/*/bin/xlc (xlc -> IBM nativ xlc compiler) Otherwise the gcc compiler will be always used.

Please advise how I can use the correct C compiler and install Apache without errors.

Thanks in advance,
Abdul
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6383
Location: Germany, Next to Hamburg

PostPosted: Wed 02 Dec '09 22:08    Post subject: Reply with quote

Please see http://people.apache.org/~trawick/apache-2-on-aix.html

Hope that helps.
Back to top
rahim_s_a



Joined: 02 Dec 2009
Posts: 2

PostPosted: Thu 03 Dec '09 8:10    Post subject: Thanks, but the error is stil there :( Reply with quote

Hi,

I have used the option CC=xlc_r and executed CC=xlc_r /home/gsqcs/apache_2063/httpd-2.0.63/configure --prefix=/home/gsqcs/apache_2063 --enable-mods-shared=most --with-mpm=prefork

but still getting the error message:

checking for gcc... xlc_r
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr

How do I ensure that xlC is correctly picked up?

I have xlC:

# lslpp -l | grep -i xlc
xlC.aix50.rte 10.1.0.0 COMMITTED XL C/C++ Runtime for
AIX 5.3
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 10.1.0.0 COMMITTED XL C/C++ Runtime
xlC.rte 10.1.0.0 COMMITTED XL C/C++ Runtime

the location of xlc is:

$ ls -l | grep xlC
drwxr-xr-x 4 bin bin 256 Jun 17 2008 xlC
drwxr-xr-x 3 root system 256 Jul 23 19:09 xlC.aix50
drwxr-xr-x 3 root system 256 Jul 23 19:25 xlC.cpp
drwxr-xr-x 3 root system 256 Jul 23 19:25 xlC.msg.en_US
drwxr-xr-x 3 root system 256 Jul 23 19:33 xlC.msg.en_US.cpp
drwxr-xr-x 3 root system 256 Jul 23 19:09 xlC.rte
$ pwd
/usr/lpp

What is the correct way of using xlC as the compiler?

My Apache installation is stuck because of this. Please help !!

Thanks in advance,
Abdul
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6383
Location: Germany, Next to Hamburg

PostPosted: Thu 03 Dec '09 23:07    Post subject: Reply with quote

I'm a linux noob and not used to aix. But there is
Quote:

See `config.log' for more details.


So that is in that log? Anything useful?

Maybe you need to run buildconf before configure
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1