Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
HI My I have a linux Virtual dedicated server and am allowed ssh access, when I tyr install some stuff, I cant because I have no C compilers installed! And ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7

    Help! No C compilers


    HI

    My I have a linux Virtual dedicated server and am allowed ssh access, when I tyr install some stuff, I cant because I have no C compilers installed! And I tried to install GCC but I cant, because i've got no C compilers installed

    The intresting thing is when I type in cat /proc/version it returns
    Code:
    Linux version 2.6.9-34.0.1.ELsmp (bhcompile@hs20-bc1-7.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2))
    #1 SMP Wed May 17 17:05:24 EDT 2006
    Notice it says GCC version 3.4.6

    Also I dont have the root user access

    Is there any way I can install a compiler!?

    Thanks in advance,

    AGMaster

    P.S. If you need more info, i will be happy to provide but pls make clear what you want because I just started yesterday with linux!

  2. #2
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    Hello AGMaster:

    Try with the following:

    rpm -q gcc
    or
    rpm -q gcc-c++

    If you have no gcc version, which is most likely the case per your question, then run:

    yum install gcc-c++ compat-gcc-42 compat-gcc-42-c++ gcc gcc4 gcc4-c++

    Most likely one of these versions will install.

    Let us know how it goes.
    Thanks.
    --Willie

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    thanks a lot for the quick reply but unfortunatly it didnt work



    Thanks again,
    Keep them coming,

    AGM

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    What linux distro are you using?

    yum and rpm work under redhat, centos and fedora.

    Thanks.
    --Willie

  6. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Are you logged in as root?
    Execute su - to gain root privileges and execute yum command after that only.
    Code:
    su -
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #6
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Quote Originally Posted by wbens View Post
    What linux distro are you using?

    yum and rpm work under redhat, centos and fedora.

    Thanks.
    --Willie
    Redhat, In my first post, I mentioned (bhcompile@hs20-bc1-7.build.redhat.com)

    More specifically it is Redhat enterprise server 4

  8. #7
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    Try this command:


    sudo su -
    password:

    I hope it works.

    Otherwise, you might have to install the C compiler from source.
    I just do not know how difficult it might be being a regular user.

    Thanks.
    -Willie

  9. #8
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Quote Originally Posted by devils casper View Post
    Are you logged in as root?
    Execute su - to gain root privileges and execute yum command after that only.
    Code:
    su -
    again, su: command not found

    I have root access but dont have access to the root account!

    finger root
    Code:
    Login: root           Name: (null)
    Directory: /                        Shell: /bin/sh
    Never logged in.
    No mail.
    No Plan.

  10. #9
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    Is your account in the wheels group and is the wheels group enabled in the sudoers file under the /etc directory?

  11. #10
    Just Joined!
    Join Date
    Jul 2008
    Posts
    7
    Quote Originally Posted by wbens View Post
    Try this command:


    sudo su -
    password:

    I hope it works.

    Otherwise, you might have to install the C compiler from source.
    I just do not know how difficult it might be being a regular user.

    Thanks.
    -Willie
    sudo: command not found

Page 1 of 2 1 2 LastLast

Posting Permissions

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