Computing.Net > Forums > Linux > GCC on SUSE10

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

GCC on SUSE10

Reply to Message Icon

Name: tl1mossman2
Date: March 13, 2006 at 18:41:26 Pacific
OS: SUSE10 (DVD Install)
CPU/Ram: 500/384
Product: HP/Sorta
Comment:

I am going through a fairly painfull headache and have finally decided to stop trying to find vaguely almost non-related resources to my problem.

I've a PC that I installed SUSE10.0 on (DVD based), for one reason or a dozen others, I need to install GCC. I've got the source files for that, and libgcc/library needed for dynamic linking is present, but I can't get gcc to install. The last failed attempt resulted in an error of Command cc not found, while running the configure operation for gcc.

Can someone explain, in a stepped out process, how to install some version of gcc under SUSE10?

Thanks,
-Matt

Note: At best I might be considered a noob-hobbyist as far as linux



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 14, 2006 at 03:39:45 Pacific
Reply:

Sounds like you are trying to compile a C compiler...without a C compiler! gcc should be included on the SuSE DVD (possibly in a development section?). Install it with:
# rpm -ivh /path/to/gcc-x.x.x.rpm
Now if you wanted to you could compile gcc from source...but I would just leave it alone and stick with the one that comes with suse.


0

Response Number 2
Name: wackajaw
Date: March 14, 2006 at 05:23:38 Pacific
Reply:

...alternatively. you could use (from command line) yast -> software -> manage software -> and with |ctrl+S" find and mark gcc and related glibc.x.x.x packets and install them. Yast will check for dependencies and install them too.


0

Response Number 3
Name: 3Dave
Date: March 14, 2006 at 08:51:23 Pacific
Reply:

If you can use yast to install it as wackajaw says then do so...much better that way on a SuSE system.


0

Response Number 4
Name: tl1mossman2
Date: March 14, 2006 at 17:05:41 Pacific
Reply:

While I'm inclined to agree with you from my expeiriences so far with YAST, I've run into a problem.

For some reason gcc isn't showing up anywhere in YAST. What I get when I search for gcc in YAST is:

cpp (the GCC preprocessor) (not what I'm look for is it?)
libgcc (C Compiler Run time Library)
libgcj (Java Runtime Library for gcc)

No gcc, thus the headache. Any idea where I could get an RPM? (I'm hesitant at the thought of downloading a dvd for just this, as I reside on slow dialup)


And, for irony: I got the DVD from a Coding Contest...

Help thus far has been appreciated though


0

Response Number 5
Name: 3Dave
Date: March 15, 2006 at 01:28:02 Pacific
Reply:

Hmmm...I have played with yast since SuSE v5.2. One thing I have found is that if you rely comlpetely on tools specific to a distro then if you come to change or use a different system you find yourself stuck not knowing what to do....eg there is no point trying to run yast on a redhat system. Bearing this in mind, although using a distros own tools is probably advisable when possible, it is also handy to know what they are doing and how to do it manually. Most of these bespoke apps (and GUI tools for that matter) are just frontends to common command line utils. If you learn the CLI then you can configure any *nix system with much more ease.

How I would search and install gcc the long way:

# mount -t iso9660 /dev/cdrom /mnt/cdrom
(the above can often be shortened to "mount /mnt/cdrom)
# find /mnt/cdrom -name "gcc*"
should list everything on the CD beginning with gcc
# rpm -ivh /mnt/cdrom/path/to/gcc-x.x.x.ix86.rpm
NB you will have to change the gcc filename to match the one on your dvd

The above would work on any RPM based system (SuSE, redaht/fedora, mandrake/mandriva etc)...the only problem you may find is dependencies. "Can't install gcc.x.x.. because of missing ....." which I found to be the most annoying thing about RPMs. These days things have improved with the advent of broadband and tools like apt-get and yum which will automatically download and install any dependencies for you. Installing gcc on a debian system is as simple as "apt-get install gcc". You can still do it the long way though! Just find the dependency you need and install that as well, you can put it on the same command line. As you are installing from a dvd it should be on there, eg:
# cd /mnt/cdrom/path/to/
(Change directory to the one containing the RPMs so we dont have to keep typing the path in!)
# rpm -ivh gcc-x.x.x.ix86.rpm dependency1.rpm dependency2.rpm etc...

In future I would suggest selecting the "development" tools when installing a distro as this should contain all the compilers and libraries you will need.


0

Related Posts

See More



Response Number 6
Name: tl1mossman2
Date: March 15, 2006 at 18:11:43 Pacific
Reply:

I don't think you fully understand. It isn't there.

Dev Tools had about 7 packages
<this is actually from the C/C++ Compiler Tools Selection, as full development is a bit larger then I'd like to post
[Keep] autoconf | 2.59-81 | 1.5 MB
[Keep] automake | 1.9.6-2 | 1.4 MB
[Do Not Install] bison | 1.875-56 | 1.0 MB
[Keep] build | 2005.9.12-2 | 67.3 kB
[Keep] cvs | 1.12.12-4 | 851.7 kB
[Do Not Install] flex | 2.5.4a-297 | 220.9 kB
[Keep] gdb | 6.3-20 | 5.3 MB
[Keep] gettext | 0.14.3-6 | 920.0 kB
[Keep] glibc-info | 2.3.5-40 | 898.3 kB
[Keep] libgcj | 4.0.2_20050901-3 | 24.8 MB
[Keep] libtool | 1.5.18-2 | 2.3 MB
[Keep] m4 | 1.4.3-3 | 121.9 kB
[Keep] make | 3.80-188 | 705.3 kB
[Keep] subversion | 1.2.3-2 | 3.9 MB

A day or two ago I did a more newbish version of FIND, being:
dir /*/*gcc*
dir /*/*/*gcc*
dir /*/*/*/*gcc*
dir /*/*/*/*/*gcc*
dir /*/*/*/*/*/*gcc*
(yes, you're entitled to laugh) with the dvd mounted, and found no gcc rpm.

I tried the find with no results, and find /mnt/cdrom -name "*gcc*" returned the libgcc rpm.

So, is there any spot on the web with a gcc3+ rpm for SUSE 10?


0

Response Number 7
Name: 3Dave
Date: March 16, 2006 at 01:19:17 Pacific
Reply:

Strange, because on the package list for
suse 10 you have:

{SNIP}
gcalctool 5.6.31 (A GNOME Calculator
Application)
gcc-ada 4.0.2_20050901 (The GNU C Compiler
and Support Files)
gcc-c++ 4.0.2_20050901 (The GNU C++
Compiler)
gcc-fortran 4.0.2_20050901 (The GNU Fortran
Compiler and Support Files)
gcc-info 4.0.2_20050901 (GNU Info-Pages for
GCC)
gcc-java 4.0.2_20050901 (The GNU Java
Compiler)
gcc-locale 4.0.2_20050901 (Locale Data for
the GNU Compiler Collection)
gcc-mudflap 4.0.2_20050901 (The Mudflap
Extension to GCC)
gcc-objc 4.0.2_20050901 (GNU Objective C
Compiler)
gcc 4.0.2_20050901 (The GNU C Compiler
and Support Files)

gcdmaster 1.1.9 (Graphical front end to
cdrdao for composing audio CDs)
{/SNIP}

From:
http://www.novell.com/products/linuxpackages/professional/index_all.html


Failing that you can always find it on
http://rpm.pbone.net/ or http://rpmfind.net/


0

Response Number 8
Name: mrtibbs
Date: May 28, 2006 at 02:43:34 Pacific
Reply:

I have the same problem. No gcc anywhere
on my DVD or listed in Yast.
I think the DVD (downloaded and burnt by a
friend .. who is away so I cannot
check what he meant to supply) is a cut
down 'use RPM's only' SuSE
distribution intended for people who never
want to compile their own software so will
never need gcc or cc or any other compiler.
I am currently trying to find a compiled
rpm of gcc that will install


0

Response Number 9
Name: mrtibbs
Date: May 28, 2006 at 14:52:53 Pacific
Reply:

Follow up: Found an installation source
and method which worked for me:
From # prompt (root console)
#installation_sources -a
http://packman.mirrors.skynet.be/pub/packman/suse/10.0
This takes a few minutes to return to the #
prompt.
Start Yast and modify the new source to be
at the top of the list.
Then search in Yast and gcc will
[magically] appear and allow itself to be
installed.
There are lots of mirrors but Yast seems to
refuse to add the installation source but
the command line option worked even when
using the same source.


0

Sponsored Link
Ads by Google
Reply to Message Icon

No sound! HELP! linux firewall



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: GCC on SUSE10

Cannot install gcc on RH 8 www.computing.net/answers/linux/cannot-install-gcc-on-rh-8/16260.html

re: installing gcc RD7.3 www.computing.net/answers/linux/re-installing-gcc-rd73/18773.html

problem on installing ogle www.computing.net/answers/linux/problem-on-installing-ogle/23092.html