我最近通过这个 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