Solved

Sendmail executable overwritten

Posted on 1998-12-16
3
259 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
ID: 1812494
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
ID: 1812495
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
ID: 1812496
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AIX 5.3 group password policy changes 7 29
sudo logging 5 93
Doing a DR (Disaster Recovery) Test on Red Hat Linux Servers. 2 114
How to Insert a File Using Text Editor 9 88
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 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