gpt4 book ai didi

ruby-on-rails - rails 目前在重启后没有安装

转载 作者:数据小太阳 更新时间:2023-10-29 07:13:48 28 4
gpt4 key购买 nike

我有一个奇怪的问题:我在 rvm 上安装了 ruby​​ on rails。一切正常,我可以创建项目。但是在我输入“rails new”时重新启动后,我有“程序'rails'当前未安装。”。

System Ubuntu 12.04

ruby -v
"1.9.3p194"

gem list
actionmailer (3.2.5)
actionpack (3.2.5)
activemodel (3.2.5)
activerecord (3.2.5)
activeresource (3.2.5)
activesupport (3.2.5)
arel (3.0.2)
builder (3.0.0)
bundler (1.1.4)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.3.3)
erubis (2.7.0)
execjs (1.4.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.2)
json (1.7.3)
mail (2.4.4)
mime-types (1.18)
multi_json (1.3.6)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.5)
railties (3.2.5)
rake (0.9.2.2)
rdoc (3.12)
rubygems-bundler (1.0.2)
rvm (1.11.3.3)
sass (3.1.19)
sass-rails (3.2.5)
sprockets (2.1.3)
sqlite3 (1.3.6)
thor (0.15.2)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.33)
uglifier (1.2.4)

最佳答案

将此添加到 ~/.bashrc 文件的底部:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

如果不行试试:

[[ -s "/home/yourusername/.rvm/scripts/rvm" ]] && source "/home/yourusername/.rvm/scripts/rvm"

关于ruby-on-rails - rails 目前在重启后没有安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10918685/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com