rails尚未安装 的解决方法
来源:互联网 发布:淘宝客app制作教程 编辑:程序博客网 时间:2024/06/09 08:55
按照淘宝Ruby的rails安装指南和RubyChina的Rails环境配置指南配置好了Rails环境,可第二天突然抽风,找不到rails bundle等命令
不可能啊,第一次安还测试过安对了,东找西找,两大种解释,环境变量和环境变量 RubyChina的问题讨论
可是为什么第一次是好的呢?
哦,终于发现一篇有用的文章了,看来找问题还是得去官网啊
rvm官网解答 shell --> 编辑 --> 配置文件首选项 --> 标题和命令 --> 勾选以登陆shell方式运行命令
解释在此:
What shell login means ('bash -l')
There are sites that describe this how it was 10 years ago like here orhere so read to see how it works in current world:
- When you login graphically to your system it will read `~/.profile` so you put there settings like `LANG` which are important for graphical applications
- When you open a terminal (except Gnome-terminal & Screen) you open a `login` shell which sources `~/.bash_profile`
- When you execute commands in non login shell like `ssh server command` or `scp file server:~` or `sudo`(without -i) or `su` (without -l) it will execute `~/.bashrc`
`~/.bashrc` is meant for non login invocations, you should not print there any output - it makes tools like `scp` to fail
it is good idea to put environment variables in `~/.bashrc`, things that you depend upon in your scripts (for `ssh server script`)
then if your system does not source `~/.bashrc` by default via `/etc/profile` you should source it in `~/.bash_profile` file so any login shell will have access also to the same environment like non login sessions.
RVM by default adds itself currently to `~/.bash_profile` file, and the recommended way is to enable login shell in gnome-terminal (and screen).
- rails尚未安装 的解决方法
- rails 尚未安装
- rails 安装linecache19出错的解决方法
- Rails安装eventmachine提示出错的解决方法
- 网络不存在或尚未启动的解决方法
- 网络不存在或尚未启动的解决方法
- win7系统安装网银助手时提示您尚未正确安装错误的两种解决方法图文教程
- phpmyadmin链接表的附加功能尚未激活的解决方法
- phpmyadmin链接表的附加功能尚未激活的解决方法
- PhpMyAdmin 链接表的额外特性尚未激活 的解决方法
- Delphi中提示“尚未调用CoInitialize错误”的解决方法
- Delphi中提示“尚未调用CoInitialize错误”的解决方法
- 通知dll尚未注册,程序无法运行的解决方法
- [Delphi-码农]Delphi 多线程 “尚未调用CoInitialize错误”的解决方法
- Ruby On Rails -- Rails的安装
- Ruby on Rails安装过程中出现"no such file to load -- mkmf"错误的解决方法。
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- 安装ruby on rails错误:Unable to download data from https://rubygems.org/的解决方法
- 【Java常用类库】_比较器(Comparable、Comparator)笔记
- 使用GDI+进行开发的一些问题(10)
- Applet 远程调试
- netfilter源码分析(5)- ipt_do_table()函数,数据包的过滤
- IOS之手势锁屏
- rails尚未安装 的解决方法
- junit java 单元测试
- netfilter源码分析(6)-扩展的match
- Java客户端与C服务器端数据通信
- netfilter源码分析(7)- target 匹配
- POJ 2042 暴力打表
- C# WinForm PictureBox的鼠标滑轮MouseWheel事件。
- eclipse如何部署Flex工程
- .NET界面工具WPF Elements中文教程