-   Solaris / OpenSolaris (
-   -   how to configure/install a compiler? (

Cyrano_de_Bergerac 07-19-2008 11:24 PM

how to configure/install a compiler?
I am completely new to Solaris, and am installing it on a pc to learn it. I have installed it and run all updates, and now am prepared to install apache, bind, sendmail, etc.

When attempting to install apache, I download the source and try to './configure' it, I get this:

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
Configuring APR library
Platform: i386-pc-solaris2.10
checking for working mkdir -p... yes
APR Version: 1.3.0
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

How do I set up/install/configure an "acceptable C compiler" and set the path?

jlliagre 07-20-2008 01:40 AM

Welcome to LQ !

Apache, bind and sendmail are already installed on Solaris 10.

If you want to build from the source, you need to add /usr/sfw/bin and /usr/ccs/bin to your PATH.

j-ray 07-20-2008 11:04 AM

or get yourself gcc from
if you are new to solaris this may be a helpful link anyway

jlliagre 07-20-2008 11:26 AM

gcc is actually bundled with Solaris 10. There is normally no need to download it, just to have it in the PATH (/usr/sfw/bin/gcc).

All times are GMT -5. The time now is 01:03 AM.