gcc 4.2 Installation Help
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
gcc 4.2 Installation Help
How to install gcc 4.2. I have downloaded gcc-g++-4.0.2.tar.bz2 and uncompress it, now what to do. The installation help is so complex for a newbie in linux. Can some one help me to have new version of gcc install on my computer.
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Get it from your distribution instead...
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
Hi piyank, what kind of linux are you using? You can always attempt to compile GCC with GCC using the normal ./configure & make & make install procedure, but indeed getting an RPM is better.
It depends on what linux distrib you are using how easy this is.
I think they do not hand out ready built RPM's on GCC itself. Maybe on one of the package sites.
- Jorgen
It depends on what linux distrib you are using how easy this is.
I think they do not hand out ready built RPM's on GCC itself. Maybe on one of the package sites.
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
As far as I saw it;
- download the latest tar.gz
- unpack with tar -zxf {name}
- cd {dir}
- mkdir build-gcc
- cd build-gcc
- ../configure
- make
- su -
- cd {dir}/build-gcc
- make install
I think from this point on you have the newest version of gcc
Write protect this directory, because when you want to remove it again, you can simply use make uninstall as root. It is advisable when you do, that you also delete the old gcc package and reinstall that one.
With regards,
- Jorgen
- download the latest tar.gz
- unpack with tar -zxf {name}
- cd {dir}
- mkdir build-gcc
- cd build-gcc
- ../configure
- make
- su -
- cd {dir}/build-gcc
- make install
I think from this point on you have the newest version of gcc
Write protect this directory, because when you want to remove it again, you can simply use make uninstall as root. It is advisable when you do, that you also delete the old gcc package and reinstall that one.
With regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Looks like Fedora has gcc-4.0.2 available in rawhide.
E.g, I found it from
http://download.fedora.redhat.com/pub/f ... 6.i386.rpm
I suppose someone might know how to fetch something from the development repositories selectively in fedora.
And to be sure you have the versions straight, I'm gonna emphasize that it's 4.0.2, not 4.2 - not even 4.1 is out yet (but it will rather soon).
E.g, I found it from
http://download.fedora.redhat.com/pub/f ... 6.i386.rpm
I suppose someone might know how to fetch something from the development repositories selectively in fedora.
And to be sure you have the versions straight, I'm gonna emphasize that it's 4.0.2, not 4.2 - not even 4.1 is out yet (but it will rather soon).
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
it didn't worked as when I uncompress it, i have two folders gcc and libstdc++-v3 and none of them has install.shJorg wrote:As far as I saw it;
- download the latest tar.gz
- unpack with tar -zxf {name}
- cd {dir}
- mkdir build-gcc
- cd build-gcc
- ../configure
- make
- su -
- cd {dir}/build-gcc
- make install
I think from this point on you have the newest version of gcc
Write protect this directory, because when you want to remove it again, you can simply use make uninstall as root. It is advisable when you do, that you also delete the old gcc package and reinstall that one.
With regards,
- Jorgen
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
warning: gcc-c++-4.0.2-6.i386.rpm: V3 DSA signature: NOKEY, key ID 30c9ecf8leio wrote:Looks like Fedora has gcc-4.0.2 available in rawhide.
E.g, I found it from
http://download.fedora.redhat.com/pub/f ... 6.i386.rpm
I suppose someone might know how to fetch something from the development repositories selectively in fedora.
And to be sure you have the versions straight, I'm gonna emphasize that it's 4.0.2, not 4.2 - not even 4.1 is out yet (but it will rather soon).
error: Failed dependencies:
gcc = 4.0.2-6 is needed by gcc-c++-4.0.2-6.i386
libc.so.6(GLIBC_2.4) is needed by gcc-c++-4.0.2-6.i386
libstdc++ = 4.0.2-6 is needed by gcc-c++-4.0.2-6.i386
libstdc++-devel = 4.0.2-6 is needed by gcc-c++-4.0.2-6.i386
which package is needed for libc.so.6(GLIBC_2.4)
priyank,
I think you are better off compiling. If you are really peristent in using packages, use Synaptic or Yum. They will auto-resolve dependencies so that the installed packages will also be updated if needed.
http://stanton-finley.net/fedora_core_4 ... notes.html
After doing this, you can use YUM to get GCC. If you choose the way of the compiler, you will avoid dependency hell because configure will figure out which libs you have, now they simply link against some version and demand you to have that lib (or newer)
- Jorgen
I think you are better off compiling. If you are really peristent in using packages, use Synaptic or Yum. They will auto-resolve dependencies so that the installed packages will also be updated if needed.
http://stanton-finley.net/fedora_core_4 ... notes.html
After doing this, you can use YUM to get GCC. If you choose the way of the compiler, you will avoid dependency hell because configure will figure out which libs you have, now they simply link against some version and demand you to have that lib (or newer)
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
I had used yum update and it does not update to the latest packages, my g++ -v shows version 3.4.4, whereas 4.0.2 is available. And its not about only gcc, I want to know how to get the latest updates of softwares on linux. Sorry, but I am a linux newbie so this simple task of installing softwares is also complex for me.
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
In that case just use your package manager to get you your updates... whatever it is, the distribution webpage certainly has information about it.
gcc-4.0.2 while being a newer release, is not considered that quickly into going into distributions by default. The packages of gcc-4.0.x that are around are usually testing packages, and not pushed out for regular users. So you might need to do extra work to get it.
gcc-4.0.x, while an important step forward, doesn't yet have big benefits over gcc-3.4. It has some major technology merged in, but the benefits of those are not being riped yet very well. In fact, people say that gcc-4.0.x produces bigger binaries than 3.4, while also compiling a little slower. Once the new Tree-SSA and other stuff gets used to its full benefit, this will change, and can probably already be seen a bit in the gcc-4.1 prereleases.
Distributions aren't jumping to a new major version of a core part of the building toolchain so quickly - they want to allow it to stabilize a bit, and I agree with it. Only adventorous people should mess with gcc4 at this point still. I expect about a month for this to be shoved down to regular users (with binary rpm's compiled with gcc4) and developers (for compiling stuff with gcc-4.x.x)
gcc-4.0.2 while being a newer release, is not considered that quickly into going into distributions by default. The packages of gcc-4.0.x that are around are usually testing packages, and not pushed out for regular users. So you might need to do extra work to get it.
gcc-4.0.x, while an important step forward, doesn't yet have big benefits over gcc-3.4. It has some major technology merged in, but the benefits of those are not being riped yet very well. In fact, people say that gcc-4.0.x produces bigger binaries than 3.4, while also compiling a little slower. Once the new Tree-SSA and other stuff gets used to its full benefit, this will change, and can probably already be seen a bit in the gcc-4.1 prereleases.
Distributions aren't jumping to a new major version of a core part of the building toolchain so quickly - they want to allow it to stabilize a bit, and I agree with it. Only adventorous people should mess with gcc4 at this point still. I expect about a month for this to be shoved down to regular users (with binary rpm's compiled with gcc4) and developers (for compiling stuff with gcc-4.x.x)

Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
leio wrote:In that case just use your package manager to get you your updates... whatever it is, the distribution webpage certainly has information about it.
gcc-4.0.2 while being a newer release, is not considered that quickly into going into distributions by default. The packages of gcc-4.0.x that are around are usually testing packages, and not pushed out for regular users. So you might need to do extra work to get it.
gcc-4.0.x, while an important step forward, doesn't yet have big benefits over gcc-3.4. It has some major technology merged in, but the benefits of those are not being riped yet very well. In fact, people say that gcc-4.0.x produces bigger binaries than 3.4, while also compiling a little slower. Once the new Tree-SSA and other stuff gets used to its full benefit, this will change, and can probably already be seen a bit in the gcc-4.1 prereleases.
Distributions aren't jumping to a new major version of a core part of the building toolchain so quickly - they want to allow it to stabilize a bit, and I agree with it. Only adventorous people should mess with gcc4 at this point still. I expect about a month for this to be shoved down to regular users (with binary rpm's compiled with gcc4) and developers (for compiling stuff with gcc-4.x.x)
As I had already stated that in the previous message that :
And its not about only gcc, I want to know how to get the latest updates of softwares on linux.
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
As I had already said:
I digged out http://fedora.redhat.com/docs/yum/ in 10 seconds for you.
All the various distributions differ from eachother mostly precisely from package management, otherwise they are mostly the same, following standards. (and there are semi-standards in package management too, but the tools used are often different). I'm sure google knows plenty much, and more, too.leio wrote:In that case just use your package manager to get you your updates... whatever it is, the distribution webpage certainly has information about it.
I digged out http://fedora.redhat.com/docs/yum/ in 10 seconds for you.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
If you are really that keen on being 'bleeding edge' with your software versions, you may want to try a different distribution like Debian Unstable.
Be warned, though. Debian Unstable might be, well, unstable.
Debian uses Apt as package manager, by the way. Upgrading consist of not more than a simple
There even exists a GUI version for Apt called Synaptic.
Chris
Be warned, though. Debian Unstable might be, well, unstable.
Debian uses Apt as package manager, by the way. Upgrading consist of not more than a simple
Code: Select all
apt-get update && apt-get upgrade
Chris
this->signature=NULL;
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Can I advertise gentoo, now that this thing has started? 

Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/