DeveloperSide.NET Forums

DeveloperSide.NET => Building a Web Server, for Linux => Topic started by: robin on November 22, 2003, 09:31:34 PM



Title: not able to compile apache...
Post by: robin on November 22, 2003, 09:31:34 PM
hello everybody,

going into the forth hour and getting now where.. followed the instrctoins from this site but its just not working for me...HELP.......

[root@voyager httpd-2.0.48]# ./configure --prefix=/wwwroot/apache2 --enable-mods-shared=most --enable-deflate --enable-ssl --with-z=/usr/lib --with-ssl=/usr/local/ssl

near the end of make it displays a error messgae. i haven't tried make install since its not clean compile...
.0.48/srclib/apr/include    export_vars.h | sed -e 's/^\#[^!]*//' | sed -e '/^$/d' >> aprutil.exp
make[3]: Leaving directory `/downloads/httpd-2.0.48/srclib/apr-util'
make[2]: Leaving directory `/downloads/httpd-2.0.48/srclib/apr-util'
Making all in pcre
make[2]: Entering directory `/downloads/httpd-2.0.48/srclib/pcre'
Makefile:7: /build/ltlib.mk: No such file or directory
make[2]: *** No rule to make target `/build/ltlib.mk'.  Stop.
make[2]: Leaving directory `/downloads/httpd-2.0.48/srclib/pcre'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/downloads/httpd-2.0.48/srclib'
make: *** [all-recursive] Error 1

any help u can give me would be greatly appreciated...
mandrake 9.2..
downloaded and followed instruction from this site...


Title: not able to compile apache...
Post by: admin on November 22, 2003, 09:48:59 PM
That looks like you did not complete the openssl build.

Did you "update the run time linker"?

When you go to "/" and type 'openssl version' what do you get?


Title: not able to compile apache...
Post by: robin on November 22, 2003, 09:57:57 PM
first Thank you for getting back to me...

[root@voyager /]# openssl version
OpenSSL 0.9.7b 10 Apr 2003
[root@voyager /]#
[root@voyager /]#

-----------------------------------------------------
whats in /etc/ld.so.con
/usr/X11R6/lib
/usr/lib/qt3/lib
/usr/local/ssl/lib
-------------------------------------------------------------



if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

mesg n



PATH=/usr/local/ssl/bin:$PATH     <---this line is an example from your from

---------
according to the inst. on this site.. i went over the "update the path"(ssl). but the version still showing up as the old one..


Title: not able to compile apache...
Post by: admin on November 22, 2003, 10:20:31 PM
Did you run 'ldconfig' ?


Title: not able to compile apache...
Post by: robin on November 22, 2003, 11:16:11 PM
hello again..
still not getting the correct version of openssl

i went through both instruction for zlib and openssl.
ran configure
make clean
make
make install
changed the paths
ran ldconfig..

stll getting the follwing
[root@voyager bin]# cd /usr/local/ssl/bin
[root@voyager bin]# ./openssl version
OpenSSL 0.9.7b 10 Apr 2003
[root@voyager bin]#

when i configured openssh this is waht i typed in
./config --prefix=/usr/local/ssl shared zlib-dynamic


Title: not able to compile apache...
Post by: admin on November 22, 2003, 11:54:07 PM
This is very likely the result of /usr/local/ssl/bin/openssl linking to the wrong libraries.

And, something to do with your particular distro (Mandrake 9.2).

Since 'ldconfig' is not linking the right libs to openssl, the only choice left is to do it manually.

Add libcrypto.so.0.9.7 and libssl.so.0.9.7 to /lib, see if that give you the right version.


Title: not able to compile apache...
Post by: Anonymous on November 23, 2003, 03:03:00 AM
Hey Admin,

Thanks for your help, it worked; copying the 2 files seem to have fixed the problem:

For future readers:
Moved the 2 old files (libssl.so.0.9.7 and libcrypto.so.0.9.os) from /usr/lib to a folder that has no affect on anything. Then copied the same 2 files from /usr/local/ssl/bin (new install)  to /usr/lib.
This is based on the installation instructions found on this site.
os-- mandrake9.2


Title: same problem
Post by: Diane on October 11, 2005, 04:54:27 PM
Quote from: "robin"
first Thank you for getting back to me...

[root@voyager /]# openssl version
OpenSSL 0.9.7b 10 Apr 2003
[root@voyager /]#
[root@voyager /]#

-----------------------------------------------------
whats in /etc/ld.so.con
/usr/X11R6/lib
/usr/lib/qt3/lib
/usr/local/ssl/lib
-------------------------------------------------------------



if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

mesg n



PATH=/usr/local/ssl/bin:$PATH     <---this line is an example from your from

---------
according to the inst. on this site.. i went over the "update the path"(ssl). but the version still showing up as the old one..



we are also newbies. and running into the same problems....the mirror given on your tutorial shows 0.9.8 and the version that was downloaded was 0.9.7e......we are unsure which files to access to add the requested information.....could you please tell us what to type at the command line to get into the files to edit them?  Also on the build instructions do we use all the commands.