Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7744 Discussions

icpc: error #10417: Problem setting up the Intel(R) Compiler compilation environment.

segmentation_fault
New Contributor I
1,899 Views

I installed oneapi on a CentOS Stream 8 machine. I realize it's not supported, but am still curious about the error below:

 

 

 

$ icpc test.cpp
icpc: error #10417: Problem setting up the Intel(R) Compiler compilation environment.  Requires 'install path' setting gathered from 'g++'

$ g++
-bash: g++: command not found

$ icc hello.c
ld: cannot find -lstdc++

 

 

 

The error about g++ command not found is strange because I have installed all the gcc related stuff. See:

 

 

 

sudo yum install gcc-c++.x86_64
sudo yum install gcc-toolset-9-libstdc++-devel
sudo yum install libstdc++-devel.

$ gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-3)

 

 

0 Kudos
3 Replies
VidyalathaB_Intel
Moderator
1,868 Views

Hi,

 

Thanks for reaching out to us.

 

We tried to run a sample code on CentOS Linux 8 machine with intel compilers (2021.4) and gcc (8.4.1) (icc, icpc, gcc, g++) which you have mentioned and could not reproduce the issues which you have encountered.

 

>>The error about g++ command not found is strange

 

One of the reasons that may cause this error is, changing the PATH environment variable. If you change that, the shell doesn't find the program (here it is g++).

So please check if the g++ executable file location is present in the PATH environment variable.

 

Hope the provided information helps.

 

Regards,

Vidya.

 

segmentation_fault
New Contributor I
1,814 Views

I was able to fix it by simply doing a "yum install gcc-c++" !

VidyalathaB_Intel
Moderator
1,794 Views

Hi,


Glad to know that your issue is resolved.

As your issue is resolved we are going ahead and closing this thread.

If you need any additional information from Intel, please post a new question as this thread will no longer be monitored.


Regards,

Vidya.


Reply