Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
  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,093
    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

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  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. #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...

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,093
    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

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

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

Posting Permissions

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