gpt4 book ai didi

ruby-on-rails - Gem::InstallError: celluloid 需要 Ruby 版本 >= 1.9.2

转载 作者:数据小太阳 更新时间:2023-10-29 07:07:33 24 4
gpt4 key购买 nike

我正在尝试安装 GitLab CI,但出现此错误。

Gem::InstallError: celluloid requires Ruby version >= 1.9.2.
An error occurred while installing celluloid (0.12.4), and Bundler cannot continue.
Make sure that `gem install celluloid -v '0.12.4'` succeeds before bundling.

但是,我认为我的 ruby 是最新的。

# ruby --version
ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux]

# ls -l /usr/bin/ruby
lrwxrwxrwx 1 root root 22 Jan 26 11:20 /usr/bin/ruby -> /etc/alternatives/ruby

# ls -l /etc/alternatives/ruby
lrwxrwxrwx 1 root root 18 Jan 26 12:17 /etc/alternatives/ruby -> /usr/bin/ruby1.9.3

# rvm list
rvm rubies
=* ruby-1.9.3-p286 [ i686 ]

# which bundle
/usr/local/rvm/gems/ruby-1.9.3-p286@global/bin/bundle

# which gem
/usr/local/rvm/rubies/ruby-1.9.3-p286/bin/gem

知道我这里有什么问题吗......?

最佳答案

很可能,您的 bundlergem CLI 工具与 Ruby 1.8 的安装相关联。

看看哪个bundle哪个gem;并检查这些文件 - 默认情况下它们是指向特定 ruby​​ 安装的。

(您可能需要为当前的 ruby​​ 版本安装 bundler )

关于ruby-on-rails - Gem::InstallError: celluloid 需要 Ruby 版本 >= 1.9.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14533893/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com