Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-01-2006, 03:58 PM   #1
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
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.
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, 04:09 PM   #2
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
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, 04:16 PM   #3
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 gives the error:
Couldn't stat source package list 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 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 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


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

All times are GMT -5. The time now is 04:41 PM.

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