I'm getting the esql[952]: cc: not found. error on AIX
when trying to compile any *.ec program.
Did a hello world and it gets the error
Anyone have any ideas why or how to fix.
Thanks,
Dave
> I'm getting the esql[952]: cc: not found. error on AIX
> when trying to compile any *.ec program.
> Did a hello world and it gets the error
>
> Anyone have any ideas why or how to fix.
Two possibilities:
1) You don't have a C compiler.
2) You have a C compiler, but it's not called "cc".
Solution to 1: Install a C compiler.
Solution to 2: Set the INFORMIXC environment variable to the correct
name of your C compiler.
HTH,

Signature
Carsten Haese
http://informixdb.sourceforge.net
kermada - 21 Feb 2008 20:26 GMT
> > I'm getting the esql[952]: cc: not found. error on AIX
> > when trying to compile any *.ec program.
[quoted text clipped - 17 lines]
> --
> Carsten Haesehttp://informixdb.sourceforge.net
Oh, now that was the answer to that question.
Now, I'm getting "gcc: `-b' must come at the start of the command
line".
And gcc is there an compiles the hello.c program just fine.
Dave
Art S. Kagel (Oninit LLC) - 21 Feb 2008 21:14 GMT
>
You are using GNU C (gcc) on AIX, but the esql script is passing
arguments that are for the native AIX C compiler, xlc (which is usually
installed with a link to it named cc for compatibility). Make a copy of
$INFORMIXDIR/bin/esql and modify it to remove the -b option it's
passing to $(CC). Then either put the new script earlier in your path
or rename esql and replace it with your modified one.
Art S. Kagel
Oninit
>>
>>> I'm getting the esql[952]: cc: not found. error on AIX
[quoted text clipped - 26 lines]
>
> Dave