LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2006, 02:58 PM   #1
mlaich
LQ Newbie
 
Registered: Nov 2005
Location: Missoula, MT
Distribution: RH 9, Xandros
Posts: 26

Rep: Reputation: 15
gcc installation on Xandros OC 3.0


Hi All,
I was trying to install gcc version gcc-3.4.5 on Xandros OC 3.0. I copied the gcc-3.4.5.tar.gz to a specified directory. Ran the following commands in order :
gzip -d gcc-3.4.5.tar.gz
tar xvf gcc-3.4.5.tar
cd gcc-3.4.5.tar
./configure
but at the last command i got the error:
---
./configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
---

line 2333 to 2339 in configure file are as follows:
---
# Make sure that the compiler is able to generate an executable. If it
# can't, we are probably in trouble. We don't care whether we can run the
# executable--we might be using a cross compiler--we only care whether it
# can be created. At this point the main configure script has set CC.
we_are_ok=no
echo "int main () { return 0; }" > conftest.c
${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
----
is CC some new thing which I must have to install before gcc. I could not find anything as that in gcc installation notes.
Please HELP...

Thanks --mlaich
 
Old 01-01-2006, 03:09 PM   #2
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 32
That error generally means you don't have GCC installed. You do realize that you're trying to install GCC from source and that you need an older version of GCC already installed in order to do that, right? You can install GCC 3.3.5 through the Xandros Network and use that to build version 3.4.5 if you really want to. Of course, if all you want is a working compiler, there's no reason why you couldn't just install version 3.3.5 and save yourself the hassle.
 
Old 01-01-2006, 03:16 PM   #3
mlaich
LQ Newbie
 
Registered: Nov 2005
Location: Missoula, MT
Distribution: RH 9, Xandros
Posts: 26

Original Poster
Rep: Reputation: 15
Initially I also tried to install the older version of gcc compiler from Xandros network, but Xandros network is not able to connect...it gives the error:
---
Couldn't stat source package list http://xnv3.xandros.com xandros3.0-xn/main Packages (/var/lib/apt/lists/xnv3.xandros.com_3.0_pkg_dists_xandros3.0-xn_main_binary-i386_Packages) - stat (2 No such file or directory)
Couldn't stat source package list http://xnv3.xandros.com xandros3.0-xn/contrib Packages (/var/lib/apt/lists/xnv3.xandros.com_3.0_pkg_dists_xandros3.0-xn_contrib_binary-i386_Packages) - stat (2 No such file or directory)
Couldn't stat source package list http://xnv3.xandros.com xandros3.0-xn/non-free Packages (/var/lib/apt/lists/xnv3.xandros.com_3.0_pkg_dists_xandros3.0-xn_non-free_binary-i386_Packages) - stat (2 No such file or directory)
You may need to update package information (use Edit/Update List menu option)
Some index files failed to download, they have been ignored, or old ones used instead.
---
The internet and all other services are working fine on this computer.
I have no other option but to install the gcc myself... or is there some other option...
I am getting more and more confused...

Thanks --mlaich
 
  


Reply



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
GCC installation I_forgot Linux - Newbie 2 07-01-2005 12:35 AM
Xandros, Suse installation/boot problems Hokum Linux - Newbie 2 02-21-2005 02:17 PM
How to install xandros-201-ocd-installation coopns Linux - Newbie 2 01-04-2005 02:31 AM
Xandros boot loader doesn't load Xandros wharp Linux - General 1 10-27-2004 06:47 AM
Multiboot WinXP, FC2 & Xandros under Xandros lilo? RobF Fedora - Installation 9 08-16-2004 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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