Finding difficult in installing gcc-3.4.6 complier on Solaris 10.


 
Thread Tools Search this Thread
Operating Systems Solaris Finding difficult in installing gcc-3.4.6 complier on Solaris 10.
# 1  
Old 02-25-2008
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
# 2  
Old 02-25-2008
maybe you can use pkg-get:
How To Get Started with Blastwave.org - for Solaris 10 Users

it`s a lot easier Smilie

greets,
DN2
# 3  
Old 02-25-2008
Download it from Sunfreeware
# 4  
Old 07-11-2008
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 .
# 5  
Old 07-11-2008
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!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

GCC installing

dear, please just didn't understand the problem that appears when i try to install ./configure here is the message that appears in unix when installing gcc root@ccbtest # ./configure checking build system type... /bin/bash: ./config.guess: No such file or directory configure: error: cannot... (3 Replies)
Discussion started by: semaan
3 Replies

2. Solaris

Help with installing gcc on Solaris 10

I want to install gcc for Solaris 10 to an alternate location besides /usr/local/bin, so I can't use the pre-compiled package from sunfreeware.com. So I assume I need to compile gcc for myself and specify --prefix. How can I accomplish this? Am I pretty much out of luck trying to compile... (3 Replies)
Discussion started by: srhadden
3 Replies

3. UNIX for Advanced & Expert Users

Installing GCC and other utils

I have a platform whose base is Linux but not everything is available on that. Only necessary executables are available and any individual executable can run on that. It is 32-bit and uname -a shows Linux 2.6.11.11. Problem is I am trying to install gcc compiler on that to debug an issue. Even... (1 Reply)
Discussion started by: radiatejava
1 Replies

4. Solaris

finding difficult to check a condition

Hi all, I have a condition if(($x>0)) then echo "ok" x=`sqlplus -s dmiapp/dmiappl_04@dmid << EOF SELECT count(*) FROM $TABLE_NAME exit EOF` Now the problem occurs when the above code returns an error message (RETURNs a string... (1 Reply)
Discussion started by: megh
1 Replies

5. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders ŕ /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) ŕ pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

6. Solaris

Installing gcc 2.8.1 on Solaris 10

Folks - This may sound like a newbee question - and it is. But a project that I'm managing is under a time crunch and I need a quick answer. IS it possible to install gcc 2.8.1 on a Solaris 10 Sun box? We have some old libraries that need that version of the compiler in order to work... (2 Replies)
Discussion started by: peridot
2 Replies

7. Solaris

Error when installing GCC

GCC 3.4.6 was installed in Solaris 2.8. I ran the commands ./configure and make. When running make install I got the below mentioned errors at the end. Please help me in resolving the same. make: *** Error 1 make: Leaving directory `/gmsp/antony/gcc-3.4.6/sparc-sun-solaris2.8/sparcv9/libf2c'... (1 Reply)
Discussion started by: chrisanto_2000
1 Replies

8. Programming

Installing gcc

Hi all I'm trying to install the latest version of gcc but I keep getting this message on make; gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./../zlib -I./../include -W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -g -O2 -c jartool.c jartool.c:234: getopt.h: No... (3 Replies)
Discussion started by: squeakywheel
3 Replies

9. UNIX for Dummies Questions & Answers

Problem installing gcc

Hi! I have downloaded a precompiled gcc package but I'm having problems installing it. It is supposed to install in /usr/local and there is plenty of space left there but during the installation I get the following error message “No space left on device”. Is it some kind of temp folder that is out... (2 Replies)
Discussion started by: alfabetman
2 Replies

10. Programming

Help!(Installing GCC.)

(Installing GCC: Configuration) In the document of Installing GCC, there is a sentence I don't understand: " Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts... (2 Replies)
Discussion started by: wwz
2 Replies
Login or Register to Ask a Question