How to install gcc-4.8

1

I want to make sure before I download anything unnecessary or do something stupid.

Currently I'm using Code::Blocks IDE (nightly build, svn 8982), and my compiler is GCC 4.4.1.

However, I would like to both update my compiler(well, I hope that it can only get better :) ), as well as bring C++11 functionality. Therefore, I downloaded GCC 4.8.1. from http://gcc.gnu.org/gcc-4.8/ . I am using Windows 7. However, I have totally no way how to install it. I must admit, that I'm not fluent in installing things using command line or such. I usually depend on installer. Therefore, I'm a bit lost.

From what I've read in documentation, they say that I should first build compiler by myself. Afterwards, they throw something like this:

Saying that I should configure it first. Well, these letters say nothing to me, and so do the lines after this, with some configuration options.

I don't know if there is any easy way of installing it, but from what I've read here...

0 0
2

Is GCC-4.8 available for 12.04 Precise now?

Update: As of 6/05/2013, there is currently a release of gcc 4.8.1 for 12.04(precise) available at https://launchpad.net/~ubuntu-toolchain-r/+archive/test.

The short answer is: gcc-4.8 is currently available for 12.04(Precise) via the toolchain PPA or by compiling the source(see below for details).

Release Announcement

The announcement for the release of gcc-4.8 was made on March 22nd, so you probably won’t be seeing this in an official repository just yet.

However, it appears that Launchpad does have a PPA available for the toolchain test builds that does include gcc-4.8, here: https://launchpad.net/~ubuntu-toolchain-r/+archive/test

According to the changelog and package list, there are debs for i386, amd64, arm, and powerpc and were built against raring 13.04.

The latest available version of gcc, for 12.04, is 4.8.1 and is available in the toolchain PPA.

Adding the toolchain/test...

0 0
3

Several modern C++ features are currently missing from Visual Studio Express, and from the system GCC compiler provided with many of today’s Linux distributions. Generic lambdas – also known as polymorphic lambdas – are one such feature. This feature is, however, available in the latest versions of GCC and Clang.

The following guide will help you install the latest GCC on Windows, so you can experiment with generic lambdas and other cutting-edge C++ features. You’ll need to compile GCC from sources, but that’s not a problem. Depending on the speed of your machine, you can have the latest GCC up and running in as little as 15 minutes.

The steps are:

Install Cygwin, which gives us a Unix-like environment running on Windows. Install a set of Cygwin packages required for building GCC. From within Cygwin, download the GCC source code, build and install it. Test the new GCC compiler in C++14 mode using the -std=c++14 option.

[Update: As a commenter points out,...

0 0
4

Hello,

I'm an IT student and I'm having my first programming lessons (read: total noob). All the guys at the Uni are running Ubuntu hence they install GCC from the software center, however mageia has only GCC 4.6.3 in the default repositories and apparently the latest version of C requires GCC 4.7 and up.

I downloaded GCC 4.8.1 from the GCC website, but I have no idea how to install it. I tried checking out the documentation here - http://gcc.gnu.org/install/prerequisites.html but this is no noob material. I have no idea what GNAT is and what stagel-checking is. I don't understand why they make compiler installations so hard for beginners. I mean after all if I was a pro I wouldn't read the "How to Install" section to begin with.

Anyway I extracted the tar.gz and ran ./configure. This is the output:

Code: Select all checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type......
0 0
5

Hello Linux Geeksters. As you may know it is very important to have the compilers from the system up to date, in order to successfully build applications from sources. GCC, the GNU Compiler Collection is a package that includes C, C++, Objective-C, Fortran, Java, Ada compilers.

In this article I will show you how to install GCC 4.8.1 on Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Ubuntu 10.04 Lucid Lynx, Linux Mint 16 Petra, Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya and Elementary OS 0.2 Luna.

Because it is available via PPA, installign GCC 4.8.1 on Ubuntu, Linux Mint and Elementary OS is easy. All you have to do is:

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install install gcc-4.8

After GCC 4.8.1 have been successfully installed, you need to do the following:

Remove the previous gcc and g++...

0 0
6

To install gcc-4.8-aarch64-linux-gnujust follow these instructions.

Check that you have the correct repository enabled

First, check that the universe repository is enabled by inspecting '/etc/apt/sources.list' with your favourite editor.

You will need to use sudo to ensure that you have permissions to edit the file.

sudo gedit /etc/apt/sources.list

If universe is not included then modify the file so that it does.

deb http://us.archive.ubuntu.com/ubuntu vivid main universe

After any changes you should run this command to update your system.

sudo apt-get update

You can now install the package like this.

Which will installgcc-4.8-aarch64-linux-gnuand any other packages on which it...

0 0
7
How to install gcc 4.2 on Ubuntu 12.04 or RedHat 5

location: linuxquestions.com - date: March 12, 2013
Hi, I need to compile a program that requires gcc 4.2. I tried a few things but maybe I am missing something. How can I install gcc 4.2? Thanks

Ubuntu 7.10 how do you install GCC v3.4.6 compiler and use it

location: linuxquestions.com - date: March 23, 2008
Have down loaded GCC v3.4.6 compiler .First is it needed to install tar packages etc into Ubuntu 7.10. or is there a program - method all ready in Ubuntu. The program is now on a usb stick ready to go on Ubuntu A step by step guide would be helpfull on installing and 2nd on how to use the program once installed Thanks for any help NZ

how to install gcc 3.4 in ubuntu 10.04 LTS

location: ubuntuforums.com - date: July 12, 2010
Hi all, I need to install gcc 3.4 in ubuntu to compile an old program. However, I can not find it when I use synaptic. I've tried to look for the repository...

0 0
8

Automated Installer

If you are new to MinGW, see the MinGW Getting Started instructions to use the automated GUI or manual CLI (Command Line Interface) installers. What follows below are instructions for a very "manual" download, typically only attempted by more experienced users.

Manual Installation

Before you start this manual installation, read the release notes (at the bottom of the page).

Determine which files below you need and download them. Extract the files into a directory such as C:\MinGW Add C:\MinGW\bin; to the PATH environment variable.

You will need a program that can extract .tar.lzma files, such as 7-Zip or one that provides command-line tar and lzma tools. A basic standalone tar program that includes lzma support is available from the MinGW project and is called bsdtar.

You must add C:\MinGW\bin; to your user PATH environment variable manually. You can permanently add C:\MinGW\bin; to your PATH by following the...

0 0
9

Want GCC 4.8 with c++11 complete feature? Well here’s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.

The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system.

1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to add the ppa:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

2.) Then install gcc 4.8 and g++ 4.8:

sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8

3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.

sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20 sudo update-alternatives --config gcc sudo update-alternatives --config g++

Now you have the gcc 4.8...

0 0
10

Use the mirrors listed Here and download the 4.8.1. The process is pretty straightforward. I would recommend to use this Procedure to complete your installation.

As you may know GCC doesn't support "make uninstall" and it has been suggested that you install GCC into a directory of its own and simply remove that directory when you do not need that specific version of GCC any longer. Hope this helped. Cheers

Edited: The Option 2:

I assume that you already have a former version of gcc, the easiest way could be adding PPA to your repositories and Update and upgrade you can have the latest version with no worries:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update

this will add the new PPA to the other sources.

Then unistall the alternative:

sudo update-alternatives --remove-all gcc sudo update-alternatives --remove-all g++

then:

sudo apt-get install gcc-4.8 sudo apt-get install g++-4.8

and as the alternative packages...

0 0
11
Installing GCC - GNU Project - Free Software Foundation (FSF) The latest version of this document is always available at http://gcc.gnu.org/install/. It refers to the current development sources, instructions for specific released versions are included with the sources.

This document describes the generic installation procedure for GCC as well as detailing some target specific installation instructions.

GCC includes several components that previously were separate distributions with their own installation instructions. This document supersedes all package-specific installation instructions.

Before starting the build/install procedure please check the host/target specific installation notes. We recommend you browse the entire generic installation instructions before you proceed.

Lists of successful builds for released versions of GCC are available at http://gcc.gnu.org/buildstat.html. These lists are updated as new information becomes available.

The...

0 0
12

This chapter describes the tasks that you must complete before you start Oracle Universal Installer.

This chapter includes information about the following topics:

4.1 Guidelines for Linux Operating System Installation

This section provides information about installing a supported Linux distribution. Complete the minimum hardware configuration before you install the operating system.

This section contains the following topics:

4.1.1 Completing a Minimal Linux Installation

Review the following sections regarding minimal Linux installation requirements:

4.1.1.1 About Minimal Linux Installations

To complete a minimal Linux installation, select one of the minimal installation options (either a custom installation where you select the Minimal option from Package Group Selection, or where you deselect all packages except for the Base pack). This installation lacks many RPMs required for database installation, so you must...

0 0