【发布时间】:2016-02-25 00:00:44
【问题描述】:
我是 ruby 和 ubuntu 的新手,刚刚创建了我的第一个 VPS droplet,用于部署我的 rails 应用程序。为了设置它,我遵循 Railscast #335,它建议使用 rbenv-installer 安装 Ruby。
running之后:
curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
我收到消息:
Seems you still have not added 'rbenv' to the load path:
# ~/.bash_profile:
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
railscast 建议使用vim(谁创建过这个用户界面??)将它添加到~/.bashrc,然后使用我遵循的. ~/.bashrc 执行这个文件。
但是,在运行 rbenv bootsrap-ubuntu-14-4 时,我收到消息:
The program 'rbenv' is currently not installed. You can install it by typing:
apt-get install rbenv
我认为这不是重点。
我在这里做错了吗?
【问题讨论】:
-
您使用哪个帐户登录操作系统?根还是非根?
-
我使用 root 连接,然后更改为我的新“部署者”帐户
-
如果您仅将 VPS 用于您自己的应用程序,则使用 ppa 进行全局安装可能会更容易。 brightbox.com/blog/2016/01/06/ruby-2-3-ubuntu-packages