analog-help  

Re: [analog-help] compiling for UNIX Solaris

Wallace Nicoll
Thu, 21 Oct 1999 01:43:19 -0700

In reply to Catherine Montalvo:

I always have this problem when compiling, since we reinstalled gcc into its
own directory which is not set up in the root user's PATH variable. At the
system prompt, type (where host# is the system prompt)

host# which gcc

(or whatever your compiler you have). Chances are it doesn't show up. You need
to add it's directory by issuing (depending on your shell)

host# PATH=$PATH:/opt/gcc/bin
host# export PATH

Then try

host# which gcc

again. This should find it and maybe the make script would work. I also find,
if I'm running a make, that I need to add /usr/ccs/bin to the PATH variable as
well, since there often needs to be access to commands like ar. You may want to
set this up permanently in your .profile file.

> No,  CCS is infact installed on the machine. Any other suggestions?
>
> Catherine
>
> Jason Linhart wrote:
>
> > On 10/20/99 5:49 PM Catherine Montalvo ([EMAIL PROTECTED]) wrote:
> >
> > >When trying to compile Analog for Unix (Solaris), I receive the
> > >following error:
> > >________________________________________________________
> > >make -f Makefile
> > >gcc -O2  -DUNIX -c alias.c
> > >sh: gcc: not found
> > >*** Error code 1
> > >make: Fatal error: Command failed for target `alias.o'
> > >________________________________________________________
> > >
> > >I have tried editing the CC= line in the Makefile to both 'acc' and 'cc'
> > >but I still receive the same error. Additionally I have edited the DEFS=
> > >line to read 'DEFS=-DNODNS ' and still no luck.
> > >
> > >Any suggestions would be greatly appreciated,
> >
> > It would appear that you do not have a compiler on your machine. Not all
> > Sun systems ship with a compiler. The DEFS= thing doesn't matter until
> > you have a compiler. You might try 'whereis gcc' and 'whereis cc' to
> > check if either of them are hidden somewhere unusual on your machine, but
> > I suspect neither one is installed.
>



--
======================================================================
 Wallace Nicoll                          [EMAIL PROTECTED]
 City of Edinburgh Council IT Services,
 Chesser House, 500 Gorgie Road,                Phone : 0131 469 5343
 Edinburgh, EH11 3YJ, Scotland                    Fax : 0131 469 5335
 [From overseas                  [P]+441314695343  [F]+441314695335 ]
======================================================================


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/
------------------------------------------------------------------------