Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-23-09, 02:12 PM   #1
IdoBrickner
Registered User
 
Join Date: Jan 2009
Posts: 3
Default gcc compiler error in Fedora10

Hi all,

I've just installed Fedora 10 on my LG-E500 series notebook, with NVIDIA GEFORCE 8400 MG.
I also run the updated using yum -y update, and the NVIDIA 3D support.

I know the unix basics, and I need some help.

When running the installation, I'm getting the following error message:
'Unable to find the development tool 'cc' in your path; please make sure you have the package 'gcc' installed. if gcc is installed in your system, please make sure that 'cc' is on your path'

I can tell the gcc is installed by running 'whereis gcc' and getting:
gcc: /usr/libexec/gcc
however, the gcc file is cc1 --does it matter? do I need to change the gcc version?

In addition, the path is empty since 'echo $path' shows an empty line.
I couldn't find a way to add the gcc path (set path=$path usr/libexec/gcc keeps the path empty) --any ideas?

Thanks,
Ido
IdoBrickner is offline   Reply With Quote
Old 01-23-09, 02:36 PM   #2
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: gcc compiler error in Fedora10

Try using rpm's instead

http://forums.fedoraforum.org/showthread.php?t=204752



try this command to see if gcc is installed

Code:
which gcc
Code:
[root@localhost ~]# which gcc
/usr/bin/gcc
[root@localhost ~]#
Code:
[root@localhost ~]# whereis gcc
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
[root@localhost ~]#
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 01-23-09, 02:40 PM   #3
Lysius
Registered User
 
Join Date: Oct 2008
Posts: 98
Default Re: gcc compiler error in Fedora10

I have gcc in /usr/bin on Fedora 10.
If you do not have it there, you likely do not have it installed correctly (or at all).
I have a directory /usr/libexec/gcc, but I do not think the files in there are to be used directly.

and it is $PATH not $path.
Lysius is offline   Reply With Quote
Old 01-23-09, 02:44 PM   #4
ScottKnight
Registered User
 
Join Date: Jan 2009
Location: Allison Park, PA, USA, Earth
Posts: 13
Default Re: gcc compiler error in Fedora10

Quote:
Originally Posted by IdoBrickner View Post
I can tell the gcc is installed by running 'whereis gcc' and getting:
gcc: /usr/libexec/gcc
Interesting that I have been mucking with *nix for 15+ years and that is the first time I have seen the whereis command.

Here's a quick primer for you. That file comes from the cpp package, which is c preprocessor, not compiler. Use this command to see which package:
Code:
rpm -qf /usr/libexec/gcc
What you want is the compiler, gcc, which is apparently not installed yet. Type this to install it:
Code:
yum install gcc
Since the next questions are going to be about kernel source, I might as well pre-emptively give you those commands as well
Code:
yum install kernel-devel
yum install kernel-headers
Have fun
__________________
Scott Knight
ScottKnight is offline   Reply With Quote
Old 01-24-09, 12:19 AM   #5
IdoBrickner
Registered User
 
Join Date: Jan 2009
Posts: 3
Default Re: gcc compiler error in Fedora10

Thanks all!

I installed gcc, and the driver installation was completed, BUT now when trying switching to the graphical mode (using 'init 5'), it does not come up, and I'm getting the following msgs:
Checking for module nvidia.ko: [ok]
Enabling the nvidia driver: Driver already enabled.
Starting irqbalance: [ok]
Starting portreserve: [ok]
Starting settroubleshootd: [ok]
The screen flashes for a few times, and that's it.
when I hit enter I'm getting the promt again.

Any ideas here?


Thanks again,
Ido
IdoBrickner is offline   Reply With Quote
Old 01-24-09, 03:19 AM   #6
Lysius
Registered User
 
Join Date: Oct 2008
Posts: 98
Default Re: gcc compiler error in Fedora10

You seem to have the nvidia driver from livna/rpmfusion installed via rpm. You first have to remove all packages which have "nvidia" in their names.
Lysius is offline   Reply With Quote
Old 01-24-09, 08:07 AM   #7
IdoBrickner
Registered User
 
Join Date: Jan 2009
Posts: 3
Default Re: gcc compiler error in Fedora10

Thanks a lot.

I uninstalled all the packages with 'nvidia' in their names (using rpm -e|grep nvidia), and re-installed the driver.

Now I have the NVIDIA screen in the boot process, the Desktop effects and the windows animations turned on.

How can I tell the driver is properly installed?

Through the Display settings, I can get only few resolutions - 1024X768, 800X600, 640X480, (few more in the Movitor resulotion settings) and the Hardware tab shows the monitor type and the video card as Unknown.

Should I look in another place?

Thanks,
Ido

Last edited by IdoBrickner; 01-24-09 at 08:57 AM. Reason: Managed to solve the question by myself.
IdoBrickner is offline   Reply With Quote
Old 01-24-09, 11:42 AM   #8
Lysius
Registered User
 
Join Date: Oct 2008
Posts: 98
Default Re: gcc compiler error in Fedora10

Try to run "update-pciids" as root. Perhaps this makes your card known.

What is "Display settings"? Did you try nvidia-settings to configure X?
Lysius is offline   Reply With Quote

Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
HPC Job of the Week: Senior Compiler Engineer at Convey News Archived News Items 0 06-10-12 02:30 AM
gcc version3 kenrel module problems valserWater NVIDIA Linux 11 09-07-02 09:40 AM
Kernel drivers and GCC 3.2 Alan666 NVIDIA Linux 2 08-24-02 10:21 PM
NVIDIA_kernel with gcc 3.2 based linux kernel akay NVIDIA Linux 18 08-24-02 09:23 AM
Question about GCC version shosking NVIDIA Linux 5 07-29-02 11:10 AM

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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.