Apache won't work and libraries delete themselves?

Hi,

After a problem with my ipfw I tried to start Apache with: service apache22 start. It tells me:

Code:
Performing sanity check on apache22 configuration:
Shared object "libdb-4.2.so.2" not found, required by "httpd"
Starting apache22.
Shared object "libdb-4.2.so.2" not found, required by "httpd"
/usr/local/etc/rc.d/apache22: WARNING: failed to start apache22

If I try to do this:

Code:
root@gs2:/root # portmaster -r gdbm
portmaster: Command not found.

it won't work.

tar also doesn't work:

Code:
root@gs2:/root # tar
tar: Command not found.

Can someone help me, please? I don't know here the problem is.

Hope you'll give me helpful information.

Kind regards,
Julian.
 
Too little information to say much. What version of FreeBSD? Did you upgrade ports just before this happened? For a start, reboot in single user mode and do fsck -tufs -y.
 
Check your PATH, it may not include /usr/local/bin and /usr/local/sbin.

As for Apache, /usr/local/lib/libdb-4.2.so is installed by databases/db42.
 
Back
Top