Problems with runing /usr/ccs/bin/make : gcc: not found

I'm trying to make printer drivers, but get the folowing error:

# /usr/ccs/bin/make

gcc -Wall -pedantic -O2 -c pnm2ppa.c

couldn't set locale correctly

sh: gcc: not found

*** Error code 1

make: Fatal error: Command failed for target `pnm2ppa.o'

I installed gcc from companion cd, I checked with *.c file and it works.

I tryed to copy: make and gcc to the directory where are located files to make and gcc to

/usr/ccs/bin/make directory. It does not help. Originaly gcc is located in /opt/sfw/bin.

How to set gcc, that make will work with it?

Thank you.

[627 byte] By [TheNetWalker] at [2007-11-26 11:00:42]
# 1
No, don't move 'gcc'. Instead set your PATH so that the directory with gcc is listed in it.As an example, you might need:PATH=$PATH:/opt/sfw/bin:/usr/ccs/bin-- Darren
Darren_Dunham at 2007-7-7 3:14:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
Thank you very much.
TheNetWalker at 2007-7-7 3:14:22 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...