• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

apache linux binaries install problem

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic