Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Error setting environment variables on macOS

Nathan_Cummings
3,534 次查看

I'm trying to follow the steps here and I get the following error when sourcing the setvars.sh script:

❯ source setvars.sh
setvars.sh:436: no matches found: advisor\ncommon.sh\ncompiler\nconda_channel\ndal\ndev-utilities\ndnnl\ninstaller\nintelpython\nipp\nippcp\nlicensing\nlogs\nmkl\nmodulefiles-setup.sh\nreadme-get-started-mac-os-base-kit.html\nsetvars.sh\nsupport.txt\nsys_check.sh\ntbb\nvtune_profiler\n/opt/intel/oneapi/*/*/env/vars.sh

:: initializing oneAPI environment ...
-zsh: ZSH_VERSION = 5.7.1
:: ERROR: No env scripts found: No "env/vars.sh" scripts to process.
This can be caused by a bad or incomplete "--config" file.
Can also be caused by an incomplete or missing oneAPI installation.

I tried running the sys_check.sh script, but the error I got there was:

❯ ./sys_check.sh
:: intelpython -- latest
Traceback (most recent call last):
File "/opt/intel/oneapi/intelpython/latest/sys_check/sys_check.py", line 84, in <module>
assert sys.version_info > (3,5)
AssertionError
Issues Encountered.

Which is ultimately happening because the test is checking the system python, which on macOS is v2.7.

Any ideas how to get the environment variables set?

标签 (1)
0 项奖励
1 解答
NoorjahanSk_Intel
主持人
3,491 次查看

Hi,

Thanks for reaching out to us.

Could you please try the below command for sourcing the setvars.sh

 

# oneAPI setvars.sh use in zsh

bash -c 'source /opt/intel/oneapi/setvars.sh ; exec zsh'

For more details refer to the below link.

 

https://community.intel.com/t5/Intel-C-Compiler/How-to-use-zsh-csh-or-tcsh-with-oneAPI-setvars-sh-vars-sh-or/m-p/1227218/thread-id/37878

 

Please let us know if this helps.

If you get any errors please provide the complete error log file.

 

Thanks & regards

Noorjahan.

 

在原帖中查看解决方案

0 项奖励
3 回复数
NoorjahanSk_Intel
主持人
3,492 次查看

Hi,

Thanks for reaching out to us.

Could you please try the below command for sourcing the setvars.sh

 

# oneAPI setvars.sh use in zsh

bash -c 'source /opt/intel/oneapi/setvars.sh ; exec zsh'

For more details refer to the below link.

 

https://community.intel.com/t5/Intel-C-Compiler/How-to-use-zsh-csh-or-tcsh-with-oneAPI-setvars-sh-vars-sh-or/m-p/1227218/thread-id/37878

 

Please let us know if this helps.

If you get any errors please provide the complete error log file.

 

Thanks & regards

Noorjahan.

 

0 项奖励
Nathan_Cummings
3,479 次查看

Ahh that did it! I'll mark as accepted answer.

 

Thanks a lot,

Nathan

0 项奖励
NoorjahanSk_Intel
主持人
3,474 次查看

Hi,

 

Thanks for the accepting as a solution. Intel will no longer monitor this thread. Further discussions on this thread will be considered community only.

 

Thanks & regards

Noorjahan,

 

0 项奖励
回复