Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

apache linux binaries install problem

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to install the apache server using binaries on Red Hat linux 9 using httpd-2.0.50-i686-pc-linux-gnu.tar . After i install i tried to start the server and it came out

#apachectl start
/usr/local/apache2/bin/httpd: error while loading shared libraries: libdb-4.1.so
: cannot open shared object file: No such file or directory

What should I do?
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, is libdb-4.1.so in your APACHE/modules or APACHE/libexec directory?
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no libdb-4.1.so in APACHE/modules. If this file is needed then why isnt't it installed in installation. Where can I find this file?
There is no APACHE/libexec directory.
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you either have one dir or the other depending on your apache.

find the line in your httpd.conf that references that file and try commenting it out. i don't know if it should be in that .rpm or what else it was apart of. but you have two options. find and download the file, possibly in another rpm, or remove the reference to it in your config.
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched the httpd.conf and there is no reference to libdb-4.1.so. Do you think I should installed another type of linux binaries? I figure that the binaries i am using maybe is not compatible with redhat linux 9.
I also search the web for this file libdb-4.1.so and I didnt get any result from it.
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From gnome-libs rpm of the red hat installation cd i extracted files that includes libdb.so.2 and libdb1.so.2 . Will either of this two files compatible with libdb-4.1.so required by apache? I can't seem to find this libdb-4.1.so file anywhere else.
Thanks
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok change directory to root /
then use
find -name libdb-4.1.so

what your looking for is aparently a SO for berkeley db
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I execute command find -name libdb-4.1.so
and nothing come out. This means libdb-4.1.so is not found right
 
Craig Jackson
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if I understand this correctly. But I believe you have the wrong tar file. You have a tar file for the GNU operating system. Although the GNU operating system uses the same linux kernel as a lot of linux distro, but the GNU operation system maybe setup different than the RH9 operating system. So what I would recomment is use one of the binaries i.e. httpd-2.0.49.tar.gz located in the directory below:



Index of /dist/httpd

Also one more thing. Rh9 comes with apache web server already available for installation. When you installed RH9, you could have installed it then. In the future since you are using RH9 as your operating system. Always try to use the RPM, when installing new software. It makes life so much easier.

I hope this is helpful.
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for pointing the difference of GNU and RH9 tar downloads. Anyway I tried searching for apache inside the linux installation cd but cannot find any files for apache.
 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find that tar from http://archive.apache.org/dist/httpd/ needed to be compiled first.
The linux binaries in http://archive.apache.org/dist/httpd/binaries/linux/ the only suitable one I can find is httpd-2.0.50-i686-pc-linux-gnu.tar.gz
which i am facing error as described previously.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic