# what happened
when run `icc main.c`, it reports:
icc: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc'
Linux zhanghao 4.14.15-1-ARCH #1 SMP PREEMPT Tue Jan 23 21:49:25 UTC 2018 x86_64 GNU/Linux
gcc (GCC) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
icc from `parallel_studio_xe_2018_update1_cluster_edition`
# some details
`strace -f icc ./main.c` result is in attach
I find out where is wrong now ...
when icc compile source, icc will call `gcc --print-search-dirs -m64`
icc expect it output `install: /usr/lib/`
but in my PC, I set environment variable `LC_MESSAGES=zh_CN.UTF-8`
so, its output is `安装：/usr/lib/...` indeed.
then icc cannot understand it
to solve it, run something like `export LC_MESSAGES=POSIX` before run icc