The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
A difficult script (for me) DNAx86 Shell Programming and Scripting 2 01-07-2008 12:04 PM
difficult sed command Dave724001 UNIX for Advanced & Expert Users 17 09-29-2006 02:11 AM
difficult time differences Lokesha SUN Solaris 1 06-20-2006 07:42 AM
I need a pro*c complier.. sarwan High Level Programming 4 09-02-2005 06:26 AM
checking of GNU C Complier version jennifer UNIX Desktop for Dummies Questions & Answers 2 05-08-2002 05:30 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-25-2008
Registered User
 

Join Date: Feb 2008
Posts: 1
Finding difficult in installing gcc-3.4.6 complier on Solaris 10.

Hi All,

Can anyone help me in installing gcc-3.4.6 complier on Solaris 10.

1. I have downloaded the gcc-3.4.6.tar.gz from one of the free share
2. While downloading its is seen that it is renamed to gcc-3.4.6.tar.tar
3. On solaris machine I renamed it gcc-3.4.6.tar.gz from gcc-3.4.6.tar.tar
4. then I did gunzip gcc-3.4.6.tar.gz
5. then tar -xvf gcc-3.4.6.tar/*It looksit worked fine*/
6. A directory called gcc-3.4.6 is created
7. Under this directory I created new directory called objdir
8. and ran ../configure from objdir
I received the error called "You must set the environment variable CC to a working compiler"
9. hence I added the enviorment variable
i.e first I added ; CC=cc;export cc did n't worked
CC=/usr/local/cc;export cc; did n't worked
CC=gcc;export cc ; no
CC=gcc-3.4.6; export cc; no
CC=/usr/local/gcc-3.4.6;export cc; did not worked.
10 Even I tried pkgadd -d gcc-3.4.6; I received an error.
11. I download the file on to /export/home/shared/gcc/ directory
12. Do I need to set any path?

Please help me in installing gcc-3.4.6?

Cheers
John
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-25-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,203
maybe you can use pkg-get:
How To Get Started with Blastwave.org - for Solaris 10 Users

it`s a lot easier

greets,
DN2
Reply With Quote
  #3 (permalink)  
Old 02-25-2008
Registered User
 

Join Date: Oct 2002
Posts: 670
Download it from Sunfreeware
Reply With Quote
  #4 (permalink)  
Old 07-11-2008
Registered User
 

Join Date: Oct 2002
Location: India
Posts: 39
gcc on solaris 8

I am trying to install gcc-3.4.6 and at the time for 'tar xvf gcc-3.4.6.tar' it give directory checksum error . For directory checksum error it's recommneded that I install gnu tar .However when I install gnu tar 1.17 , I get the following error .
===================
# cd tar-1.17
# ./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... plaintar
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.

===============
How can I proceed ahead , tar requires C compiler and GCC can not be used with existing tar. What's the fastest way out to get this to work.

We have C compiler in /usr/ucb and adding that to PATH too does not help .
Reply With Quote
  #5 (permalink)  
Old 07-11-2008
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,203
read the last two answers right before your question... if you need an easy way to get all the compilers you need, just install SunStudio. you can download that from the sun website!
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0