Help with GCC redhat 9??

  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

How do i know what version of GCC i am using, i am trying to install mplayer and i got the error by saying that i dont have any version of GCC, so what the GCC is, and from where to get it, and why it doesnt come with the OS, i have redhat 9. :oops:
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

gcc --version

-or-

rpm -q gcc (for RPM installations)

-or -

slocate gcc | less (and hunt through the gcc directories)

P.S. Most recent UNIX utilities support command-name --version
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

amer wrote:
...got the error by saying that i dont have any version of GCC, so what the GCC is, and from where to get it, and why it doesnt come with the OS, i have redhat 9.


Oh... reading a little closer.... it appears you did not install gcc as part of your RH9 installation. (rpm -q gcc will confirm this)... type which gcc to be certain.

gcc is not installed by default. You have to select is as an optional component to install. (It really should be part of any install unless you are certain you won't be compiling source code (as you now are)).

You're next step is to learn how to install gcc (I strongly suggest you do so using RPM).

Cheers
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

Thanks Allot,
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

Then just install it from your distribution CDs or download it from
http://ftp.redhat.com/pub/redhat/linux/ ... dHat/RPMS/ or
one of the Redhat mirror sites.
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

mount /mnt/cdrom

That command will work if you have an entry in your /etc/fstab file for the CD-ROM drive. If for some reason you get an error message after this command, try:

mount -t iso9660 /dev/cdrom /mnt/cdrom

then:

cd /mnt/cdrom/RedHat/RPMS
ls gcc*.rpm
rpm -Uvh gcc-????.rpm (substitue ????)
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

i have tried the /etc/fstab and then msg comes up and says permission denied, why???
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

am in the root account
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

ls -l fstab
does the root account have write permissions?
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

where did fstab come into this thread? did i miss something?
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

i dont know what u meant, but what i did is
ls -l fstab and i got nothing?
ls -l and i got some thing like
-rw----- 1 root root 234234 date time description of what i did
pm
and some more....
drwxr-xr-x 2 root root ..............
thats it

Thanks
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

Sorry, I realized the the fstab was in reference to mounting your CD-ROM. Forgot I posted that bit...

Can you mount a CD type entering either:

Code: [ Select ]
mount /mnt/cdrom


or

Code: [ Select ]
mount -t iso9660 /dev/cdrom /mnt/cdrom
?

If either of those work, than you're ok (you mentioned in another thread that gcc is now installed). Otherwise, start a new thread regarding problems mounting CDs.

Cheers :-)
  • BlueHat
  • Banned
  • Banned
  • User avatar
  • Posts: 589
  • Loc: Cyprus

Post 3+ Months Ago

My GCC was installed as you described to me previously.
Thanks.

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.