有限元分析软件MOOSE的安装与简单的示例

源起

安装

按照官网安装步骤进行预构建版本的编译。 重启终端后无法使用mamba命令,重新输入export PATH=$HOME/mambaforge3/bin:$PATH回车后可用。

在激活环境的时候一直提示:

1
2
Run 'mamba init' to be able to run mamba activate/deactivate
and start a new shell session. Or use conda to activate/deactivate.

参考GitHub上的相关问题,发现使用zsh时候容易出现该问题,需要将路径添加到.zshrc 文件中。示例:

1
2
3
if [ -f "/Users/joe/mambaforge3/etc/profile.d/mamba.sh" ]; then
. "/Users/joe/mambaforge3/etc/profile.d/mamba.sh"
fi

此时,激活环境,提醒没有该环境。列举环境的时候,发现环境路径前没有任何名字。 实际上是环境路径没有配置好,正确的应该如下(示例):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/joe/mambaforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/joe/mambaforge3/etc/profile.d/conda.sh" ]; then
. "/Users/joe/mambaforge3/etc/profile.d/conda.sh"
else
export PATH="/Users/joe/mambaforge3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<

if [ -f "/Users/joe/mambaforge3/etc/profile.d/mamba.sh" ]; then
. "/Users/joe/mambaforge3/etc/profile.d/mamba.sh"
fi

除此外,没有遇到其他问题了。

安装Zapdos

未见异常