gpt4 book ai didi

ruby-on-rails - ruby 在 Linux : permanently "source .rvm/scripts/rvm"?

转载 作者:太空宇宙 更新时间:2023-11-03 16:44:24 25 4
gpt4 key购买 nike

我是 Ruby on Rails 的新手,刚刚按照我找到的说明在 Ubuntu Linux 中设置它 here .具体来说,

As s.m. said, I uninstalled everything, then I opened another terminal session as a normal user and run:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) then i run source /home/my-desktop-username/.rvm/scripts/rvm as a normal user NOT ROOT

then i run rvm requirements as a normal user. Then I copy the requirements and close the session, open a root session and install the requirements using sudo

Then I close the session and open a normal user session and run rvm install ruby-1.9.3-p125 if you run this command as root, it will say that rvm is not installed and will suggest that you install it using sudo apt-get install rvm Don't do that!

So basically I had two problems, the tutorials that i followed didn't say that i should run

source /home/my-desktop-username/.rvm/scripts/rvm and didn't say that I should not run rvm as root, s.m told me that. Thanks to everyone, especially to s.m

这很好,但我必须记住

source .rvm/scripts/rvm

每次我打开终端使用 Ruby on Rails 时。

有没有办法永久地告诉 Ubuntu 在 .rvm 中查找所有 Ruby 的东西?

最佳答案

你需要添加你的

  source .rvm/scripts/rvm

进入你的$HOME/.bashrc文件;阅读 advanced bash scripting guide了解更多。

关于ruby-on-rails - ruby 在 Linux : permanently "source .rvm/scripts/rvm"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12650661/

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