Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6046043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:11:36+00:00 2026-05-23T07:11:36+00:00

I am trying to install gcc 4.6 (mainly for having C++0x better supported) in

  • 0

I am trying to install gcc 4.6 (mainly for having C++0x better supported) in my ubuntu 9.10 (via virtualbox). I referred to previous questions, but I am getting a different error.

I am referring this link for the installation. Now, I have done till the ./gcc-xx/configure ... step. Though it was giving some flex package related error. Mostly due to that make is also failing with below errors:

build/gengtype.o: In function
adjust_field_rtx_def':
/home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:978:
undefined reference to
lexer_line’
/home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:1032:
undefined reference to lexer_line'
/home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:1042:
undefined reference to
lexer_line’ ……………

Now this is giving me a hard time figuring it out because I have already flex/bison latest versions installed. I searched over internet for 2 days almost but no luck. Any help would be really appreciated. Also note that, I already have gcc 4.4 installed in /usr/bin/gcc and I have unzipped the gcc 4.6 tar in my home directory local folder.

[Note: I am also ok with installing ubuntu 11.10 too (which has gcc 4.6) as last resort. But I don’t know if its .iso image is available.]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:11:37+00:00Added an answer on May 23, 2026 at 7:11 am

    I got this fixed. I followed following procedure:
    [Note: run all the commands with sudo, if you are not login as root. e.g. sudo ls -ltr; sudo make install;

    1. As mentioned in the link in my
      question, download the gcc4.6...tar
      file in a temporary place
    2. Now find the place where current
      gcc is stored. e.g. My earlier
      gcc4.4 was stored in
      /usr/lib/gcc/i486-linux-gnu. Which
      has a folder called 4.4, 4.4.1
    3. Create a folder named 4.6 (or
      4.6.1/2/3 etc.) and put that
      .tar file inside it. Untar the
      file as shown in link.
    4. Follow all the procedure as per the
      link. Use nohup <command> & to
      track the logs. i.e. nohup make
      clean all &
      followed by tail -f
      nohup.out
    5. If some error comes, it means some
      package is missing. Mostly those
      package will be present in your
      current gcc version. You can
      install them there itself. For
      example, in my case zlib was
      missing. I ran sudo apt-get install
      zlib1g-dev libssl-dev
      and it worked
      fine. Otherwise download from internet and install it.
    6. Once your gcc is installed, you
      can simply check it using type
      gcc-4.6
      . In my case it showed that
      it’s stored as
      /usr/local/bin/g++-4.6.
    7. Either you can use the same path to
      compile or you can put an alias in
      your bash/tcsh/ksh. e.g.
      /usr/local/bin/g++-4.6 -std=c++0x
      -Wall test.cpp
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to install glibc 2.3.2 on my Ubuntu using gcc v3.4.6, but
I am trying to install PIL using PIP installer, and I'm getting this: llvm-gcc-4.2
I'm trying to install GCC into /my/custom/path/gcc but for some reason it installs into
I am trying: install.packages(RGoogleDocs, repos = http://www.omegahat.org/R) As suggested here , but it doesn't
Trying to install pear package and keep getting this strange error. Can you shed
I am trying to install gcc (a branch of gcc, not the trunk in
I'm trying install pycrypto on osx with easy_install and I'm getting the following error:
I'm trying to install Plone in my new Mac. I am having difficulties while
I've been trying to install rails on my macbook, and have been having so
I am trying to install cqual-0.991 tool on my Ubuntu 12.04 machine. I downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.