LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-13-2005, 02:09 PM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
cant find gcc


Im trying to install some NVIDA drivers

#uprmi gcc
Everything already installed

#whereis gcc
/usr/lib/gcc

#vi /root/.bashrc
PATH=/usr/lib/gcc

cant find gcc check your path

any suggestions?
 
Old 09-13-2005, 05:39 PM   #2
eka
Member
 
Registered: Jul 2005
Location: Bulgaria Plovdiv
Distribution: Mandriva 2006
Posts: 104

Rep: Reputation: 15
Maybe the easiest way is to use Mandrake control center to install gcc.Or you need to install other version of gcc I think there was 2.By the way NVIDIA drivers does not work well for me.
 
Old 09-13-2005, 11:54 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
#whereis gcc
/usr/lib/gcc
To locate the file that will be executed by the command 'gcc' do:
Code:
which gcc
post the output of that

Quote:
#vi /root/.bashrc
PATH=/usr/lib/gcc
No wonder you can't execute gcc:
1. There are no executable commands in /usr/lib/gcc, just assorted library files
2. You have set the PATH variable to be only /usr/lib/gcc not added /usr/lib/gcc to the existing PATHs. To add something onto the existing path do
Code:
PATH=$PATH:/some/path
Also you generally set the PATH variable in the profile scripts (/etc/profile or ~/.bash_profile)


Anyway there is no need to do any of this with Mandrake. The gcc package installs the gcc executable in /usr/bin/ which by default (on all types of installs and for all users) is in your path - you're barking up the wrong tree chasing after $PATH stuff.

Try going to easyurpmi (see my sig) and settting up the software repos. Then try to install gcc again.
If that doesn't work post the output of
Code:
rpm -qa | grep -i gcc
 
Old 09-14-2005, 12:32 AM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
did you also install gcc-devel? I think there's one of those.

Use the Mandriva Control Center and go to SOFTWARE --> Install and type in GCC. YOu'll get a visual list of all the GCC components. Maybe you are missing one.
 
  


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 cant find SDL.h, but its there! unholy Programming 27 06-11-2010 01:16 AM
ld cannot find qt-mt after gcc upgrade liam_p Linux - Software 6 07-02-2004 08:59 AM
Can't find GCC on Mandrake 9.1 lordshipmayhem Mandriva 46 04-03-2004 01:56 AM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 12:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:04 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