Installing GCC 4.6 in the Ubuntu 11.04 (Natty Narwhal)

Posted: May 3, 2011 in Ubuntu
Tags: , , ,

Hello folks.

After update my Ubuntu I have decided to update the GCC. This procedure follow the same posted in Installing GCC 4.6 in the Ubuntu 10.10. The only detail is about the version that was updated. Instead of use the file gcc-4.6-20110401.tar.bz2 now you must use gcc-4.6-20110429.tar.bz2.

Don’t forget to change the line:

../gcc-4.6-20110401/configure \
–disable-checking \
–enable-languages=c,c++ \
–enable-multiarch \
–enable-shared \
–enable-threads=posix \
–program-suffix=-4.6 \
–with-gmp=/usr/local/lib \
–with-mpc=/usr/lib \
–with-mpfr=/usr/lib \
–without-included-gettext \
–with-system-zlib \
–with-tune=generic

To:

../gcc-4.6-20110429/configure \
–disable-checking \
–enable-languages=c,c++ \
–enable-multiarch \
–enable-shared \
–enable-threads=posix \
–program-suffix=-4.6 \
–with-gmp=/usr/local/lib \
–with-mpc=/usr/lib \
–with-mpfr=/usr/lib \
–without-included-gettext \
–with-system-zlib \
–with-tune=generic

That`s it. See you next time.

Advertisements
Comments
  1. panaeolus c. says:

    /gcc/build/gcc-4.6-20111223# ./configure \
    > –disable-checking \
    > –enable-languages=c,c++ \
    > –enable-multiarch \
    > –enable-shared \
    > –enable-threads=posix \
    > –program-suffix=-4.6 \
    > –with-gmp=/usr/local/lib \
    > –with-mpc=/usr/lib \
    > –with-mpfr=/usr/lib \
    > –without-included-gettext \
    > –with-system-zlib \
    > –with-tune=generic
    configure: WARNING: you should use –build, –host, –target
    configure: WARNING: invalid host type: –disable-checking
    configure: error: invalid variable name: `–enable-languages’

    just fyi^^^ late and i’m too tired to care…. i prolly missed sum’n

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s