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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-07-2005, 12:49 AM
|
#1
|
LQ Newbie
Registered: Jan 2005
Posts: 3
Rep:
|
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
|
|
|
01-07-2005, 01:01 AM
|
#2
|
Member
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33
Rep:
|
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
|
|
|
01-07-2005, 01:11 AM
|
#3
|
LQ Newbie
Registered: Jan 2005
Posts: 3
Original Poster
Rep:
|
ok.. mine is RED HAT.... and the command is that simple.. is it???
but How do I knw which package is for CC !!!
|
|
|
01-07-2005, 01:23 AM
|
#4
|
Member
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33
Rep:
|
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.
|
|
|
01-07-2005, 02:22 AM
|
#5
|
LQ Newbie
Registered: Jan 2005
Posts: 3
Original Poster
Rep:
|
sweet .. Thanks a Lot...
Seems i have a looong way to go for being linux proficient
|
|
|
01-07-2005, 02:26 AM
|
#6
|
Member
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Slackware 9.1
Posts: 33
Rep:
|
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.
|
|
|
01-07-2005, 04:04 AM
|
#7
|
Member
Registered: Dec 2004
Posts: 59
Rep:
|
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?
|
|
|
01-07-2005, 04:14 AM
|
#8
|
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851
Rep:
|
|
|
|
01-07-2005, 10:34 AM
|
#9
|
Member
Registered: Dec 2004
Posts: 59
Rep:
|
Thanks man! Saved me hours of head scratching.
|
|
|
All times are GMT -5. The time now is 10:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|