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.