Click to See Complete Forum and Search --> : compile error solaris 8


worldtouch
05-27-2002, 03:54 AM
# /usr/ccs/bin/make -f Makefile.solaris
cc -O -lnsl -lsocket -o newspost uuencode.c newspost.c uu.c nntp.c socket.c util
s.c cksfv/crc32.c cksfv/newsfv.c cksfv/print.c
sh: cc: not found
*** Error code 1
make: Fatal error: Command failed for target `newspost'

why sh : cc not found.
#

epseps
06-04-2002, 05:45 AM
Originally posted by worldtouch:
<STRONG># /usr/ccs/bin/make -f Makefile.solaris
cc -O -lnsl -lsocket -o newspost uuencode.c newspost.c uu.c nntp.c socket.c util
s.c cksfv/crc32.c cksfv/newsfv.c cksfv/print.c
sh: cc: not found
*** Error code 1
make: Fatal error: Command failed for target `newspost'

why sh : cc not found.
#</STRONG>

try /opt/fsw/bin/gmake -f Makefile.solaris

linuxasaurus
06-10-2002, 11:33 PM
What version of Solaris are you using?
Solaris 8 does not come with a compiler.
if you are using 8 and have not install a compiler you should probably get gcc because it is free.

Slackmonster
06-18-2002, 03:55 AM
This sounds like a path problem.

- In normal user account I do a "which gcc" or "which cc" (which ever I am looking for)
- If found I then echo $PATH
- su to root
- PATH=&lt;copy/paste output from echo above&gt;
- export PATH
- verify success by trying the "which" command again.

If which now finds cc or gcc then you can truck on. If not, post back with your new output. Good luck.

[ 18 June 2002: Message edited by: Slackmonster ]

Slackmonster
06-18-2002, 03:57 AM
Originally posted by linuxasaurus:
<STRONG>What version of Solaris are you using?
Solaris 8 does not come with a compiler.
if you are using 8 and have not install a compiler you should probably get gcc because it is free.</STRONG>

Incidentally, this is not true. You have to install the correct software set that it is included in. However, I agree that you should install gcc and use it instead.