Results 1 to 6 of 6

Thread: problems to install gcc

  1. #1
    Kay_sc NNTP User

    Default problems to install gcc

    Hi,

    I've some problems to install the gcc compiler's collection.
    I'm using SuSE Linux 10.1 on a VirtualServer (via SSH), so I haven't the install cd/dvd of the linux distribution.
    The problem is that there's no other C-compiler available on the system so I can't use the source version of gcc to build.
    Then I tried to install the gcc package within yast2:
    - Started yast2 on console "yast2".
    - Chose "Software Management".
    - Started the search for gcc.
    - Scrolled the result list to gcc and pressed ENTER.
    - Pressed Alt+A to accept.
    - Now the following message appeared:
    In addition to your manual selections, the following
    packages have been changed to resolve dependencies:
    ; cpp
    ; glibc-devel
    - Pressed Alt+O (OK) to start.
    - Now the following messages appeearedin the right window:
    Writing the system configuration
    Setting up linker chache
    Finishing SuSEconfig
    Done.
    Progress 100%
    - Pressed Alt+N (NO) to go to the start screen.
    - Closed the yast2 program.
    - Searched for gcc on system "find / | grep gcc" - but nothing was installed.
    What's wrong? I cant't use the source version and I can't install within yast2.
    How can I install the gcc?

    Thanks for help.

    Greetz,
    Kay

  2. #2
    Join Date
    Jun 2008
    Location
    Oklahoma, US
    Posts
    822

    Default Re: problems to install gcc

    Kay sc wrote:

    Did you try running gcc from a console to see if it works or not?

    from a terminal:

    gcc

    should give you some response like "gcc: no input files" or so.

    gcc --version

    should give a meaningful output of the current version.

    If you get:

    bash: gcc: command not found

    then it's not installed (at least not in the default path)

    ===============

    You will likely also need to install 'make', and maybe 'automake'
    and 'autoconf' (depends on needs and prospective uses).

    ===============

    If it is at all possible to upgrade / reinstall the system, I'd recommend
    moving to at least opensuse 10.3, as 10.1 is out of it's support window,
    and software (gcc and others) will become harder to obtain as time passes.

    If this is not an option, just ignore me... {Smile}

    Loni

    --
    L R Nix
    lornix@lornix.com

  3. #3
    Kay_sc NNTP User

    Default Re: problems to install gcc

    If I type "gcc" or "gcc --version" in colsole, the message "Bash: Command not found" appears.
    A search for gcc "find / | grep gcc" has no results.
    An upgrade of the system isn't possible.

    Thanks,
    Kay

  4. #4
    Join Date
    Jun 2008
    Location
    United States
    Posts
    423

    Default Re: problems to install gcc

    Hey Key_SC. Welcome!

    Try entering the command zypper search -s --match gcc into a terminal window. If you get a readout of the version and the repository that GCC was installed from, then that means you have GCC installed properly. If the output says something similar to no package found, then one more thing might solve the problem: installing all the basic development packages at one time. This will remove any chance of dependency errors or missing files. If you do not know how to install all the basic development packages at once, simply complete the following steps:


    1. Open YaST Package Manager
    2. Wait for the repositories to load
    3. Click the dropdown menu labeled "Groups"
    4. Select "Patterns" from that list
    5. Wait for the left column to refresh
    6. Scroll down in the left column until you find the heading "Development"
    7. Select "Base Development" from this heading
    8. Click the "Install All" button
    9. Click "Apply" to install the packages
    10. The installation may take a few minutes due to size
    11. Once finished, decline to install more software


    Hope that works for you!

    Folding@Home
    Help save lives with Folding@Home

  5. #5
    Join Date
    Jun 2008
    Location
    Oklahoma, US
    Posts
    822

    Default Re: problems to install gcc

    Unseen-Ghost wrote:

    >
    > Hey Key_SC. Welcome!
    >
    > Try entering the command -zypper search -s --match gcc- into a terminal
    > window. If you get a readout of the version and the repository that GCC
    > was installed from, then that means you have GCC installed properly. If
    > the output says something similar to no package found, then one more
    > thing might solve the problem: installing all the basic development
    > packages at one time. This will remove any chance of dependency errors
    > or missing files. If you do not know how to install all the basic
    > development packages at once, simply complete the following steps:
    >
    >
    >
    > - Open YaST Package Manager
    > - Wait for the repositories to load
    > - Click the dropdown menu labeled "Groups"
    > - Select "Patterns" from that list
    > - Wait for the left column to refresh
    > - Scroll down in the left column until you find the heading
    > "Development"
    > - Select "Base Development" from this heading
    > - Click the "Install All" button
    > - Click "Apply" to install the packages
    > - The installation may take a few minutes due to size
    > - Once finished, decline to install more software
    >
    >
    > Hope that works for you!
    >
    >


    Unseen-Ghost... Did Suse 10.1 have zypper functionality? or Patterns in
    Yast?

    ==========

    Please try installing gcc again, evidently something didn't install
    properly.

    Strange to see you pressing hotkeys in the gui yast... your use of ENTER
    could be problematic, as the action it performs is not always clearly
    evident.

    Oh wait... using ssh... did you run 'yast'? The text version? Again, ENTER
    isn't always well defined, press '+' or SPACEBAR until the selector is
    checked or filled.

    Loni
    --
    L R Nix
    lornix@lornix.com

  6. #6
    Join Date
    Jun 2008
    Location
    United States
    Posts
    423

    Default Re: problems to install gcc

    Quote Originally Posted by lornix View Post
    Unseen-Ghost wrote:
    Unseen-Ghost... Did Suse 10.1 have zypper functionality? or Patterns in
    Yast?
    Sorry, misread the version number.

    Folding@Home
    Help save lives with Folding@Home

Posting Permissions

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