LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-19-2005, 04:35 PM   #1
colintri
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Must set up Enviroment variables for GCC 3.4.3?


Forgive me if this will be a lengthy post but I'm at a dead end right now.

For your information, I'm running Fedora Core 2 on Dell Inspiron 4000 laptop. Originally, I tried to install MPlayer for my laptop but I ended up getting this error while doing ./configure command. Here it is below:

Code:
[root@ColinLaptop MPlayer-1.0pre6a]# ./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... not found
Checking for gcc version ... not found
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... not found
 
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
 
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use.  Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
 
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder).  If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
 
        GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
 
    *** For details please read DOCS/HTML/en/users-vs-dev.html ***
 Error: Bad gcc version
So I proceeded to download the latest version of GCC C Compiler which is 3.4.3 for my laptop. When I started "./configure" for GCC 3.4.3, to my bad luck, I get another error message about not having the correct enviroment variables. I did real the FAQ and Manual from GCC but it doesn't quite explain how to set up enviroment variables. Here is the error message below:
Code:
[root@ColinLaptop gcc-3.4.3]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
./configure: line 2332: cc: command not found
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Now I cannot configure these two programs together and I looked at GCC's website about Configuration but it didn't make much sense to me. Excerpt from its website, "When configuring a native system, either cc or gcc must be in your path or you must set cc in your enviroment before running configure. Otherwise configuration scripts may fail. The only problem is, I do not know how to set up the proper enviroment variables. Does anyone here has experience in doing this?

Hoping for some help...
 
Old 02-19-2005, 05:20 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
this is typical of FC/redhat..............Gcc is not installed by default

Quote:
Checking for cc version ... not found
Checking for gcc version ... not found
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... not found

this means you have NO gcc installed at all................get out your FC disks and install the default compiler.........then upgrade to latest...........
 
Old 03-13-2005, 05:07 AM   #3
gabledon
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
i meet the same problem with colintr. colintr, have u solved the problem?
and anyone who experienced in this problem help us
 
Old 03-13-2005, 07:28 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
gabledon:

install the compiler from your install cd's. if you are trying to compile apps, also get ( this is not a comprehensive list):

gcc
g++
libstdc++ and libstdc++-devel ( it is common for rpm distro's to split this into it's own package so be sure to look for it)
binutils
sed
gawk
autoconf
automake
make
m4
bison
perl and python ( these are optional, but some apps depend on them to compile)
 
Old 03-13-2005, 03:35 PM   #5
colintri
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Actually, I changed my system to Fedora Core 3. It's running fine now along with GCC compiler.
 
Old 03-13-2005, 07:42 PM   #6
gabledon
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
colintri:
i wanna know how u slolve it. can you talk about it ?
My system is FC3, the home editon. is it possible that home editon no included GCC. Open add/delete program, i find out i don't install the GCC compiler.
i meet another problem when i install GCC compiler. Display:insert FC3 cd2. can't identify the cd. But the cdrom can mount, and i also can read the cdrom.

who can tell me why?
 
  


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
How can I see all the enviroment variables? zvonSully Linux - Software 3 02-09-2005 08:39 AM
Enviroment variables johnnydangerous Fedora 3 02-07-2005 06:45 AM
Where to set enviroment variables vavoem Linux - Software 7 09-07-2004 02:13 AM
How to set System Enviroment Variables cathodion Linux - General 2 06-22-2004 06:05 PM
how to set enviroment variables RedHat123 Linux - Newbie 1 07-16-2002 11:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration