LinuxQuestions.org
Help answer threads with 0 replies.
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 02-28-2005, 03:39 PM   #1
MI3GTO
Member
 
Registered: Dec 2004
Location: Belfast Northern Ireland
Posts: 44

Rep: Reputation: 15
running gcc or cc


I have MandrakeLinux 10.1 installed fine. I installed the development options when first installed.

if I do rpm -qa | grep gcc

the gcc packages say they are installed BUT I can not run gcc from a command prompt

whereis gcc gives /usr/lib/gcc but there is not runable file there?

What is going wrong??? Where should it be installed, how do I run it?
 
Old 02-28-2005, 04:00 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
If gcc -v gives you nothing then it is NOT installed and you will have to go back to your package tool and grab it.

nz
 
Old 02-28-2005, 04:48 PM   #3
MI3GTO
Member
 
Registered: Dec 2004
Location: Belfast Northern Ireland
Posts: 44

Original Poster
Rep: Reputation: 15
I try to run RPMDRAKE package managment tool. It shows the gcc package as being on CD2 of the 3 CD set. I insert CD2 but it says the disc can not be accessed may be busy or mounted manual when created???

If I use the file viewer or from the command prompt I nav to the package and run it direct it says that everything is already installed??

Mandrake 10.1
 
Old 02-28-2005, 05:23 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"If I use the file viewer or from the command prompt I nav to the package and run it direct it says that everything is already installed??"

This may be a case where the rpm package is recorded as installed in the rpm data base but some or all of the actual executable files do not exist. I suggest that you try to straighten it out with command line rpm. Try uninstalling gcc with the rpm --nodeps option. You may have multiple entries for gcc in the rpm data base so keep repeating the uninstall command until you get an error message saying that the package is not installed.

rpm --nodeps -e gcc

Then use rpm to install gcc from your Mandrake CD2.

----------------------
Steve Stites
 
  


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
compiling & running java using gcc kiran_kondru17 Linux - Newbie 1 01-04-2005 12:49 PM
running Maya6 on gentoo with gcc 3.3.4 asmith Linux - Software 0 11-28-2004 07:13 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 11:23 PM
Fedora running VMware/GCC compiling atko Fedora 3 12-14-2003 07:49 AM
Problems running C with gcc!! jacksmash Programming 2 11-02-2003 08:23 PM


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