erro使用rbenv ubuntu安装ruby

h6my8fg2  于 2021-09-29  发布在  Java
关注(0)|答案(0)|浏览(265)

我正在尝试设置我的ubuntu环境,为此我需要安装ruby​​要开始工作,我必须在周五之前拿到:/
我按照指示使用rbenv,我遵循了一步一步的指示,但它不起作用。
我试试看:

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

然后

rbenv install rbx-5.0

但我得到了这个错误:

Downloading rubinius-5.0.tar.bz2...
-> https://dqw8nmjcqpjn7.cloudfront.net/c9e90e3ef2fb80714b09895611152024fecbb3f13955298fa63e57b1785e8ff0
Installing rubinius-5.0...

BUILD FAILED (Ubuntu 21.04 using ruby-build 20210720-1-g37d7143)

Inspect or clean up the working tree at /tmp/ruby-build.20210722014142.33410.qcx0sZ
Results logged to /tmp/ruby-build.20210722014142.33410.log

Last 10 log lines:
Via: 1.1 d5488e7054c0eb6827749a115e047e78.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: GRU1-C1
X-Amz-Cf-Id: HB0MkMd80NIfXeSNOw6h3BURsv4p3ZQfBu5c9nbc4yWKf4xTQ2_xSw==
Age: 1504

/tmp/ruby-build.20210722014142.33410.qcx0sZ/rubinius-5.0 /tmp/ruby-build.20210722014142.33410.qcx0sZ ~/.rbenv/plugins/ruby-build
find: ‘build/rubinius/codedb’: No such file or directory
find: ‘build/codetools/’: No such file or directory
find: ‘build/stdlib/’: No such file or directory
/usr/bin/env: “ruby”: No such file or directory

好像一切都坏了。
我已经做到了:https://github.com/rbenv/rbenv/issues/1067
看看我的~/.bashrc

...
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

在ruby构建之前,我还尝试运行此命令: source ~/.bashrc 我怎样才能解决它?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题