LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 06-06-2006, 08:27 PM   #1
mayuhao
LQ Newbie
 
Registered: Jun 2006
Location: china
Posts: 13

Rep: Reputation: 0
how to install gcc-2.95.3 on AIX5.3


I have download gcc-2.95.3.tar.gz and have untar it
but when i type ./configure
it shows a error somthing like this:
"cc not found,you must set the envirment CC to a working compiler"
what i should do next?
should i download a "cc" complier first?
thanks you all!
 
Old 06-06-2006, 09:50 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Try this and let us know what the results are:

Code:
export CC="gcc"
Regards,

Alunduil
 
Old 06-06-2006, 11:58 PM   #3
mayuhao
LQ Newbie
 
Registered: Jun 2006
Location: china
Posts: 13

Original Poster
Rep: Reputation: 0
./configure
Configuring for rs6000-ibm-aix host.
Create "Makefile" in /oracle/gcc-2.95.3
./configure[1462]:gcc: not found.
*** The command 'gcc -o conftest -g conftest.c' failed
*** You must set the environment variable CC to a working compiler.

please have a look,thanks
 
Old 06-08-2006, 03:31 AM   #4
AbrahamJose
Member
 
Registered: Feb 2006
Location: India
Posts: 167

Rep: Reputation: 31
Post which cc

What is the result of
which cc
 
Old 06-08-2006, 10:06 AM   #5
ghatamos
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
where did you untar gcc-2.95.3.tar.gz?

go inside the uncompressed folder and find the /bin folder in there should be all the binary executables for that particular version of GCC (i.e gcc, ld, objdump)

go inside the /bin folder and type pwd.
what ever the output for pwd is, append it to $PATH which should be in your .bashrc (if your root it is in /root/.bashrc

hope this helps.
 
Old 06-08-2006, 07:29 PM   #6
mayuhao
LQ Newbie
 
Registered: Jun 2006
Location: china
Posts: 13

Original Poster
Rep: Reputation: 0
when i type 'which cc'
which:0652-141 There is no cc in /usr/bin ......

and there is no bin fold in the uncompressed fold .maybe this version is a little older
 
Old 06-08-2006, 07:36 PM   #7
mayuhao
LQ Newbie
 
Registered: Jun 2006
Location: china
Posts: 13

Original Poster
Rep: Reputation: 0
thanks for your help and i'am sorry i have paste the same topic twice here and another place in the forum.i will be aware of this,and i hope i can learn more from you
by the way, the question is still there.i will try to solve it and hope you will give more advices.thanks again
 
Old 07-26-2006, 10:09 PM   #8
shadow5277
Member
 
Registered: Aug 2005
Location: Texas
Distribution: Redhat FC4, Fedora 8 and AIX 5.3, AIX 6.1
Posts: 39

Rep: Reputation: 16
Hello Mayuhao,

You will need to go to the following site:

http://aixpdslib.seas.ucla.edu/packages/gcc.html

and get the gcc binary and then compile the source so that you will have a compiler to compile the compiler with.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH daemon under AIX5 NOTORIOUS VR AIX 13 03-11-2005 01:23 PM
TCP/IP Printservers under AIX5? NOTORIOUS VR AIX 2 02-18-2005 08:14 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Does AIX5.2 use crypt or md5 synthol6 AIX 1 07-26-2004 08:08 AM
Is there Security issues with AIX5.2 and IMAP synthol6 AIX 1 06-07-2004 07:04 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration