Find the answer to your Linux question:
Results 1 to 8 of 8
I've been searching many hours the internet to find instructions about how to install gcc (the c compiler). The GNU site wasnt so helpful... In a thread in this forum ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! InS0mN1aC_'s Avatar
    Join Date
    Oct 2008
    Posts
    9

    How can i be root and how to install gcc


    I've been searching many hours the internet to find instructions about how to install gcc (the c compiler). The GNU site wasnt so helpful...
    In a thread in this forum someone said to use the command "yum install gcc"
    I typed it but it gives:

    Loaded plugins: refresh-packagekit
    You need to be root to perform this command.

    Im running Fedora 9 and its my first time on linux. Any help will be of great use

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    As normal user, you can gain root permissions by using the su command at the command line:

    Code:
    su
    ...if that doesn't work, try su -


    You can look here to learn more about using the command line under Linux:

    http://www.linuxcommand.org
    oz

  3. #3
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    I want to add that you should be aware of the effects of ANY command you give as root. All the time!

    There will be no safety nets.
    Debian GNU/Linux -- You know you want it.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! InS0mN1aC_'s Avatar
    Join Date
    Oct 2008
    Posts
    9
    I just type su and gain root permissions? Without writing the root pass?

    And if i enter "yum install gcc" in the terminal, gcc will be automatically installed and ready to compile C programs?

    Thank you for your help! I am not now on my computer so i cant try it...

  6. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Whenever you type su or su - at the command line, the system will ask for a root password, which you must know if you wish to gain root access.

    Check the link posted above for more information on using the Linux command line.
    oz

  7. #6
    Just Joined! InS0mN1aC_'s Avatar
    Join Date
    Oct 2008
    Posts
    9
    Ok! Ill check it Thanx v much for your help

  8. #7
    Just Joined!
    Join Date
    Jul 2012
    Posts
    1
    I'm facing the same problem. but i couldn't type my root password after su or su - command.
    Thank u!
    Screenshot at 2012-07-26 19:01:47.jpg

  9. #8
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Guys, this thread is going on 4 years old so I'm going to go ahead and close it, but do feel free to start fresh threads with details if any of you are still having problems with Linux.

    Thank you.
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •