Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*

Error setting environment variables on macOS

Nathan_Cummings
718 Views

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?

Labels (1)
0 Kudos
1 Solution
NoorjahanSk_Intel
Moderator
675 Views

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-va...

 

Please let us know if this helps.

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

 

Thanks & regards

Noorjahan.

 

View solution in original post

3 Replies
NoorjahanSk_Intel
Moderator
676 Views

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-va...

 

Please let us know if this helps.

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

 

Thanks & regards

Noorjahan.

 

Nathan_Cummings
663 Views

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

 

Thanks a lot,

Nathan

NoorjahanSk_Intel
Moderator
658 Views

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,

 

Reply