Solved

Sendmail executable overwritten

Posted on 1998-12-16
3
257 Views
Last Modified: 2013-12-16
Thanks to dhoffman, my sendmail was compiled fine. It was working perfectly until someone mistakenly overwrote the majority of my /usr directory with the contents from another unix platform. gcc and make was preserved but sendmail was gone. My sendmail directory was safe in my home directory, so I tried to re-compile but was unsuccessful and received the following message: Configuration: os=SunOS, rel=5.5.1, rbase=5, rroot=5.5, arch=sun4, sfx=
Making in obj.SunOS.5.5.1.sun4
/usr/local/bin/gcc -I. -O -I/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/
include -DNDBM -DNIS -DNISPLUS -DSOLARIS=20500   -c alias.c -o alias.o
gcc: installation problem, cannot exec `as': No such file or directory
make: *** [alias.o] Error 1

PLEASE HELP.  ANY help would be greatly appreciated.
Thanks in advance
0
Comment
Question by:qcoles
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
make does not have a path to  as
Check your PATH environmeent variable if there is as in any of the listed dirs.
Probably it's a misconfigured gcc, check with -v option which as it tries to start.
0
 
LVL 2

Expert Comment

by:blowfish
Comment Utility
At the risk of sounding obtuse; have you tried restoring /usr from a backup taken prior to the error?  

If the majority of /usr has been trashed, you should not consider anything other than a restore.  


--frankf
0
 
LVL 4

Accepted Solution

by:
davidmwilliams earned 100 total points
Comment Utility
Make sure as is in your PATH, and be sure you have installed GNU's binutils.  However, it's likely you haven't got the Sun /usr/ccs directory installed, with various important development tools.  You should install these from the Solaris CD or via pkgadd.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now