gpt4 book ai didi

linux - 模块: command not found

转载 作者:行者123 更新时间:2023-12-03 01:57:11 25 4
gpt4 key购买 nike

我正在尝试加载几个模块以在 Linux 上构建库,但被告知命令“module”不存在。我用 Google 搜索了一下,发现解决方案是获取一个名为“module”的目录,尽管进行了大量搜索,但我仍无法找到该目录。

我不太确定我应该做什么,任何帮助都会受到赞赏(知道我正在使用的 makefile 使用 csh 而我的默认 shell 是 bash 可能会有所帮助)。谢谢!

最佳答案

我尝试重现它,结果证明对我来说是采购

source /etc/profile.d/modules.sh

.sh 脚本中有助于 bash 和类似的内容。对于 cshtcsh,您必须添加

source /etc/profile.d/modules.csh

到脚本。请注意,此行必须先出现,然后是

module load foo

线。

关于linux - 模块: command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2257854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com