Dear Kai, Thanks for your reply. So, please correct me if I am wrong. 1. 'sparc-sun-solaris2.10' comes with a prebuilt gcc, is it the below? root@Server5 # pkginfo |grep gcc system SUNWgccruntime GCC Runtime libraries 2. Since 'sparc-sun-solaris2.10' has a pre-built gcc, if I don't install additional gcc, when I try to install other applicaiton ossec for instance, it returned this error. root@Server5 # ./install.sh cat: cannot open /etc/resolv.conf cat: cannot open /etc/resolv.conf ** Para instalação em português, escolha [br]. ** è¦ä½¿ç”¨ä¸æ–‡è¿›è¡Œå®‰è£…, 请选择 [cn]. ** Fur eine deutsche Installation wohlen Sie [de]. ** Για εγκατάσταση στα Ελληνικά, επιλÎξτε [el]. ** For installation in English, choose [en]. ** Para instalar en Español , eliga [es]. ** Pour une installation en français, choisissez [fr] ** Per l'installazione in Italiano, scegli [it]. ** 日本語ã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ï¼Žé¸æŠžã—ã¦ä¸‹ã•ã„.[jp]. ** Voor installatie in het Nederlands, kies [nl]. ** Aby instalować w jÄ™zyku Polskim, wybierz [pl]. ** Ð”Ð»Ñ Ð¸Ð½Ñтрукций по уÑтановке на руÑÑком ,введите [ru]. ** Za instalaciju na srpskom, izaberi [sr]. ** Türkçe kurulum için seçin [tr]. (en/br/cn/de/el/es/fr/it/jp/nl/pl/ru/sr/tr) [en]: cat: cannot open /etc/resolv.conf cat: cannot open /etc/resolv.conf Error 0x3. You need a compiler (like gcc or cc) to continue with the with the installation. 3. Even after I have installed gcc-3.4.6-sol10-sparc-local, I install ossec again and below error message showing cannot exec 'sa' root@Server-5 # pkginfo |grep gcc application SMCgcc gcc application SMClgcc346 libgcc system SUNWgccruntime GCC Runtime libraries ------------------<Error Message>------------------------- *** Making zlib (by Jean-loup Gailly and Mark Adler) *** make[1]: Entering directory `/export/home/omc/HIDS/ossec-hids-2.6/src/external/zlib-1.2.3' gcc -c -g -Wall -I../../ -I../../headers -DDEFAULTDIR=\"/var/ossec\" -DLOCAL -DSOLARIS -DHIGHFIRST -DARGV0=\"zlib\" -DXML_VAR=\"var\" -DOSSECHIDS *.c gcc: installation problem, cannot exec `as': No such file or directory gcc: installation problem, cannot exec `as': No such file or directory ....................................................................... ------------------<The rest is too long, I didn't paste all.>------------------------- 3. If I stick to configure gcc-3.4.6 as per previous email (after I pkgrm SMCgcc and use gcc-3.4.6.tar.gz source), then I should replace "--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld" with which directory? root@Server-5 # pwd /export/home/omc/HIDS/gcc-3.4.6 root@Server-5 # ls ABOUT-NLS README.SCO faq.html ltcf-gcj.sh BUGS boehm-gc fastjar ltconfig COPYING bugs.html gcc ltmain.sh COPYING.LIB confdefs.h include maintainer-scripts ChangeLog config install-sh missing FAQ config-ml.in intl mkdep INSTALL config.cache libf2c mkinstalldirs LAST_UPDATED config.guess libffi move-if-change MAINTAINERS config.if libiberty objdir MD5SUMS config.log libjava symlink-tree Makefile.def config.rpath libobjc ylwrap Makefile.in config.sub libstdc++-v3 zlib Makefile.tpl configure libtool.m4 NEWS configure.in ltcf-c.sh README contrib ltcf-cxx.sh ## I sincerely apologise as you have to explain so much to me. Because I totally do not know anything about this. I am no programmer, just a system admin. And I really appreciate and thank very much to you for your reply. Hope to hear and learn from you again. Thanks & Best Regards, Andrew Tee ----- Original Message ----- From: Kai Ruottu <kai.ruottu@xxxxxxxxxxx> To: Andrew Tee <andrew_tee2001@xxxxxxxxx> Cc: "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx> Sent: Monday, April 23, 2012 7:12 PM Subject: Re: Still Can't figure out how to install gcc correctly on Solaris 10. 23.4.2012 13:36, Andrew Tee kirjoitti: > I have downloaded gcc-3.4.6.tar > > root@Server-5 # ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared > loading cache ./config.cache > checking host system type... sparc-sun-solaris2.10 > checking target system type... sparc-sun-solaris2.10 > checking build system type... sparc-sun-solaris2.10 > checking for a BSD compatible install... ../install-sh -c > ../configure: cc: not found Getting 'cc' happens for instance via : http://www.sunfreeware.com/indexsparc10.html There is already a prebuilt gcc-3.4.6 for 'sparc-sun-solaris2.10' to serve as the 'cc', so rebuilding the same from sources is a little odd, using gcc-3.4.6 as a "bootstrap 'cc'" for compiling newer gcc-4.* sources then wouldn't be that odd...