0

当尝试使用 railsinstaller.org 安装 Ruby on Rails 时,他们在我卸载它后有点搞砸了我的系统,现在我的终端每次启动新终端时都会打印:

Last login: Fri Mar  1 15:01:45 on console
-bash: /etc/profile.d/sm.sh: No such file or directory
-bash: /etc/profile.d/rvm.sh: No such file or directory

我检查了我的.bash_profile,它没有引用任何类似的东西。关于发生了什么以及如何解决它的任何想法?

顺便说一句,我正在运行 Mac OS X...

4

1 回答 1

2

通常,shell 在启动过程中会获取很多文件,这些是我想到的常见位置:

~/.bashrc
~/.profile
/etc/profile
/etc/profile.d/*
于 2013-03-01T23:00:39.067 回答