我是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建议使用~/.bashrc
(曾创建此用户界面的人)将其添加到vim
,然后使用我跟随的. ~/.bashrc
来删除此文件。
然而,在运行rbenv bootsrap-ubuntu-14-4
时,我收到消息:
The program 'rbenv' is currently not installed. You can install it by typing:
apt-get install rbenv
我认为这不是重点。
我在这里做错了吗?
答案 0 :(得分:0)
以下内容对我有用,感谢@kristianp的提示:
https://www.brightbox.com/blog/2016/01/06/ruby-2-3-ubuntu-packages/
$ sudo apt-add-repository ppa:brightbox/ruby-ng
$ sudo apt-get update
安装包:
$ sudo apt-get install ruby2.3 ruby2.3-dev
你已经开始运作了:
$ ruby2.3 -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux-gnu]
Cheerio!