top on sun server

Posted on 2000-01-07
Medium Priority
Last Modified: 2013-12-16
im setting up a sun server from scratch
i need to get "top" but am having problems
i selected cc as my c compiler and
after all the questions that i am asked
after running Configure I get

We are done with the questions.
Saving configuration...
Building Makefile...
Building top.local.h...
Building top.1...
Doing a "make clean".
rm -f *.o top core core.* sigdesc.h
To create the executable, type "make".
To install the executable, type "make install".
# make
cc -DHAVE_GETOPT -DORDER    -c top.c -o top.o
/usr/ucb/cc:  language optional software package not installed
make: *** [top.o] Error 1

can anyone help me to get top working?
Question by:boofulls
  • 2

Accepted Solution

argo earned 400 total points
ID: 2332549
The C compiler is not installed - it is an optional extra, there is a script called cc  in /usr/ucb which just prints the message you got.

Your options are:

Get Gcc and use it to compile top.


Get a binary distribution of top and install it.

You can find compiled packages for top and gcc and many other freeware packages at http://www.sunfreeware.com/

You will need to download the gzip package first, as the others are compressed.

You can install the packages with pkgadd -d <filename>, (once they are decompressed) gzip is not compressed for obvious reasons.

Expert Comment

ID: 2332733
i went to sunfreeware.com
went to sparc/solaris 7 and tried to
get the top-3.5beta9-sol7-sparce-local.gz
i tried to gunzip it and it said that its
not in gunzip format

Expert Comment

ID: 2332750
Check the file with the file command - if it says its english text, try pkgadd -d top-3.5beta9-sol7-sparc-local.gz - this has caugght me out before - I think the web server may unpack the file as it sends it, and the receiving end still saves it with the compressed filename.

If the file command says it is a compressed file, download the gzip package from sunfreeware, install with pkgadd -d gzippackagename, and then try gzip -d top-3.5beta9-sol7-sparc-local.gz

Author Comment

ID: 2332780
thanks guys
argo gets the points

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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.
Suggested Courses

599 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