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*
876 Discussões

Error setting environment variables on macOS

Nathan_Cummings
4.418 Visualizações

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?

Etiquetas (1)
0 Kudos
1 Solução
NoorjahanSk_Intel
Moderador
4.375 Visualizações

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.

 

Ver solução na publicação original

3 Respostas
NoorjahanSk_Intel
Moderador
4.376 Visualizações

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.

 

Nathan_Cummings
4.363 Visualizações

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

 

Thanks a lot,

Nathan

NoorjahanSk_Intel
Moderador
4.358 Visualizações

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,

 

Responder