LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-24-2007, 10:19 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
CC error Solaris 10


I have gcc installed, I have cmake installed, I have Sun_Studio 11 installed for developers, I have modified the paths and etc. but I cannot understand why I cannot install certain tar application? Here is the error messages:

Check out my other post:

http://www.linuxquestions.org/questi...rouble-607838/

PHP Code:
make
cc 
-c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff   -DVERSION=\"3.56\" -DXS_VERSION=\"3.56\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE"  -DMARKED_SECTION Parser.c
/bin/sh: cc: not found
make: *** [Parser.o] Error 1 
What can one do to overcome this ?

Last edited by metallica1973; 12-24-2007 at 10:20 AM.
 
Old 12-24-2007, 11:08 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
"cc not found" means the PATH is wrong.
 
Old 12-24-2007, 11:25 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
here is my env::

PHP Code:
# env|more
SHELL=/bin/sh
TERM
=xterm
SSH_CLIENT
=
SSH_TTY=/dev/pts/2
USER
=me
PATH
=/usr/local/bin:/usr/sbin:/usr/bin
MAIL
=/var/mail//me
LD=gcc
PWD
=/tmp/Compress-Raw-Zlib-2.008
TZ
=US/Eastern
PS1
=#
SHLVL=5
HOME
=/home/me
LOGNAME
=me
SSH_CONNECTION
=
CC=gcc
_
=/usr/bin/env
OLDPWD
=/tmp 
here is the location of the gcc files:

PHP Code:
# pkgchk -l SMCgcc|grep Pathname|more
Pathname: /usr/local/bin
Pathname
: /usr/local/bin/c++
Pathname: /usr/local/bin/cpp
Pathname
: /usr/local/bin/g++
Pathname: /usr/local/bin/g77
Pathname
: /usr/local/bin/gcc
Pathname
: /usr/local/bin/gccbug
Pathname
: /usr/local/bin/gcov
Pathname
: /usr/local/bin/sparc-sun-solaris2.10-c++
Pathname: /usr/local/bin/sparc-sun-solaris2.10-g++
Pathname: /usr/local/bin/sparc-sun-solaris2.10-gcc
Pathname
: /usr/local/bin/sparc-sun-solaris2.10-gcc-3.4.6
Pathname
: /usr/local/doc
Pathname
: /usr/local/doc/gcc
Pathname
: /usr/local/doc/gcc/ABOUT-NLS
Pathname
: /usr/local/doc/gcc/BUGS
Pathname
: /usr/local/doc/gcc/COPYING
Pathname
: /usr/local/doc/gcc/COPYING.LIB
Pathname
: /usr/local/doc/gcc/ChangeLog
Pathname
: /usr/local/doc/gcc/FAQ
Pathname
: /usr/local/doc/gcc/INSTALL
Pathname
: /usr/local/doc/gcc/INSTALL/README
Pathname
: /usr/local/doc/gcc/INSTALL/binaries.html 
They seem to correspond. Apparently Solaris 10 does not come with Sun Forte C instead they give you a free GCC and that will not suffice if packages were built using Sun Forte C compiler. So what now purchase a copy of that . Solaris is piece of #@$%@#$%@#$%. Does anyone know if opensolaris packages will run on Solaris 10.

Last edited by metallica1973; 12-24-2007 at 11:57 AM.
 
Old 12-24-2007, 07:48 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by metallica1973 View Post
They seem to correspond.
I'm afraid you are demonstrating there is no cc in your PATH.
Quote:
Apparently Solaris 10 does not come with Sun Forte C instead they give you a free GCC and that will not suffice if packages were built using Sun Forte C compiler. So what now purchase a copy of that .
Purchase what ? Sun Studio 12, the current name of what used to be called Forte, is downloadable for free and works with Solaris 9 upward.
 
Old 01-10-2008, 10:30 AM   #5
G4george
Member
 
Registered: Nov 2005
Location: Houston, Tx
Posts: 34

Rep: Reputation: 15
Try modifying your make file to include CC=/usr/local/bin/gcc.
Since the make opens a new shell sometimes not all of the env is imported.
 
Old 01-28-2008, 05:25 PM   #6
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
I have a sun compiler, it comes with sun studio (I have 10)
I don't use gcc.

/opt/SUNWspro/bin/cc


you can do this:

export CC=/opt/SUNWspro/bin/cc

I have linked the sun compiler in /usr/bin as I use it a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solaris 10 11/06 error shams Solaris / OpenSolaris 8 11-21-2007 10:51 AM
tftp in solaris error max- Solaris / OpenSolaris 2 09-14-2007 12:40 PM
Solaris install error 13 Sir Loin Solaris / OpenSolaris 3 02-15-2007 02:26 PM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM
Error after Solaris * upgrade sknoxy Solaris / OpenSolaris 2 07-21-2004 01:24 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration