Announcement

Collapse
No announcement yet.

C++ compiler error

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    C++ compiler error

    Hey everybody..
    I'm a new Linux user, I'm using the last Kubuntu version. Now, when I try to install programs I got the error (when I use the ./configure command):

    checking how to run the C++ preprocessor... /lib/cpp
    configure: error: C++ preprocessor "/lib/cpp" fails sanity check
    See `config.log' for more details.

    I downloaded the gcc-4.1.1, but I tried to installed it as they wrote in the install section in the web site, my steps was:

    mkdir gcc
    cd gcc
    gcc-4.1.1/configure

    make CFLAGS='-O' LIBCFLAGS='-g -O2' \
                LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap


    now when I run the commands:

    cd gcc
    make install


    I got an error..

    can you help me in this case please

    #2
    Re: C++ compiler error

    if you are trying to install all the programs needed for compilation in dapper drake the easiest way is this

    launch konsole from the system folder

    sudo su (and enter password)
    apt-get install g++

    and then

    apt-get install make

    that should add all libraries you need for source compilation

    x

    Comment


      #3
      Re: C++ compiler error

      You can also install the base compiling tools with a one-liner:
      Code:
      sudo apt-get install build-essential
      Or installing 'build-essential' with Adept.

      Also is there a reason why you wish to compile gcc-4.1.1 from source, as it's available from the package repositories (and therefore easily installable with either apt-get, adept or synaptic, whichever you prefer)?

      The package name in the repos is gcc-4.1, but the latest version is 4.1.1

      Comment


        #4
        Re: C++ compiler error

        Thanks a lot Now it works

        Comment

        Working...
        X