Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Bash档案搞砸了?_Ruby On Rails_Bash_Terminal_.bash Profile - Fatal编程技术网

Ruby on rails Bash档案搞砸了?

Ruby on rails Bash档案搞砸了?,ruby-on-rails,bash,terminal,.bash-profile,Ruby On Rails,Bash,Terminal,.bash Profile,在尝试使用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 我检查了我的.bas

在尝试使用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\u档案
,它没有引用类似的内容。你知道怎么回事,怎么解决吗


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

通常,shell在启动时会提供大量文件,我会想到这些常见的位置:

~/.bashrc
~/.profile
/etc/profile
/etc/profile.d/*

你看过你的
.bashrc
文件了吗?在
.bashrc
文件里什么都没有。看看其他地方,比如
~/.profile
/etc/profile/etc/profile.d/*@Tuxdude,它在
/etc/profile
谢谢!你可以正式回答这个问题,我会奖励你的努力:)谢谢!