oodini
April 9, 2010, 5:33pm
#1
Hi,
I’m trying t run a configure file, but that doesn’t work, and here what I get in the log file :
g++: error trying to exec 'cc1plus': execvp: No such file or directory
configure:2181: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "IlmBase"
| #define PACKAGE_TARNAME "ilmbase"
| #define PACKAGE_VERSION "1.0.1"
| #define PACKAGE_STRING "IlmBase 1.0.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "ilmbase"
| #define VERSION "1.0.1"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2220: error: C++ compiler cannot create executables
See `config.log' for more details.
gcc and g++ are installed : I regularly use them for my own developments (but I use SConS, not autoconf/make).
Here what gives rpm -qa |grep gcc :
libgcc41-4.1.2_20070115-12.1
libgcc43-4.3.3_20081022-9.8
gcc-gij-4.3-34.243
gcc41-32bit-4.1.2_20070115-12.1
gcc43-gij-4.3.3_20081022-9.2
gcc-4.3-34.243
gcc41-c++-4.1.2_20070115-12.1
gcc43-4.3.3_20081022-9.8
libgcc41-32bit-4.1.2_20070115-12.1
libgcc43-32bit-4.3.3_20081022-9.8
gcc41-4.1.2_20070115-12.1
I am on SuSE 11.1.
Thanks for your help.
Hello oodini and welcom to the community!
oodini:
gcc and g++ are installed : I regularly use them for my own developments (but I use SConS, not autoconf/make).
Here what gives rpm -qa |grep gcc :
libgcc41-4.1.2_20070115-12.1
libgcc43-4.3.3_20081022-9.8
gcc-gij-4.3-34.243
gcc41-32bit-4.1.2_20070115-12.1
gcc43-gij-4.3.3_20081022-9.2
gcc-4.3-34.243
gcc41-c++-4.1.2_20070115-12.1
gcc43-4.3.3_20081022-9.8
libgcc41-32bit-4.1.2_20070115-12.1
libgcc43-32bit-4.3.3_20081022-9.8
gcc41-4.1.2_20070115-12.1
The file cc1plus is located in the package gcc44-c++.
Install this package and try it again.
Good luck!
oodini:
Hi,
I’m trying t run a configure file, but that doesn’t work, and here what
I get in the log file :
-> g++: error trying to exec ‘cc1plus’: execvp: No such file or
I am on SuSE 11.1.
Thanks for your help.
Hi
I think you will find it lives down in;
/usr/lib[64]/gcc/[arch]/[gcc_version]/
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 11 days 17:28, 4 users, load average: 0.38, 0.66, 0.49
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
Hi
The user is on 11.1, the file is present in the same location on all
versions of gcc, no reason to upgrade and potentially create more
problems.
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 11 days 17:33, 4 users, load average: 0.17, 0.29, 0.36
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
oodini
April 9, 2010, 6:18pm
#5
Firstly, thanks to all for your prompt replies !
I have there 3 directories :
4.1.2 -> contains cc1plus
4.1.3 -> empty !!
4.3 -> does NOT contain cc1plus (but contains cc1)
oodini
April 9, 2010, 6:56pm
#6
Well, I didn’t find how to edit my previous message…
I checked in YaST, and Actually, here is the status of the gcc :
gcc41 : checked
gcc41-c++ : checked
gcc43 : checked
gcc43-c++ : not
checked
So, I tried to install gcc43-c++, but I got an error message :
#### YaST2 conflicts list - generated 2010-04-09 18:45:00 ####
gcc43-4.3.4_20091019-3.2.x86_64 requires libgcc1 >= 4.3.4_20091019-3.2, but this requirement cannot be provided
uninstallable providers: libgcc43-4.3.4_20091019-3.2.i586[open_SUSE_gcc]
libgcc45-4.5.0_20100406-48.1.i586[open_SUSE_gcc]
libgcc44-4.4.2_20100116-28.1.i586[open_SUSE_gcc]
libgcc45-4.5.0_20100406-48.1.x86_64[open_SUSE_gcc]
libgcc43-4.3.4_20091019-3.2.x86_64[open_SUSE_gcc]
libgcc44-4.4.2_20100116-28.1.x86_64[open_SUSE_gcc]
] Following actions will be done:
do not install gcc43-4.3.4_20091019-3.2.x86_64
do not install gcc43-c++-4.3.4_20091019-3.2.x86_64
] replacement of libgcc43-4.3.3_20081022-9.8.x86_64 with libgcc45-4.5.0_20100406-48.1.x86_64
] Ignore some dependencies of gcc43
So it did’t work.
BUT… if in the prompt, I do :
g++ --version
I get :
g++ (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291]
Hi
That would indicate you have been installing various versions from the
devel repository which version of gcc do you need? Can you also post
the output from (in code tags);
zypper lr -d
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 11 days 18:52, 4 users, load average: 0.19, 0.48, 0.35
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53
oodini
April 12, 2010, 10:46am
#8
For now, I need 4.1.2, but I may need 4.3.2.
Here what I get with zypper lr -d :
1 | Pour_GCC_4.1.2 | Pour GCC 4.1.2 | Non | Oui | 99 | rpm-md | http://download.opensuse.org/repositories/devel:/gcc/openSUSE_11.1 |
2 | openSUSE 11.1-0 | openSUSE 11.1-0 | Non | Non | 99 | yast2 | cd:///?devices=/dev/sr0 |
3 | open_SUSE_gcc | open SUSE gcc | Oui | Oui | 99 | rpm-md | http://download.opensuse.org/repositories/devel:/gcc/openSUSE_11.1/ |
4 | repo | NVIDIA Repository | Oui | Non | 99 | rpm-md | http://download.nvidia.com/opensuse/11.1 |
5 | repo-debug | openSUSE-11.1-Debug | Non | Non | 100 | NONE | http://download.opensuse.org/debug/distribution/11.1/repo/oss/ |
6 | repo-non-oss | openSUSE-11.1-Non-Oss | Oui | Non | 100 | yast2 | http://download.opensuse.org/distribution/11.1/repo/non-oss/ |
7 | repo-oss | openSUSE-11.1-Oss | Oui | Non | 100 | yast2 | http://download.opensuse.org/distribution/11.1/repo/oss/ |
8 | repo-source | openSUSE-11.1-Source | Non | Non | 100 | NONE | http://download.opensuse.org/source/distribution/11.1/repo/oss/ |
9 | repo-update | openSUSE-11.1-Update | Oui | Non | 19 | rpm-md | http://download.opensuse.org/update/11.1/ |
10 | repo_1 | VideoLan Repository | Oui | Non | 100 | rpm-md | http://download.videolan.org/pub/videolan/vlc/SuSE/11.1/ |
11 | repo_2 | openSUSE BuildService - OpenOffice.org | Oui | Non | 100 | rpm-md | http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_11.1/ |
12 | repo_3 | openSUSE BuildService - Mozilla | Oui | Non | 99 | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.1/ |
13 | repo_4 | Packman Repository | Non | Non | 99 | rpm-md | http://ftp.skynet.be/pub/packman/suse/11.1/ |
oodini
April 12, 2010, 10:56am
#9
Moreover, in YaST, the installed version for gcc (not g++) is 4.3.3.
But when I ask for the version in bash, I get 4.3.2…
oodini
April 12, 2010, 11:17am
#10
Else, how to tell to ‘configure’ to compile with g++ 4.1.2 ?
Hi
You should be able to switch installed versions in YaST software
management via the radio button under the versions tab.
Else just export via flags (run ./configure --help to see them) prior
to building, for example;
export CC=/usr/bin/gcc-4.1
export CXX=/usr/bin/g++-4.1
You just need to use the correct name from /usr/bin or where ever the
application is.
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 1 day 17:51, 2 users, load average: 0.19, 0.24, 0.31
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53