Link to home
Start Free TrialLog in
Avatar of sams20
sams20

asked on

configure: error: C compiler cannot create executables on AIX 6.1

I am trying to install midnight commander / mc - 4.6.1. When I run ./configure during installation, I got this message, checking for C compiler default output file name... configure: error: C compiler cannot create executables. Can you tell me what is the possible solution for this error message.
Thanks
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Via Blackberry from summer vacation in France:

Seems you don't have a C compiler installed.

Get gcc from www.perzl.org (mind the dependencies!)  or buy xlC from IBM.
Avatar of sams20
sams20

ASKER

I got from my system,
lslpp -l | grep vac.C
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler
  vac.C                      8.0.0.0  COMMITTED  IBM XL C Compiler

which cc
/usr/bin/cc

oslevel -s
6100-06-05-1115

Please let me know is what I need to do.

Thanks
perzl.org has mc 4.7 as an RPM!
Do you haVe write permission to the directory you started configure from?
Avatar of sams20

ASKER

Ok, is this mc4.7 good for my system oslevel, what about mc 4.6.1?
Avatar of sams20

ASKER

yes I have write permission
Both mc versions are good. for AIX 6.1
Avatar of sams20

ASKER

If xlC or vsc.C is installed on the system, shall I need to install gcc in my case on the system
No, vaC is normally sufficient.

What do you get with just

cc

?

And you don't need any compiler to install an RPM package. AIX has the "rpm" utility on board.
Avatar of sams20

ASKER

I found two types of rpm,
1) mc-4.7.0.4-2.aix5.1.ppc.rpm
2) mc-4.7.0.4-2.src.rpm
Which one should be good to install
src is "source" to be compiled locally which doesn't seem to work in your enyironment), so use the other, precompiled one.

And don't worry about "5.1". It will work.
Avatar of sams20

ASKER

Ok Thanks
Avatar of sams20

ASKER

When I run install command, I got this,

root:/opt/ibm/mc47 --> rpm -i mc-4.7.0.4-2.aix5.1.ppc.rpm
error: failed dependencies:
        glib2 >= 2.20.5 is needed by mc-4.7.0.4-2
        slang >= 2.1.3 is needed by mc-4.7.0.4-2
        libslang.a(shr.o) is needed by mc-4.7.0.4-2

Now what I need to do, please let me know.
Get the missing requisites (which might have further requisites in their turn) from perzl.org and install them before reattempting the mc installation.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sams20

ASKER

Thank you very much. Have a nice trip in France.