LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   how to install gcc in solaris express developers edition (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-install-gcc-in-solaris-express-developers-edition-731436/)

srinivasmiriyalu 06-08-2009 10:28 AM

how to install gcc in solaris express developers edition
 
hi
i was unable to install gcc in sxde
i have got error which says
Make:fatal error command failed for target `all-gcc`
i searched a lot in internet but no helo..at lost i got headache
so please help guys..its urgent

bathory 06-08-2009 11:08 AM

Isn't gcc installed in /usr/sfw/bin/gcc as it is in Solaris 10? Also make should be installed at /usr/ccs/bin/make.

joe262 06-08-2009 04:26 PM

yeah

gcc is in /usr/sfw/bin/gcc

what exactly are you trying to build? does it require gmake?
gmake is located in /usr/sfw/bin/gmake

also, depending on what youre trying to build and how, you may need to specify the location of GCC, try setting CC=/usr/sfw/bin/gcc
and MAKE=/usr/sfw/bin/gmake

hope this helps

choogendyk 06-08-2009 07:22 PM

What I typically do is just set CC=gcc, make sure my PATH includes the directories where gcc and gmake are, make sure the directories in the path are in the order I want so that, for example, /usr/sfw/bin gets checked before, say, /usr/ccs/bin, and then make sure I always say `gmake` rather than `make`.

On the other hand, I haven't typically built gcc itself. I've gotten gcc from sunfreeware in the past, and, now, on my T5220's with Solaris 10, I'm using the cooltools version which is a gcc front end to the Sun compilers.

Why are you building gcc when you already have it?

srinivasmiriyalu 06-09-2009 03:23 AM

how to install gcc in solaris express developers edition
 
but i am not getting in my terminal when i am typing gcc
simply is it saying gcc command not found
mena s that gcc is installed into my system or not

choogendyk 06-09-2009 03:47 AM

You just have to get your environment variable $PATH set correctly or use the full path to gcc.

Type `/usr/sfw/bin/gcc` or put /usr/sfw/bin in your PATH.

srinivasmiriyalu 06-09-2009 04:49 AM

how to install gcc in solaris express developers edition
 
thank you...thanks a lot..its working ..working.....once thanks you friend


All times are GMT -5. The time now is 08:24 PM.