gcc on solaris 7

Posted on 1999-11-17
Medium Priority
Last Modified: 2013-12-27
i try this on my sun server with solaris 7 as root

[/usr/local/gcc-2.8.1] ./configure --build=sparc-sun3-sunos
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun3-sunos
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables.

now, i copied cc from /usr/ucb/ into /usr/bin/ as this is where
it looks for cc....before, when cc was not in /usr/bin/ it would find it but now it does find it.....

but the problem is
"checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler cannot creat
e executables."

here is my PATH

how do i fully install gcc???
Question by:paulwhelan

Expert Comment

ID: 2214001
check that cc really is the c compiler

If the c compiler is not installed, they put a script in its place,
run cc yourself and see what you get.

if its

/usr/ucb/cc:  language optional software package not installed

you have no c compiler.

Accepted Solution

n0thing earned 200 total points
ID: 2218352
A C compiter doesn't come by default on Solaris.
You could download the current gcc compiler and
other GNU goodies at http://www.sunfreeware.com

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Question has a verified solution.

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

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…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

607 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