문제

I have installed ruby 2.1.1 using

 \curl -L https://get.rvm.io |    bash -s stable --ruby --autolibs=enable --auto-dotfiles

the following is my console log

dax@administrator:~$ rvm list

rvm rubies

=* ruby-2.1.1 [ i686 ]

# => - current
# =* - current && default
#  * - default

dax@administrator:~$ sudo gem install warbler -v=1.3.2
[sudo] password for dax: 
ERROR:  Error installing warbler:
    rubyzip requires Ruby version >= 1.9.2.

dax@administrator:~$ rvm use 2.1.1
Using /home/dax/.rvm/gems/ruby-2.1.1

dax@administrator:~$ sudo gem install warbler -v=1.3.2
ERROR:  Error installing warbler:
rubyzip requires Ruby version >= 1.9.2.

although it shows ruby 2.1.1, warbler is not using ?

도움이 되었습니까?

해결책

When you use sudo, this will use the system's gem command, which is probably 1.8.7 or so. You'll likely want to gem install without sudo.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top