Re: Still Can't figure out how to install gcc correctly on Solaris 10.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Andrew Tee <andrew_tee2001@xxxxxxxxx>
To: "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx> 
Sent: Monday, April 23, 2012 6:25 PM
Subject: Still Can't figure out how to install gcc correctly on Solaris 10.



Dear GCC expert,

I am planning to install ossec (HIDS) to harden a SUN sparc Solaris 10 server.
I have downloaded gcc-3.4.6.tar and executed commands below:-
root@Server-5 # pkginfo |grep libi
application SMCliconv                        libiconv
application SMClintl                         libintl
root@Server-5 # pkginfo |grep glib
application SMCglib2                         glib
root@Server-5 # pkginfo |grep gcc
application SMClgcc346                       libgcc
system      SUNWgccruntime                   GCC Runtime libraries
root@Server-5 # pkginfo |grep make
application SMCmake                          make
root@Server-5 # cd gcc-3.4.6
root@Server-5 # mkdir objdir
root@Server-5 # cd objdir

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
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

root@Server-5 # /export/home/omc/HIDS/gcc-3.4.6/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... /export/home/omc/HIDS/gcc-3.4.6/install-sh -c
/export/home/omc/HIDS/gcc-3.4.6/configure: cc: not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

root@Server-5  # echo $PATH
/opt/OMC/3rdTools/bin:/opt/OMC/3rdTools/python/bin:/opt/OMC/jre/bin:/opt/OMC:/opt/OMC/bin:/opt/OMC/3rdTools:/usr/local/bin:/opt/SUNWspro/bin:.:/export/forte6/SUNWspro/bin:/opt/OMC/3rdTools/sybase/OCS-15_0/bin:/opt/OMC/3rdTools/postgresql/bin:/opt/OMC/3rdTools/usr/local/bin:/opt/OMC/3rdTools/flex-2.5.4/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,SPARC-Enterprise/sbin:/opt/sun/bin:/etc/vx/bin:/opt/VRTS/bin:/opt/VRTSob/bin:/opt/VRTSvlic/bin:/opt/SUNWexplo/bin:/opt/SUNWsneep/bin:/opt/SUNWsesscs/cli/bin:/sbin:/usr/sfw/bin::/opt/OMC/3rdTools/sms/script:/usr/ibmcxx/bin:/opt/OMC/3rdTools/sms/bin


Please help, I am new.


Thanks & Best Regards,
Andrew Tee



[Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

Add to Google