简体   繁体   English

无法使用rbenv安装ruby 2,3(Ubuntu服务器16)

[英]Can't install ruby 2,3 with rbenv (Ubuntu server 16)

Hi all i've tried to install ruby with rbenv.. 大家好,我尝试用rbenv安装ruby。

rbenv install 2.3.0

The shell get stuck in this line 外壳卡在这行中

Installing ruby-2.3.1...

After 10 min i cancel the process and get this log .. 10分钟后,我取消该过程并获取此日志..

linking transcoder gb18030.so
compiling ./enc/trans/gbk.c
linking transcoder gbk.so
compiling ./enc/trans/iso2022.c
make[1]: *** wait: No child processes.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: *** wait: No child processes.  Stop.

Any idea of what it's happening ? 知道发生了什么吗? How can i clean all the process to restart the install? 我如何清理所有过程以重新开始安装?

Thanks in advance! 提前致谢!

Once rbenv has determined which version of Ruby your application has specified, it passes the command along to the corresponding Ruby installation. 一旦rbenv确定了您的应用程序指定了哪个Ruby版本,它将把命令传递给相应的Ruby安装。

Each Ruby version is installed into its own directory under ~/.rbenv/versions. 每个Ruby版本都安装在〜/ .rbenv / versions下的自己的目录中。 For example, you might have these versions installed: 例如,您可能已安装以下版本:

~/.rbenv/versions/1.8.7-p371/
~/.rbenv/versions/1.9.3-p327/
~/.rbenv/versions/jruby-1.7.1/

Version names to rbenv are simply the names of the directories in ~/.rbenv/versions. rbenv的版本名称只是〜/ .rbenv / versions中目录的名称。

To remove old Ruby versions, simply rm -rf the directory of the version you want to remove. 要删除旧的Ruby版本,只需rm -rf要删除的版本的目录。 You can find the directory of a particular Ruby version with the rbenv prefix command, eg rbenv prefix 1.8.7-p357. 您可以使用rbenv prefix命令找到特定Ruby版本的目录,例如rbenv prefix 1.8.7-p357。

The ruby-build plugin provides an rbenv uninstall command to automate the removal process. ruby-build插件提供了rbenv卸载命令来自动执行删除过程。

You may also want to update rbenv. 您可能还需要更新rbenv。 If you've installed it manually then do 如果您已手动安装,则请执行

$ cd ~/.rbenv
$ git pull

You should also be able to update ruby-build by 您还应该能够通过以下方式更新ruby-build

$ cd ~/.rbenv/plugins/ruby-build
$ git pull

Sources 资料来源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM