** Description changed: Binary package hint: g++ When trying to compile a cpp program, I get following error: g++: error trying to exec 'cc1plus': execvp: No such file or directory The system is AMD64 ubuntu 8.04. There are similar bug reports on internet that suggest to check versions discrepancy between g++ and gcc packages. After close inspection, I noticed that versions of g++ and g++-4.2 differ. Unfortunately, there is no updated version of g++ package in sight. If this is the problem, can g++ of proper version be packaged please? # dpkg -l | grep g++ ii g++ 4:4.2.3-1ubuntu6 The GNU C++ compiler ii g++-4.2 4.2.3-2ubuntu7 The GNU C++ compiler ii g++-4.2-multilib 4.2.3-2ubuntu7 The GNU C++ compiler (multilib files) # dpkg -l | grep gcc ii gcc 4:4.2.3-1ubuntu6 The GNU C compiler ii gcc-4.2 4.2.3-2ubuntu7 The GNU C compiler ii gcc-4.2-base 4.2.3-2ubuntu7 The GNU Compiler Collection (base package) ii gcc-4.2-multilib 4.2.3-2ubuntu7 The GNU C compiler (multilib files) ii gcc-multilib 4:4.2.3-1ubuntu6 The GNU C compiler (multilib files) ii lib32gcc1 1:4.2.3-2ubuntu7 GCC support library (32 bit Version) ii libgcc1 1:4.2.3-2ubuntu7 GCC support library + + I did strace on g++ and saw that it did looked for cc1plus in following directories: + /usr/lib/gcc/x86_64-linux-gnu/4.2.3/cc1plus + /usr/lib/gcc/x86_64-linux-gnu/cc1plus + /usr/libexec/gcc/x86_64-linux-gnu/4.2.3/cc1plus + /usr/libexec/gcc/x86_64-linux-gnu/cc1plus + + But it have not bothered to look into + /usr/lib/gcc/x86_64-linux-gnu/4.2/cc1plus + + Creation of symlink "4.2.3 -> 4.2" in directory /usr/lib/gcc/x86_64 + -linux-gnu/ solved the problem.
-- g++: error trying to exec 'cc1plus': execvp: No such file or directory https://bugs.launchpad.net/bugs/250498 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs