File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes apache linux binaries install problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache linux binaries install problem" Watch "apache linux binaries install problem" New topic
Author

apache linux binaries install problem

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
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

Joined: Oct 04, 2003
Posts: 541
well, is libdb-4.1.so in your APACHE/modules or APACHE/libexec directory?


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
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

Joined: Oct 04, 2003
Posts: 541
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

Joined: Nov 20, 2003
Posts: 204
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

Joined: Nov 20, 2003
Posts: 204
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

Joined: Oct 04, 2003
Posts: 541
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

Joined: Nov 20, 2003
Posts: 204
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

Joined: Mar 19, 2002
Posts: 405
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

Joined: Nov 20, 2003
Posts: 204
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

Joined: Nov 20, 2003
Posts: 204
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: apache linux binaries install problem
 
Similar Threads
configuring context path
Tomcat clustering with F5 device
[Apache] port configuration
Apache start problem
Installing Websphere