Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

esql compile error. esql[952]: cc: not found.

232 views
Skip to first unread message

kermada

unread,
Feb 21, 2008, 3:00:09 PM2/21/08
to
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

Carsten Haese

unread,
Feb 21, 2008, 3:12:20 PM2/21/08
to kermada, inform...@iiug.org

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,

--
Carsten Haese
http://informixdb.sourceforge.net


kermada

unread,
Feb 21, 2008, 3:26:48 PM2/21/08
to

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

Martin Fuerderer

unread,
Feb 21, 2008, 3:55:42 PM2/21/08
to kermada, informix-l...@iiug.org, inform...@iiug.org
I think there's at least a third possibility (if not more):

- there is a compiler and it may even be called cc,
but the PATH environment variable is not set correctly,
so this existing compiler is not found.

- so you'd need to find out, whether there is a compiler,
where it is and what its name is. Then, besides fixing
a possible name problem, fix the PATH as well.

[ It may well be, that on AIX the C-compiler is optional,
and possibly even costs additional money. ]

Regards,
Martin
--
Martin Fuerderer
IBM Informix Development Munich, Germany
Information Management

IBM Deutschland GmbH
Chairman of the Supervisory Board: Hans Ulrich Märki
Board of Management: Martin Jetter (Chairman), Christian Diedrich,
Matthias Hartmann, Thomas Fell, Christoph Grandpierre, Michael Diemer
Corporate Seat: Stuttgart, Germany; Reg.-Gericht: Amtsgericht Stuttgart,
HRB-Nr.: 14 562 WEEE-Reg.-Nr. DE 99369940

informix-l...@iiug.org wrote on 21.02.2008 21:12:20:

> On Thu, 2008-02-21 at 12:00 -0800, kermada wrote:
> > 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,
>
> --
> Carsten Haese
> http://informixdb.sourceforge.net
>
>

> _______________________________________________
> Informix-list mailing list
> Inform...@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list

Art S. Kagel (Oninit LLC)

unread,
Feb 21, 2008, 4:14:53 PM2/21/08
to kermada, inform...@iiug.org
kermada wrote:
On Feb 21, 2:12 pm, Carsten Haese <cars...@uniqsys.com> wrote:
  

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
0 new messages