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