缺少命令 rbenv install [英] The command rbenv install is missing

查看:25
本文介绍了缺少命令 rbenv install的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ubuntu 10.04 中,我刚刚安装了 rbenv.安装命令不存在.

In Ubuntu 10.04 I just installed rbenv. The install command is not present.

rbenv 0.4.0-49-g8b04303
Usage: rbenv <command> [<args>]

Some useful rbenv commands are:
   commands    List all available rbenv commands
   local       Set or show the local application-specific Ruby version
   global      Set or show the global Ruby version
   shell       Set or show the shell-specific Ruby version
   rehash      Rehash rbenv shims (run this after installing executables)
   version     Show the current Ruby version and its origin
   versions    List all Ruby versions available to rbenv
   which       Display the full path to an executable
   whence      List all Ruby versions that contain the given executable

See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/sstephenson/rbenv#readme

我错过了什么?

推荐答案

install 命令没有嵌入到 rbenv 中,它来自 ruby-build 插件.您可以使用以下命令安装它:

The install command is not embedded into rbenv, it comes from the ruby-build plugin. You can install it using the command:

git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build

在 Mac OS X 上,您可以通过自制软件安装:

On Mac OS X you can install it through homebrew:

brew install ruby-build

Debian(版本 >= 7)和 Ubuntu(版本>= 12.10) rbenv 和 ruby​​-build 都可以使用 apt-get(或 aptitude)安装:

On Debian (version >= 7) and Ubuntu (version >= 12.10) both rbenv and ruby-build can be installed using apt-get (or aptitude):

sudo apt-get update
sudo apt-get install rbenv ruby-build

在 FreeBSD 上,ruby-build 在 Ports Collection 中可用,它既可以作为二进制包安装,也可以从 port 构建:

On FreeBSD ruby-build is available in the Ports Collection, it can be install both as a binary package or build from the port:

# Using pkgng rbenv will be installed
pkg install ruby-build

# Building ruby-build form Ports will install rbenv only if the RBENV option is set
cd /usr/ports/devel/ruby-build
make install

这篇关于缺少命令 rbenv install的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆