Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31

Thread: gcc: error trying to exec 'cc1plus'...

  1. #11
    Join Date
    May 2008
    Beans
    18

    Talking Re: gcc: error trying to exec 'cc1plus'...

    Isnt gcc supposed to invoke the right compiler for you if you pass it a .cpp, from the file sufix?

  2. #12
    Join Date
    Mar 2009
    Beans
    1

    Re: gcc: error trying to exec 'cc1plus'...

    hey, i think u cann reload the spm and then try to install gcc and g++
    cheers

    kefei

  3. #13
    Join Date
    Jul 2005
    Location
    EU - Belgium
    Beans
    48
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: gcc: error trying to exec 'cc1plus'...

    Quote Originally Posted by Jens_Li View Post
    Isnt gcc supposed to invoke the right compiler for you if you pass it a .cpp, from the file sufix?
    Yes and no. I noticed that it does attempt to compile C++ applications but by default it doesn't link certain libraries. For example, when using math functions you need to specify -lm yourself.

  4. #14
    Join Date
    Jun 2006
    Location
    The Netherlands
    Beans
    2,185
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: gcc: error trying to exec 'cc1plus'...

    People please note that this is a very old thread!
    Ubuntu 12.04

  5. #15
    Join Date
    Mar 2009
    Beans
    2

    Re: gcc: error trying to exec 'cc1plus'...

    Quote Originally Posted by piccilli View Post
    gcc and g++ needs to be the same version.

    take a look with "gcc --version" and "g++ --version"
    hi after I run the below command i get the error..how do i use c++ compiler in ubuntu please...

    sudo apt-get install g++
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package g

    cheers

  6. #16
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    Re: gcc: error trying to exec 'cc1plus'...

    Quote Originally Posted by jrama123 View Post
    hi after I run the below command i get the error..how do i use c++ compiler in ubuntu please...

    sudo apt-get install g++
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package g

    cheers
    sudo apt-get install build-essential

  7. #17
    Join Date
    Mar 2009
    Beans
    2

    Re: gcc: error trying to exec 'cc1plus'...

    Quote Originally Posted by dwhitney67 View Post
    sudo apt-get install build-essential
    Many Thanks Whitney. Its working perfect now...

    ~r

  8. #18
    Join Date
    May 2006
    Location
    San Jose
    Beans
    154
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: gcc: error trying to exec 'cc1plus'...

    Yup, that worked for me too. I had forgotten about that, used to be part of my basic install ritual.
    __________________________________________________ ______________________
    DELL Precision 390 T6700 @2.6Ghz 8GB nVidia NV44 Quadro NVS 285
    HP Slimline s5150t Q9300@2.8GHz 8GB Nvidia G210
    Lenovo Ideapad y550p i720 1.6Ghz 8GB Nvidia GT240M

  9. #19
    Join Date
    Mar 2009
    Beans
    2

    Re: gcc: error trying to exec 'cc1plus'...

    home@ubuntu:~/Desktop$ sudo apt-get install g++
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    g++: Depends: g++-4.0 (>= 4.0.3) but it is not going to be installed
    E: Broken packages
    home@ubuntu:~/Desktop$



    any solution?

  10. #20
    Join Date
    Aug 2009
    Beans
    13

    Re: gcc: error trying to exec 'cc1plus'...

    Quote Originally Posted by TheXMan View Post
    I m facing the same problem with GCC & G++.

    gcc: error trying to exec 'cc1plus': execvp: No such file or directory
    g++: error trying to exec 'cc1plus': execvp: No such file or directory


    I tried to install Visual C#.net, but doesn't work. It gives

    Runtime Error!
    R6034


    I tried to install other windows application, it works fine.
    This problem occurs only when installing application requires Ms .Net framework.

    Please suggest me, how to install MS .NET on UBUNTU Linux.

    What do you really want to do?

    Are you trying to execute a Windows program on Linux? If yes, then try Wine http://www.winehq.org/

    If you want to develop .NET applications on Linux, then try Mono http://www.mono-project.com

Page 2 of 4 FirstFirst 1234 LastLast

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
  •