LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2005, 12:49 AM   #1
deepak1283
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
No CC | GCC after installing LINUX 7.3 with Gnome


HI,
I have installed Linux 7.3 with only Gnome Desktop (other options I didn't add) but now when I type cc or Gcc in the command prompt .. it displays "missing command"
I even tried to locate the files , and found them Empty!!!
how do i install them, in case i still have the CD....


Reply fast
 
Old 01-07-2005, 01:01 AM   #2
Valindar
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33

Rep: Reputation: 15
What distribution are you using exactly?
Redhat? Mandrake? Slackware? Debian?
Linux is only one part of what makes up the OS, not the OS itself... unless someone decided to create a distribution called Linux, which would just make everything more confusing.

For example, if you were using Slackware, you would locate the package on either the cdrom or your hdd if you copied it across then type:
installpkg <package name>

If you were using Redhat or Mandrake you would locate it and type:
rpm -ivh <package name> (correct me if I'm wrong, I haven't used rpms in ages)

On Debian you would insert your cdrom and type:
apt-get install gcc
 
Old 01-07-2005, 01:11 AM   #3
deepak1283
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
ok.. mine is RED HAT.... and the command is that simple.. is it???
but How do I knw which package is for CC !!!
 
Old 01-07-2005, 01:23 AM   #4
Valindar
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33

Rep: Reputation: 15
I'm not sure if there are any gui tools for installing packages in Redhat, however to do it in a console (which you should generally do if you want to become familiar with linux) you'll need to first mount your cdrom:
You would do this by inserting the cd into the drive (of course). Now presuming Redhat has been nice and setup your cdrom correctly and given it the directory /mnt/cdrom (which by memory it would probably be for redhat), open a root console (or open a normal console and type 'su' then enter your root password) and type the following: (don't include the #s, that just indicates you type it into a root console)
# mount /mnt/cdrom

Now you've mounted it, change to that directory:
# cd /mnt/cdrom

Now use the du -a command to list all files and directories underneath the directory you're in, then pipe it through (in other words put all the output from du -a into another program) grep to give you only the lines containing 'gcc':
# du -a | grep gcc

Now install the package:
# rpm -ivh packages/gcc-3.2-blah.rpm (if, for example it was in the subdirectory packages with the name gcc-3.2-blah.rpm)

You can apply this to any package just by inserting part of the name of the package after 'grep' and specifying the correct location of the package in the rpm command.

If you get any errors post the output (including the command) of the command that failed. If it fails on the 'mount' command please detail the setup of your IDE devices in the following format:
Primary master:
Primary slave:
Secondary master:
Secondary slave:
to give me an idea of which device file is for your cdrom.

Good luck.
 
Old 01-07-2005, 02:22 AM   #5
deepak1283
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Original Poster
Rep: Reputation: 0
sweet .. Thanks a Lot...

Seems i have a looong way to go for being linux proficient
 
Old 01-07-2005, 02:26 AM   #6
Valindar
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33

Rep: Reputation: 15
It doesn't take all that long to become familiar with Linux, I was feeling confident after a month or two of fiddling around! All of a sudden everything will just seem clear.
 
Old 01-07-2005, 04:04 AM   #7
joey52
Member
 
Registered: Dec 2004
Posts: 59

Rep: Reputation: 15
rpm -ivh libgcc-3.4.3-12.i386.rpm
Preparing... ########################################### [100%]
file /lib/libgcc_s.so.1 from install of libgcc-3.4.3-12 conflicts with file from package libgcc-3.3.3-7
file /usr/sbin/libgcc_post_upgrade from install of libgcc-3.4.3-12 conflicts with file from package libgcc-3.3.3-7

How do I correct this?
 
Old 01-07-2005, 04:14 AM   #8
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
use
Code:
rpm -Uvh
 
Old 01-07-2005, 10:34 AM   #9
joey52
Member
 
Registered: Dec 2004
Posts: 59

Rep: Reputation: 15
Thanks man! Saved me hours of head scratching.
 
  


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
Installing the Gcc 3.4.3 on Linux ashwinipahuja Linux - Software 5 01-13-2005 10:58 AM
Installing the Gcc 3.4.3 on Linux ashwinipahuja Programming 2 12-19-2004 11:37 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM
installing gcc on linux p84s Linux - Software 1 01-12-2003 02:03 PM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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