- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to fix it by simply doing a "yum install gcc-c++" !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page