Results 1 to 3 of 3

Thread: problem in installing g++ compiler

  1. #1
    Join Date
    Mar 2010
    Beans
    1

    Cool problem in installing g++ compiler

    i'm a c++ user but new on gcc compiler. so while installing g++ compiler i follwed the previous threads for installing g++ compiler by using the following commandline:-

    sudo apt-get update
    sudo apt-get install build-essential
    gcc -v

    roshni@roshni-laptop:~$ g++ vowel.cpp
    The program 'g++' can be found in the following packages:
    * g++
    * pentium-builder
    Try: sudo apt-get install <selected package>
    bash: g++: command not found
    roshni@roshni-laptop:~$ gcc vowel.cpp
    gcc: error trying to exec 'cc1plus': execvp: No such file or directory
    roshni@roshni-laptop:~$ sudo apt-get update
    Err http://security.ubuntu.com intrepid-security Release.gpg
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/main Translation-en_IN
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/restricted Translation-en_IN
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/universe Translation-en_IN
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/multiverse Translation-en_IN
    Could not resolve 'security.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid Release.gpg
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid/main Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid/restricted Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid/universe Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid/multiverse Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid-updates Release.gpg
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid-updates/main Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid-updates/restricted Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid-updates/universe Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    Err http://in.archive.ubuntu.com intrepid-updates/multiverse Translation-en_IN
    Could not resolve 'in.archive.ubuntu.com'
    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...id/Release.gpg Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...es/Release.gpg Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/...tion-en_IN.bz2 Could not resolve 'in.archive.ubuntu.com'

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...ty/Release.gpg Could not resolve 'security.ubuntu.com'

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...tion-en_IN.bz2 Could not resolve 'security.ubuntu.com'

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...tion-en_IN.bz2 Could not resolve 'security.ubuntu.com'

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...tion-en_IN.bz2 Could not resolve 'security.ubuntu.com'

    W: Failed to fetch http://security.ubuntu.com/ubuntu/di...tion-en_IN.bz2 Could not resolve 'security.ubuntu.com'

    W: Some index files failed to download, they have been ignored, or old ones used instead.
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    roshni@roshni-laptop:~$ n
    bash: n: command not found
    roshni@roshni-laptop:~$ sudo apt-get install build-essential
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    roshni@roshni-laptop:~$ y
    bash: y: command not found
    roshni@roshni-laptop:~$ gcc -v
    Using built-in specs.
    Target: i486-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
    Thread model: posix
    gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11)
    roshni@roshni-laptop:~$


    please help me out....
    what will i do for installing g++ compiler....
    and THNAX in advance...

  2. #2
    Join Date
    Nov 2007
    Location
    Sweden
    Beans
    2,198

    Re: problem in installing g++ compiler

    Ubuntu cannot access the servers. This means you need to try the same thing at a later time. Just keep on trying until it works would be my advice.
    Debian 8.0 "Jessie"
    HP laptop (15-ab064no-Nordic)
    Linux user since 1999.

  3. #3
    Join Date
    May 2008
    Location
    Finland
    Beans
    6
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: problem in installing g++ compiler

    Quote Originally Posted by ubantuooo View Post
    roshni@roshni-laptop:~$ sudo apt-get update
    Err http://security.ubuntu.com intrepid-security Release.gpg
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/main Translation-en_IN
    Could not resolve 'security.ubuntu.com'
    Err http://security.ubuntu.com intrepid-security/restricted Translation-en_IN
    Could not resolve 'security.ubuntu.com'

    ...

    W: Some index files failed to download, they have been ignored, or old ones used instead.
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    I think khelben1979 is incorrect on this one. Waiting won't do a thing for you since it looks like your network connection isn't working. apt-get failed during DNS resolution, which means that even DNS lookups aren't going anywhere. Are your network settings OK?

    Plus, you were trying to run apt-get while another package manager was open, which won't work. Did you have Synaptic or something like that open at the same time?
    Last edited by ORBAT; March 8th, 2010 at 06:56 PM. Reason: Reasoning

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •