这是我的.modulepath文件,最后两行是我从另一个硬盘驱动器安装模块的路径。即使我添加了这些行模块avail命令也不会获取这些文件夹中的任何模块。如果有人能提供帮助,那将会有很大的帮助。
#
# @(#)$Id: 38aa24cc33a5f54a93781d63005a084f74418022 $
# Module version 3.2.10
# init/.modulespath. Generated from .modulespath.in by configure.
#
# Modulepath initial setup
# ========================
#
# This file defines the initial setup for the module files search path.
# Comments may be added anywhere, which begin on # and continue until the
# end of the line
# Each line containing a single path will be added to the MODULEPATH
# environment variable. You may add as many as you want - just
# limited by the maximum variable size of your shell.
#
/etc/environment-modules/modules
#/usr/share/modules/versions # location of version files
#/usr/Modules/$MODULE_VERSION/modulefiles # Module pkg modulefiles (if versioning)
#/usr/Modules/modulefiles # Module pkg modulefiles (if no versioning)
#/usr/share/modules/modulefiles # General module files
#/usr/Modules/3.2.10/your_contribs # Edit for your requirements
/opt/apps/modulefiles/Core
/opt/apps/modulefiles/Compiler
我甚至尝试过使用module use /opt/apps/modulesfiles/Core
user@user-N501VW:~$ module use /opt/apps/modulefiles/Core
user@user-N501VW:~$ $MODULEPATH
bash: /opt/apps/modulefiles/Core:/etc/environment-modules/modules:/usr/share/modules/versions:/usr/Modules/$MODULE_VERSION/modulefiles:/usr/share/modules/modulefiles: No such file or directory
akhila@akhila-N501VW:~$ module avail
------------------------------------------------------------- /usr/share/modules/versions --------------------------------------------------------------
3.2.10
------------------------------------------------------------ /usr/share/modules/modulefiles ------------------------------------------------------------
dot module-git module-info modules null use.own
答案 0 :(得分:0)
即使在MODULEPATH
环境变量中正确设置了特定的模块路径,module avail
也不为这些目录返回任何模块文件。这意味着module
在这些目录中找不到模块文件。
所以我建议您:
module
命令兼容的模块文件(在您使用的module
命令版本上,模块文件的内容应以#%Module
开头魔术饼干)