![加载 /home/[用户名]/.profile 时发现错误(安装 OpenFOAM 后)](https://linux22.com/image/1204164/%E5%8A%A0%E8%BD%BD%20%2Fhome%2F%5B%E7%94%A8%E6%88%B7%E5%90%8D%5D%2F.profile%20%E6%97%B6%E5%8F%91%E7%8E%B0%E9%94%99%E8%AF%AF%EF%BC%88%E5%AE%89%E8%A3%85%20OpenFOAM%20%E5%90%8E%EF%BC%89.png)
我最近通过这个 YouTube 视频安装了 OpenFOAMhttps://www.youtube.com/watch?v=cKyHFwfGpVQ该软件似乎可以运行,但当我重新启动电脑并登录时,我发现此错误消息
Error found when loading /home/[username]/.profile
/opt/openfoam5/etc/bashrc: line 139: _foamSource: command not found
/opt/openfoam5/etc/bashrc: line 144: _foamEval: command not found
还有一些(你可以在这里看到:http://kepkuldes.com/images/297f7e56a50b6cb4f18ce5f34b4ec2fd.jpg
我已经看过了加载 /home/[用户名]/.profile 时发现错误但对我来说没有“mesg n”行。
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
有人已经看到这个问题了吗?有解决办法吗?
BR,Csabi