模块:找不到命令 [英] module: command not found

查看:141
本文介绍了模块:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加载多个模块以在Linux上构建库,但被告知命令'module'不存在.我在Google周围搜索,发现解决方案是找到一个名为模块"的目录,尽管进行了广泛的搜索,但仍找不到该目录.

I'm attempting to load several modules for building a library on Linux but am told that the command 'module' doesn't exist. I've Googled around and discovered that the solution was to source a directory called "module" which I am unable to locate despite extensive searching.

我不太确定我应该做什么,将不胜感激(知道我正在使用的makefile在我的默认shell是bash的情况下使用csh可能会有所帮助).谢谢!

I'm not quite sure what I should and any help would be appreciated (it might help to know that the makefile I'm working with uses csh while my default shell is bash). Thanks!

推荐答案

我试图复制它,事实证明这对我来说是采购

I tried to reproduce it and it turns out that for me sourcing

source /etc/profile.d/modules.sh

.sh脚本中的

有助于bash和类似内容.对于cshtcsh,您必须添加

in th .sh script helps for bash and similar. For csh and tcsh, you have to add

source /etc/profile.d/modules.csh

到脚本.请注意,此行必须排在第一位,然后是

to the script. Note, that this line must come first and then the

module load foo

行.

这篇关于模块:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆