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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure: Error: mod_auth_digest (while insalling Apache2) 1

Status
Not open for further replies.

rishath

Programmer
Jan 20, 2004
59
US
I have Solaris 8 and I am trying to install Apache 2. I downloaded the source from and while configuring the file, I got the following error with APR and mod_auth_digest
Code:
# ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-speling=shared --enable-ssl=shared --with-ssl=/usr/local/ssl

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
Configuring APR library
Platform: sparc-sun-solaris2.8
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying APR hints file rules for sparc-sun-solaris2.8
  setting CPPFLAGS to "-DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
(Default will be unix)
checking whether make sets $(MAKE)... no
checking how to run the C preprocessor... gcc -E
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
-------
-------
-------
checking whether to enable mod_access... shared (all)
checking whether to enable mod_auth... shared (all)
checking whether to enable mod_auth_anon... shared (all)
checking whether to enable mod_auth_dbm... shared (all)
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
Prior to installing Apache 2, I installed all the required stuff, like expat, libiconv, gdbm, openssl and gcc.
How can I recitify this? Any help would be greatly appreciated!
 
What happens if you use a standard release from
?

Can you build a more basic version like this:

Code:
./configure --prefix=/usr/local/apache2

then add on a line at a time until you find which entry is choking? I think its '--enable-mods-shared=all ' thats killing the build.
 
So, do you want me to first run
Code:
# ./configure --prefix=/usr/local/apache2
then,
Code:
# ./configure --enable-mods-shared=all
and then,
Code:
#./configure --enable-speling=shared
and so on... until I come to the problem area?


Also, one of the error message says
Code:
 You need APR random support to use mod_auth_digest. 
Look at APR configure options --with-egd and --with-devrandom.
What does it mean?
 
I was thinking more along the lines of configuring over and over again, each time adding a new option

So

Code:
./configure --prefix=/usr/local/apache2
then
Code:
./configure --prefix=/usr/local/apache2  --enable-mods-shared=all
etc etc

In terms of what is wrong, I am not sure if solaris has /dev/random and the standard apache package configure should check for that.

Here are some relevant google links, you could also just disable mod_auth_digest if you don't need it.


 
I tried the configure options, one at a time and the APR-mod_auth_digest error occured when I used
Code:
 # ./configure --enable-mods-shared=all
like you mentioned.

To overcome this I tried installing egd-0.8, which can generate seeds, as I do not have /dev/random in my system. But, I don't know how to use egd-0.8 to make my build successful. One of the articles on the net stated that I need to use --with-egd-pool=/etc/entropy configure option and also the egd daemon must be running in the background. While, I tried to run the egd daemon as
Code:
# perl egd.pl /etc/entropy

I got the error as
Code:
 SHA.pm not found in @INC(@INC include /usr/perl5 /usr/bin /usr/local/bin ...

I am not sure what to do next. Please help!
 
You need to install SHA.pm from CPAN to run that.

You can download it from


Installation is easy, uncompress it, enter the directory and type

perl Makefile.PL
make
make test
make install
 
I installed a patch(Patch-Id# 112438-03) from as a subsititute for the /dev/random. After the patch installation, I rebooted my system and voila! now I'm able to install Apache 2 without any need to install EGD or PRNGD.

Thank you siberian for your previous tips!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top