You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nishaliny Thurairatnam <ni...@foodreg.my> on 2009/04/10 18:55:38 UTC
[users@httpd] Strange compile error for Apache 2.2.11
Hi,
I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This
installation is to exists as a second apache instance on the server.
I've 2 problems so far:
*First*
My initial configure options were like so:
./configure --prefix=/etc/httpd2 --enable-modules=all
--enable-mods-shared="all cache proxy authn_alias mem_cache file_cache
rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
--with-port=80 --with-program-name=httpd2
I have in fact successfully done an installation on another CentOS
server(similar to the above) with these parameters recently. However, on
this server, I get the following configure error (complete logs in
config.log.1, as attached):
/
checking whether to enable mod_auth_digest... checking dependencies
You need APR random support to use mod_auth_digest.
Look at APR configure options --with-egd and --with-devrandom.
checking whether to enable mod_auth_digest... configure: error:
mod_auth_digest has been requested but can not be built due to
prerequisite failures/
I tried to re-configure using first /"--with-egd/", which failed, and
then tried /"--with-devrandom=/dev/urandom", /which also failed miserably.
Then, from the logs, it seemed that configure was looking for apr in a
directory that did not exist(at least from my understanding). In the
specified location, I had a directory called "apr-1", so I created a
softlink called "apr" pointing to "apr-1". That did not make any difference.
After many unsuccessful trials, I decided to switch and try
"/--enable-mods-shared=most"/. That's where the second error came in.
*Second*
My second configure options were like so:
./configure --prefix=/etc/httpd2 --enable-modules=all
--enable-mods-shared="most cache proxy authn_alias mem_cache file_cache
rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
--with-port=80 --with-program-name=httpd2
This gave a more interesting error, which was (config.log.2, as attached):
/
checking whether to enable mod_userdir... shared (most)
checking whether to enable mod_alias... shared (most)
checking whether to enable mod_rewrite... shared
configure: error: shared objects have been requested but cannot be built
since mod_so cannot be built
/I have Googled the skies and could not find any workable solution, and
the weird thing is that most of the other people who have previously
encountered this problem, work on BSD's or AIX's or similar. Plus, they
all date way back to year 2002-2003.
It's got to be something that I'm doing wrong, or just missing, BUT I
JUST CAN'T SEE IT!!!
Please, someone, anyone, any thoughts/ideas that might save me?
Thanks a million in advance!
Regards,
Nisha
Re: [users@httpd] Strange compile error for Apache 2.2.11
Posted by Nishaliny Thurairatnam <ni...@foodreg.my>.
Hi again,
So I manage to get my Apache installed in the end. For those who'd like
to know/looking for a similar solution, all I had to do was:
> yum list apr*,
[list displayed - My versions were slightly older, and there were some
apr-utils that I was missing]
> yum install apr*
[Installed new packages and updated old ones]
Then everything worked fine.
Thanks.
Regards,
Nisha
Nishaliny Thurairatnam wrote:
> Ok, so I spoke waaay too soon!
> After a successful configure, I had an epic "make" failure!!
>
> Making all in srclib
> make[1]: Entering directory
> `/home/foodreg/Installers/httpd-2.2.11/srclib'
> Making all in pcre
> make[2]: Entering directory
> `/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
> make[3]: Entering directory
> `/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
> /apr-1/build/libtool --silent --mode=compile gcc -pthread
> -I/home/foodreg/Installers/httpd-2.2.11/srclib/pcre -I.
> -I/home/foodreg/Installers/httpd-2.2.11/os/unix
> -I/home/foodreg/Installers/httpd-2.2.11/server/mpm/prefork
> -I/home/foodreg/Installers/httpd-2.2.11/modules/http
> -I/home/foodreg/Installers/httpd-2.2.11/modules/filters
> -I/home/foodreg/Installers/httpd-2.2.11/modules/proxy
> -I/home/foodreg/Installers/httpd-2.2.11/include
> -I/home/foodreg/Installers/httpd-2.2.11/modules/generators
> -I/home/foodreg/Installers/httpd-2.2.11/modules/mappers
> -I/home/foodreg/Installers/httpd-2.2.11/modules/database
> -I/usr/include/apr-1
> -I/home/foodreg/Installers/httpd-2.2.11/modules/proxy/../generators
> -I/usr/kerberos/include
> -I/home/foodreg/Installers/httpd-2.2.11/modules/ssl
> -I/home/foodreg/Installers/httpd-2.2.11/modules/dav/main -c
> maketables.c && touch maketables.lo
> /bin/sh: /apr-1/build/libtool: No such file or directory
> make[3]: *** [maketables.lo] Error 127
> make[3]: Leaving directory
> `/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/foodreg/Installers/httpd-2.2.11/srclib'
> make: *** [all-recursive] Error 1
>
> I may be wrong, but it seems to me that my apr is totally screwed up....
> HELP! :-(
>
> Regards,
> Nisha
>
>
>
>
> Nishaliny Thurairatnam wrote:
>> Hi Prasanna,
>>
>> Thank you for your reply...I'm definitely no Apache expert, but I
>> think I decided to arrange my configure options this way before,
>> because I'd read(in the Apache documentation...I think) that
>> --enable-modules=all doesn't actually enable all modules, and that's
>> why we have to specify a few of them explicitly.
>>
>> I tried your suggestions, and I got the same error again :-(
>>
>> ./configure --prefix=/etc/httpd2 --enable-mods-shared="all cache
>> proxy authn_alias mem_cache file_cache rewrite" --enable-suexec
>> --enable-ssl --with-mysql --with-apxs
>> --with-apr=/usr/bin/apr-1-config --with-port=80
>> --with-program-name=httpd2
>>
>> This time I removed --enable-modules=all, and specified --with-apr
>> explicitly, although I did not install apr separately.
>>
>> I tried configure with --enable-mods-shared "all" and "most". I got
>> the same errors as before.
>>
>> Fyi, I'm executing my configure script from within this directory:
>>
>> /home/<user>/Installers/httpd-2.2.11
>>
>> This may sound a little ridiculous, but could that be a possible
>> reason??
>>
>> *Update*: Finally got a configure combi that actually compiles
>> without any errors!!!
>>
>> ./configure --prefix=/etc/httpd2 --enable-modules=most --enable-cache
>> --enable-proxy --enable-authn_alias --enable-mem_cache
>> --enable-file_cache --enable-rewrite --enable-suexec --enable-ssl
>> --with-mysql --with-apxs --with-apr=/usr/bin/apr-1-config
>> --with-port=80 --with-program-name=httpd2
>>
>> The bad thing is, I had to remove "--enable-so" for it to work. Is it
>> recommended to do an installation of Apache without "so"??
>>
>> Regards,
>> Nisha
>>
>>
>>
>>
>> Prasanna Ram Venkatachalam wrote:
>>> Also... Why do u need --enable-modules=all and
>>> --enable-mods-shared=most?? One will statically compile all into
>>> httpd and other will create .so files for most. Based on your
>>> requirement i think u can remove one of them. I personally suggest
>>> removing first. Just a thought!
>>>
>>> Regardss
>>> Prasanna Ram
>>>
>>>
>>> On Sat, Apr 11, 2009 at 10:09 AM, Prasanna Ram Venkatachalam
>>> <vpram86@gmail.com <ma...@gmail.com>> wrote:
>>>
>>> Hmmm.. i am not sure about the second error. But the first one
>>> related to apr rings some bell. Did you try using --with-apr
>>> option to explicitly mention path to apr libraries if you have
>>> them separately built?
>>>
>>> Prasanna Ram
>>>
>>>
>>> On Fri, Apr 10, 2009 at 10:25 PM, Nishaliny Thurairatnam
>>> <ni...@foodreg.my> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This
>>> installation is to exists as a second apache instance on the
>>> server. I've 2 problems so far:
>>>
>>> *First*
>>>
>>> My initial configure options were like so:
>>>
>>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>>> --enable-mods-shared="all cache proxy authn_alias mem_cache
>>> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
>>> --with-apxs --with-port=80 --with-program-name=httpd2
>>>
>>> I have in fact successfully done an installation on another
>>> CentOS server(similar to the above) with these parameters
>>> recently. However, on this server, I get the following
>>> configure error (complete logs in config.log.1, as attached):
>>> /
>>> checking whether to enable mod_auth_digest... checking
>>> dependencies
>>> You need APR random support to use mod_auth_digest.
>>> Look at APR configure options --with-egd and --with-devrandom.
>>> checking whether to enable mod_auth_digest... configure:
>>> error: mod_auth_digest has been requested but can not be built
>>> due to prerequisite failures/
>>>
>>> I tried to re-configure using first /"--with-egd/", which
>>> failed, and then tried /"--with-devrandom=/dev/urandom",
>>> /which also failed miserably.
>>> Then, from the logs, it seemed that configure was looking for
>>> apr in a directory that did not exist(at least from my
>>> understanding). In the specified location, I had a directory
>>> called "apr-1", so I created a softlink called "apr" pointing
>>> to "apr-1". That did not make any difference.
>>>
>>> After many unsuccessful trials, I decided to switch and try
>>> "/--enable-mods-shared=most"/. That's where the second error
>>> came in.
>>>
>>> *Second*
>>>
>>> My second configure options were like so:
>>>
>>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>>> --enable-mods-shared="most cache proxy authn_alias mem_cache
>>> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
>>> --with-apxs --with-port=80 --with-program-name=httpd2
>>>
>>> This gave a more interesting error, which was (config.log.2,
>>> as attached):
>>> /
>>> checking whether to enable mod_userdir... shared (most)
>>> checking whether to enable mod_alias... shared (most)
>>> checking whether to enable mod_rewrite... shared
>>> configure: error: shared objects have been requested but
>>> cannot be built since mod_so cannot be built
>>>
>>> /I have Googled the skies and could not find any workable
>>> solution, and the weird thing is that most of the other people
>>> who have previously encountered this problem, work on BSD's or
>>> AIX's or similar. Plus, they all date way back to year
>>> 2002-2003.
>>>
>>> It's got to be something that I'm doing wrong, or just
>>> missing, BUT I JUST CAN'T SEE IT!!!
>>>
>>> Please, someone, anyone, any thoughts/ideas that might save me?
>>>
>>> Thanks a million in advance!
>>>
>>> Regards,
>>> Nisha
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP
>>> Server Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> <ma...@httpd.apache.org>
>>> " from the digest:
>>> users-digest-unsubscribe@httpd.apache.org
>>> <ma...@httpd.apache.org>
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>> <ma...@httpd.apache.org>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Strange compile error for Apache 2.2.11
Posted by Nishaliny Thurairatnam <ni...@foodreg.my>.
Ok, so I spoke waaay too soon!
After a successful configure, I had an epic "make" failure!!
Making all in srclib
make[1]: Entering directory `/home/foodreg/Installers/httpd-2.2.11/srclib'
Making all in pcre
make[2]: Entering directory
`/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
make[3]: Entering directory
`/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
/apr-1/build/libtool --silent --mode=compile gcc -pthread
-I/home/foodreg/Installers/httpd-2.2.11/srclib/pcre -I.
-I/home/foodreg/Installers/httpd-2.2.11/os/unix
-I/home/foodreg/Installers/httpd-2.2.11/server/mpm/prefork
-I/home/foodreg/Installers/httpd-2.2.11/modules/http
-I/home/foodreg/Installers/httpd-2.2.11/modules/filters
-I/home/foodreg/Installers/httpd-2.2.11/modules/proxy
-I/home/foodreg/Installers/httpd-2.2.11/include
-I/home/foodreg/Installers/httpd-2.2.11/modules/generators
-I/home/foodreg/Installers/httpd-2.2.11/modules/mappers
-I/home/foodreg/Installers/httpd-2.2.11/modules/database
-I/usr/include/apr-1
-I/home/foodreg/Installers/httpd-2.2.11/modules/proxy/../generators
-I/usr/kerberos/include
-I/home/foodreg/Installers/httpd-2.2.11/modules/ssl
-I/home/foodreg/Installers/httpd-2.2.11/modules/dav/main -c
maketables.c && touch maketables.lo
/bin/sh: /apr-1/build/libtool: No such file or directory
make[3]: *** [maketables.lo] Error 127
make[3]: Leaving directory
`/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/foodreg/Installers/httpd-2.2.11/srclib/pcre'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/foodreg/Installers/httpd-2.2.11/srclib'
make: *** [all-recursive] Error 1
I may be wrong, but it seems to me that my apr is totally screwed up....
HELP! :-(
Regards,
Nisha
Nishaliny Thurairatnam wrote:
> Hi Prasanna,
>
> Thank you for your reply...I'm definitely no Apache expert, but I
> think I decided to arrange my configure options this way before,
> because I'd read(in the Apache documentation...I think) that
> --enable-modules=all doesn't actually enable all modules, and that's
> why we have to specify a few of them explicitly.
>
> I tried your suggestions, and I got the same error again :-(
>
> ./configure --prefix=/etc/httpd2 --enable-mods-shared="all cache proxy
> authn_alias mem_cache file_cache rewrite" --enable-suexec --enable-ssl
> --with-mysql --with-apxs --with-apr=/usr/bin/apr-1-config
> --with-port=80 --with-program-name=httpd2
>
> This time I removed --enable-modules=all, and specified --with-apr
> explicitly, although I did not install apr separately.
>
> I tried configure with --enable-mods-shared "all" and "most". I got
> the same errors as before.
>
> Fyi, I'm executing my configure script from within this directory:
>
> /home/<user>/Installers/httpd-2.2.11
>
> This may sound a little ridiculous, but could that be a possible reason??
>
> *Update*: Finally got a configure combi that actually compiles without
> any errors!!!
>
> ./configure --prefix=/etc/httpd2 --enable-modules=most --enable-cache
> --enable-proxy --enable-authn_alias --enable-mem_cache
> --enable-file_cache --enable-rewrite --enable-suexec --enable-ssl
> --with-mysql --with-apxs --with-apr=/usr/bin/apr-1-config
> --with-port=80 --with-program-name=httpd2
>
> The bad thing is, I had to remove "--enable-so" for it to work. Is it
> recommended to do an installation of Apache without "so"??
>
> Regards,
> Nisha
>
>
>
>
> Prasanna Ram Venkatachalam wrote:
>> Also... Why do u need --enable-modules=all and
>> --enable-mods-shared=most?? One will statically compile all into
>> httpd and other will create .so files for most. Based on your
>> requirement i think u can remove one of them. I personally suggest
>> removing first. Just a thought!
>>
>> Regardss
>> Prasanna Ram
>>
>>
>> On Sat, Apr 11, 2009 at 10:09 AM, Prasanna Ram Venkatachalam
>> <vpram86@gmail.com <ma...@gmail.com>> wrote:
>>
>> Hmmm.. i am not sure about the second error. But the first one
>> related to apr rings some bell. Did you try using --with-apr
>> option to explicitly mention path to apr libraries if you have
>> them separately built?
>>
>> Prasanna Ram
>>
>>
>> On Fri, Apr 10, 2009 at 10:25 PM, Nishaliny Thurairatnam
>> <ni...@foodreg.my> wrote:
>>
>> Hi,
>>
>> I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This
>> installation is to exists as a second apache instance on the
>> server. I've 2 problems so far:
>>
>> *First*
>>
>> My initial configure options were like so:
>>
>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>> --enable-mods-shared="all cache proxy authn_alias mem_cache
>> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
>> --with-apxs --with-port=80 --with-program-name=httpd2
>>
>> I have in fact successfully done an installation on another
>> CentOS server(similar to the above) with these parameters
>> recently. However, on this server, I get the following
>> configure error (complete logs in config.log.1, as attached):
>> /
>> checking whether to enable mod_auth_digest... checking
>> dependencies
>> You need APR random support to use mod_auth_digest.
>> Look at APR configure options --with-egd and --with-devrandom.
>> checking whether to enable mod_auth_digest... configure:
>> error: mod_auth_digest has been requested but can not be built
>> due to prerequisite failures/
>>
>> I tried to re-configure using first /"--with-egd/", which
>> failed, and then tried /"--with-devrandom=/dev/urandom",
>> /which also failed miserably.
>> Then, from the logs, it seemed that configure was looking for
>> apr in a directory that did not exist(at least from my
>> understanding). In the specified location, I had a directory
>> called "apr-1", so I created a softlink called "apr" pointing
>> to "apr-1". That did not make any difference.
>>
>> After many unsuccessful trials, I decided to switch and try
>> "/--enable-mods-shared=most"/. That's where the second error
>> came in.
>>
>> *Second*
>>
>> My second configure options were like so:
>>
>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>> --enable-mods-shared="most cache proxy authn_alias mem_cache
>> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
>> --with-apxs --with-port=80 --with-program-name=httpd2
>>
>> This gave a more interesting error, which was (config.log.2,
>> as attached):
>> /
>> checking whether to enable mod_userdir... shared (most)
>> checking whether to enable mod_alias... shared (most)
>> checking whether to enable mod_rewrite... shared
>> configure: error: shared objects have been requested but
>> cannot be built since mod_so cannot be built
>>
>> /I have Googled the skies and could not find any workable
>> solution, and the weird thing is that most of the other people
>> who have previously encountered this problem, work on BSD's or
>> AIX's or similar. Plus, they all date way back to year
>> 2002-2003.
>>
>> It's got to be something that I'm doing wrong, or just
>> missing, BUT I JUST CAN'T SEE IT!!!
>>
>> Please, someone, anyone, any thoughts/ideas that might save me?
>>
>> Thanks a million in advance!
>>
>> Regards,
>> Nisha
>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP
>> Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> <ma...@httpd.apache.org>
>> " from the digest:
>> users-digest-unsubscribe@httpd.apache.org
>> <ma...@httpd.apache.org>
>> For additional commands, e-mail: users-help@httpd.apache.org
>> <ma...@httpd.apache.org>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Strange compile error for Apache 2.2.11
Posted by Nishaliny Thurairatnam <ni...@foodreg.my>.
Hi Prasanna,
Thank you for your reply...I'm definitely no Apache expert, but I think
I decided to arrange my configure options this way before, because I'd
read(in the Apache documentation...I think) that --enable-modules=all
doesn't actually enable all modules, and that's why we have to specify a
few of them explicitly.
I tried your suggestions, and I got the same error again :-(
./configure --prefix=/etc/httpd2 --enable-mods-shared="all cache proxy
authn_alias mem_cache file_cache rewrite" --enable-suexec --enable-ssl
--with-mysql --with-apxs --with-apr=/usr/bin/apr-1-config --with-port=80
--with-program-name=httpd2
This time I removed --enable-modules=all, and specified --with-apr
explicitly, although I did not install apr separately.
I tried configure with --enable-mods-shared "all" and "most". I got the
same errors as before.
Fyi, I'm executing my configure script from within this directory:
/home/<user>/Installers/httpd-2.2.11
This may sound a little ridiculous, but could that be a possible reason??
*Update*: Finally got a configure combi that actually compiles without
any errors!!!
./configure --prefix=/etc/httpd2 --enable-modules=most --enable-cache
--enable-proxy --enable-authn_alias --enable-mem_cache
--enable-file_cache --enable-rewrite --enable-suexec --enable-ssl
--with-mysql --with-apxs --with-apr=/usr/bin/apr-1-config --with-port=80
--with-program-name=httpd2
The bad thing is, I had to remove "--enable-so" for it to work. Is it
recommended to do an installation of Apache without "so"??
Regards,
Nisha
Prasanna Ram Venkatachalam wrote:
> Also... Why do u need --enable-modules=all and
> --enable-mods-shared=most?? One will statically compile all into httpd
> and other will create .so files for most. Based on your requirement i
> think u can remove one of them. I personally suggest removing first.
> Just a thought!
>
> Regardss
> Prasanna Ram
>
>
> On Sat, Apr 11, 2009 at 10:09 AM, Prasanna Ram Venkatachalam
> <vpram86@gmail.com <ma...@gmail.com>> wrote:
>
> Hmmm.. i am not sure about the second error. But the first one
> related to apr rings some bell. Did you try using --with-apr
> option to explicitly mention path to apr libraries if you have
> them separately built?
>
> Prasanna Ram
>
>
> On Fri, Apr 10, 2009 at 10:25 PM, Nishaliny Thurairatnam
> <ni...@foodreg.my> wrote:
>
> Hi,
>
> I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This
> installation is to exists as a second apache instance on the
> server. I've 2 problems so far:
>
> *First*
>
> My initial configure options were like so:
>
> ./configure --prefix=/etc/httpd2 --enable-modules=all
> --enable-mods-shared="all cache proxy authn_alias mem_cache
> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
> --with-apxs --with-port=80 --with-program-name=httpd2
>
> I have in fact successfully done an installation on another
> CentOS server(similar to the above) with these parameters
> recently. However, on this server, I get the following
> configure error (complete logs in config.log.1, as attached):
> /
> checking whether to enable mod_auth_digest... checking
> dependencies
> You need APR random support to use mod_auth_digest.
> Look at APR configure options --with-egd and --with-devrandom.
> checking whether to enable mod_auth_digest... configure:
> error: mod_auth_digest has been requested but can not be built
> due to prerequisite failures/
>
> I tried to re-configure using first /"--with-egd/", which
> failed, and then tried /"--with-devrandom=/dev/urandom",
> /which also failed miserably.
> Then, from the logs, it seemed that configure was looking for
> apr in a directory that did not exist(at least from my
> understanding). In the specified location, I had a directory
> called "apr-1", so I created a softlink called "apr" pointing
> to "apr-1". That did not make any difference.
>
> After many unsuccessful trials, I decided to switch and try
> "/--enable-mods-shared=most"/. That's where the second error
> came in.
>
> *Second*
>
> My second configure options were like so:
>
> ./configure --prefix=/etc/httpd2 --enable-modules=all
> --enable-mods-shared="most cache proxy authn_alias mem_cache
> file_cache rewrite" --enable-suexec --enable-ssl --with-mysql
> --with-apxs --with-port=80 --with-program-name=httpd2
>
> This gave a more interesting error, which was (config.log.2,
> as attached):
> /
> checking whether to enable mod_userdir... shared (most)
> checking whether to enable mod_alias... shared (most)
> checking whether to enable mod_rewrite... shared
> configure: error: shared objects have been requested but
> cannot be built since mod_so cannot be built
>
> /I have Googled the skies and could not find any workable
> solution, and the weird thing is that most of the other people
> who have previously encountered this problem, work on BSD's or
> AIX's or similar. Plus, they all date way back to year 2002-2003.
>
> It's got to be something that I'm doing wrong, or just
> missing, BUT I JUST CAN'T SEE IT!!!
>
> Please, someone, anyone, any thoughts/ideas that might save me?
>
> Thanks a million in advance!
>
> Regards,
> Nisha
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> " from the digest:
> users-digest-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
> <ma...@httpd.apache.org>
>
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Strange compile error for Apache 2.2.11
Posted by Prasanna Ram Venkatachalam <vp...@gmail.com>.
Also... Why do u need --enable-modules=all and --enable-mods-shared=most??
One will statically compile all into httpd and other will create .so files
for most. Based on your requirement i think u can remove one of them. I
personally suggest removing first. Just a thought!
Regardss
Prasanna Ram
On Sat, Apr 11, 2009 at 10:09 AM, Prasanna Ram Venkatachalam <
vpram86@gmail.com> wrote:
> Hmmm.. i am not sure about the second error. But the first one related to
> apr rings some bell. Did you try using --with-apr option to explicitly
> mention path to apr libraries if you have them separately built?
>
> Prasanna Ram
>
>
> On Fri, Apr 10, 2009 at 10:25 PM, Nishaliny Thurairatnam
> <ni...@foodreg.my> wrote:
>
>> Hi,
>>
>> I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This installation
>> is to exists as a second apache instance on the server. I've 2 problems so
>> far:
>>
>> *First*
>>
>> My initial configure options were like so:
>>
>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>> --enable-mods-shared="all cache proxy authn_alias mem_cache file_cache
>> rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
>> --with-port=80 --with-program-name=httpd2
>>
>> I have in fact successfully done an installation on another CentOS
>> server(similar to the above) with these parameters recently. However, on
>> this server, I get the following configure error (complete logs in
>> config.log.1, as attached):
>> /
>> checking whether to enable mod_auth_digest... checking dependencies
>> You need APR random support to use mod_auth_digest.
>> Look at APR configure options --with-egd and --with-devrandom.
>> checking whether to enable mod_auth_digest... configure: error:
>> mod_auth_digest has been requested but can not be built due to prerequisite
>> failures/
>>
>> I tried to re-configure using first /"--with-egd/", which failed, and then
>> tried /"--with-devrandom=/dev/urandom", /which also failed miserably.
>> Then, from the logs, it seemed that configure was looking for apr in a
>> directory that did not exist(at least from my understanding). In the
>> specified location, I had a directory called "apr-1", so I created a
>> softlink called "apr" pointing to "apr-1". That did not make any difference.
>>
>> After many unsuccessful trials, I decided to switch and try
>> "/--enable-mods-shared=most"/. That's where the second error came in.
>>
>> *Second*
>>
>> My second configure options were like so:
>>
>> ./configure --prefix=/etc/httpd2 --enable-modules=all
>> --enable-mods-shared="most cache proxy authn_alias mem_cache file_cache
>> rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
>> --with-port=80 --with-program-name=httpd2
>>
>> This gave a more interesting error, which was (config.log.2, as attached):
>> /
>> checking whether to enable mod_userdir... shared (most)
>> checking whether to enable mod_alias... shared (most)
>> checking whether to enable mod_rewrite... shared
>> configure: error: shared objects have been requested but cannot be built
>> since mod_so cannot be built
>>
>> /I have Googled the skies and could not find any workable solution, and
>> the weird thing is that most of the other people who have previously
>> encountered this problem, work on BSD's or AIX's or similar. Plus, they all
>> date way back to year 2002-2003.
>>
>> It's got to be something that I'm doing wrong, or just missing, BUT I JUST
>> CAN'T SEE IT!!!
>>
>> Please, someone, anyone, any thoughts/ideas that might save me?
>>
>> Thanks a million in advance!
>>
>> Regards,
>> Nisha
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
>
Re: [users@httpd] Strange compile error for Apache 2.2.11
Posted by Prasanna Ram Venkatachalam <vp...@gmail.com>.
Hmmm.. i am not sure about the second error. But the first one related to
apr rings some bell. Did you try using --with-apr option to explicitly
mention path to apr libraries if you have them separately built?
Prasanna Ram
On Fri, Apr 10, 2009 at 10:25 PM, Nishaliny Thurairatnam
<ni...@foodreg.my>wrote:
> Hi,
>
> I'm trying to install httpd2.2.11 on a CentOS 5 x86_64. This installation
> is to exists as a second apache instance on the server. I've 2 problems so
> far:
>
> *First*
>
> My initial configure options were like so:
>
> ./configure --prefix=/etc/httpd2 --enable-modules=all
> --enable-mods-shared="all cache proxy authn_alias mem_cache file_cache
> rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
> --with-port=80 --with-program-name=httpd2
>
> I have in fact successfully done an installation on another CentOS
> server(similar to the above) with these parameters recently. However, on
> this server, I get the following configure error (complete logs in
> config.log.1, as attached):
> /
> checking whether to enable mod_auth_digest... checking dependencies
> You need APR random support to use mod_auth_digest.
> Look at APR configure options --with-egd and --with-devrandom.
> checking whether to enable mod_auth_digest... configure: error:
> mod_auth_digest has been requested but can not be built due to prerequisite
> failures/
>
> I tried to re-configure using first /"--with-egd/", which failed, and then
> tried /"--with-devrandom=/dev/urandom", /which also failed miserably.
> Then, from the logs, it seemed that configure was looking for apr in a
> directory that did not exist(at least from my understanding). In the
> specified location, I had a directory called "apr-1", so I created a
> softlink called "apr" pointing to "apr-1". That did not make any difference.
>
> After many unsuccessful trials, I decided to switch and try
> "/--enable-mods-shared=most"/. That's where the second error came in.
>
> *Second*
>
> My second configure options were like so:
>
> ./configure --prefix=/etc/httpd2 --enable-modules=all
> --enable-mods-shared="most cache proxy authn_alias mem_cache file_cache
> rewrite" --enable-suexec --enable-ssl --with-mysql --with-apxs
> --with-port=80 --with-program-name=httpd2
>
> This gave a more interesting error, which was (config.log.2, as attached):
> /
> checking whether to enable mod_userdir... shared (most)
> checking whether to enable mod_alias... shared (most)
> checking whether to enable mod_rewrite... shared
> configure: error: shared objects have been requested but cannot be built
> since mod_so cannot be built
>
> /I have Googled the skies and could not find any workable solution, and the
> weird thing is that most of the other people who have previously encountered
> this problem, work on BSD's or AIX's or similar. Plus, they all date way
> back to year 2002-2003.
>
> It's got to be something that I'm doing wrong, or just missing, BUT I JUST
> CAN'T SEE IT!!!
>
> Please, someone, anyone, any thoughts/ideas that might save me?
>
> Thanks a million in advance!
>
> Regards,
> Nisha
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>