LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2004, 01:43 PM   #1
psidragon
LQ Newbie
 
Registered: Mar 2004
Location: Calgary, Alberta, Canada
Distribution: Red hat, Freebsd, Solaris, etc.
Posts: 4

Rep: Reputation: 0
Question Updating Apache 2.0


I'm attempting to update an apache build on my server to 2.0.49. They've been done before a by a friend of mine, however it wasn't done right because I discovered when I do an ldd on httpd the libraries are still pointing at the libraries from the original install of Red Hat 9. here's the output of the ldd:

[xxxxx@xxxxxx bin]$ ldd httpd
libz.so.1 => /usr/lib/libz.so.1 (0x40034000)
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40042000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x40071000)
libaprutil-0.so.0 => /usr/local/apache/2.0.48/lib/libaprutil-0.so.0 (0x40139000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4014f000)
libdb-4.0.so => /lib/libdb-4.0.so (0x40157000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x401ff000)
libapr-0.so.0 => /usr/local/apache/2.0.48/lib/libapr-0.so.0 (0x4021f000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40240000)
librt.so.1 => /lib/librt.so.1 (0x4024d000)
libm.so.6 => /lib/tls/libm.so.6 (0x4025f000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40281000)
libnsl.so.1 => /lib/libnsl.so.1 (0x402af000)
libdl.so.2 => /lib/libdl.so.2 (0x402c4000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

My question is, how do I get it pointing at the right library files for this upgrade. I have already upgraded openssl on the system.
 
Old 03-22-2004, 11:07 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
If your installing from source you first have to remove the rpm version.
or
update with a rpm version. Try on http://rpm.pbone.net
 
Old 03-23-2004, 11:41 AM   #3
psidragon
LQ Newbie
 
Registered: Mar 2004
Location: Calgary, Alberta, Canada
Distribution: Red hat, Freebsd, Solaris, etc.
Posts: 4

Original Poster
Rep: Reputation: 0
actually, I didn't need to remove the rpm version. I discovered late last night that you can avoid that by changing the LD files before you configure the apache install, you can avoid a few problems. This is what I did:

export LD_RUN_PATH="/usr/local/openssl/current/lib:/usr/local/apache/<ver>/lib"
export LDFLAGS="-L/usr/local/openssl/current/lib -R/usr/local/openssl/current/lib"
export LD_LIBRARY_PATH="/usr/local/openssl/current/lib:/usr/local/apache/<ver>/lib"

Then I ran my configure:
./configure --prefix=/usr/local/apache/<ver> --enable-so --enable-mods-shared=<whatever mods you need> --with-ssl=/usr/local/openssl/current --with-mpm=worker

and what do you know, it used the right libraries.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Apache rbl Linux - Newbie 1 09-12-2005 12:03 PM
Updating Apache 1.3 on Solaris cackley Solaris / OpenSolaris 2 12-26-2004 09:04 AM
Updating PHP on apache Daredevil Programming 3 05-25-2004 09:40 AM
updating apache! eros Linux - Software 0 01-05-2004 02:11 AM
Apache Web site updating? munzza Linux - Newbie 1 05-17-2002 03:51 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration