> Where am I going wrong?
first: welcome new poster!
you not doing anything wrong…unless being born without perfect
knowledge of all the various linux distros is “wrong”…
i don’t think imperfect knowledge is ‘wrong’, and i’m sure the knowledge
gap is correctable… here are a few steps in that direction:
- openSUSE install media has not included gcc (and other development
software) for a few years now.
why? because a large majority of our users are just that (users and not
developers)…so i hear you saying: then how the heck do i build the
packages i need? and the answer is in the next knowledge gap:
- gone are the days (around this distro) where it is routine to drag
the net looking for a source package (or an rpm); download it and run
some command line magic to build and install (or rpm in) an application!
today we just follow a path like this:
- open YaST
- select Software > Software Management
- it opens to a search blank, normally just type into it (like ‘midnight
commander’)
- single left click the (mc) package to add a green check mark
- click “Accept” and watch…DONE
developers have a just slightly different first time:
- open YaST
- select Software > Software Management
- it opens to a search tab, select the “Patterns” tab
- scroll down to the “Development” section (and expand it if necessary)
- single left click on “Base Development” and “C/C++ Development”
- click “Accept” and watch…DONE
YaST normally resolves all dependencies (or throw you a message saying
it can’t find the dependencies in the repos you have enabled, and tells
you what is needed
and, it normally puts all the bits in the right places–which brings me
to a question: Why did your “# rpm -Uvh gcc[blah].i586.rpm” command
install gcc into your home directory? shouldn’t it be in a /bin
somewhere???
i can only guess you became root with su, which keeps your user’s
environment [use “su -” to take on roots environment] AND/OR the gcc rpm
you found and ran the rpm command against had not been packaged by
someone knowing openSUSE…that is to say the
http://download.opensuse.org/distribution/12.1/repo/oss/suse/x86_64/gcc-4.6-15.1.3.x86_64.rpm
which will be installed by YaST from the openSUSE repos will not land
in your home…
i’d say you will be ahead if you use an rpm -e (erase) against that
downloaded gcc before installing it via YaST
finally, if you like the CLI (and yum or apt) better than the YaST GUI
you are gonna love zypper…
OH! i just notice the rpm you installed is for a 32 bit machine…i
assumed you had a 64 bit system when i plucked the one i thought YaST
would install…so i guess it would be:
http://download.opensuse.org/distribution/12.1/repo/oss/suse/i586/gcc-4.6-15.1.3.i586.rpm
if you are coming to us from Ubuntu (or another Debian flavor) you might
zoom up your knowledge gap with these:
http://tinyurl.com/ubuntu-to-openSUSE
http://tinyurl.com/Ubuntu-Differences
and no matter what your experience in *nix-like you will probably find
lots of useful info in:
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/424611-new-users-opensuse-pre-install-general-please-read.html
http://forums.opensuse.org/english/get-technical-help-here/how-faq-forums/new-user-how-faq-read-only/467087-new-users-opensuse-12-1-pre-installation-please-read.html
please don’t get confused by the titles including of “new user” and
decide not to read…if you have 30 years experience with *nix and are
new to openSUSE you will find gaps being filled.
again, welcome.
OH, last: your question has been asked and answered numerous times and
you might (sometimes to often) find your answers faster with a finely
honed google search using their “site specifier” like:
https://www.google.com/search?q=site:forums.opensuse.org+gcc+OR+make+missing+OR+“not+installed”
–
dd http://tinyurl.com/DD-Caveat