- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RHEL 9.0, Installed l_BaseKit_p_2022.2.0.262_offline.sh.
Create a modulefile oneapi2022
#%Module
module-whatis "Intel oneAPI 2022"
conflict intel/oneapi
source-sh bash /opt/intel/oneapi/2022/setvars.sh
then run
module load oneapi2022
I get a error
-bash: syntax error near unexpected token `done'
If I comment the function rreadlink() in file /opt/intel/oneapi/2022/dpl/2021.7.0/env/vars.sh.
The problem disappeared.
So, what caused this problem, the function rreadlink() or environment-modules?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel communities.
Unfortunately, RHEL 9 is not supported by Intel oneAPI Base Toolkit. Could you please refer to the below link to find the supported OS of the Intel oneAPI Base Toolkit:
Could you please try with any one of the supported OS?
Thanks & Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We haven't heard back from you. Could you please provide any updates on your issue?
Thanks & Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks & Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Arrived here by searching for the same error (with oneapi 2021 and 2024). The problem seems to come from the environment-modules source-sh and sh-to-mod tools.
Generating modulefile with
module sh-to-mod bash /share/compilers/intel/2021/setvars.sh > oneapi/2021.0
then loading the module gives
-bash: syntax error near unexpected token `done'
Editing the rreadlink() function in the modulefile as follows
275c275
< \unset -f command
---
> \unset -f command;
281c281
< return 1
---
> return 1;
solves the problem. Same for 2024.0 (different line numbers)
The original rreadcheck() function from Intel's script has the missing semicolons, so I guess it's a bug in environment-modules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This environment-modules issue has been fixed in version 5.1.0.
environment-modules 5.3.0 is now available on RHEL 9. Updating environment-modules will fix your issue.
Regards,
Xavier
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page