FAQ: C Compiler Cannot Create Executables

"There’s No Such Thing As A Silly Question" -- does the cliche sound familiar? In this part of pimp-my-rig reloaded, technical questions are answered. Mail them to me and I will post the answers here. If you have a better answer, by all means share it with us.

FAQ: A friend came to me to ask for help trying to troubleshoot a configure error that he had trying to build a package for Solaris. The error was:

configure: error: installation or configuration problem: C compiler cannot create executables.


Luckily for him, I have experienced this problem before and the solution is below..

Make sure you have the following packages installed on your system:

[1] for tools (sccs, lex, yacc, make, nm, truss, ld, as):
SUNWbtool, SUNWsprot, SUNWtoo, SUNWcpp

[2] for libraries & headers:
SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc,
SUNWxglh, SUNWlibC, SUNWzlib, SUNWscpu

[3] for 64 bit development (in Solaris 10 these have all been merged into their non-"x" versions):
SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox,
SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx, SUNWzlibx

[4] for ucb compat:
SUNWsra, SUNWsrh

To know if the package is installed, you may run this command:

root@host# pkginfo


Installing the above packages will alleviate the problem.

If you have encountered this problem before and have a different solution, pls let us know.

You might also be interested in:

Feedback

We at pimp-my-rig strive to keep on improving, help us reach that goal by leaving comments or constructive criticisms. Don't miss out on our next feature -- subscribe via RSS (What is RSS?).

Share This

0 comments: