Gem Command not found

前端 未结 14 1115
春和景丽
春和景丽 2021-01-30 08:21

I have installed gem on Ubuntu 10.10 32 bit with

apt-get install gem -y

But when I try to run

gem install something.gem


        
相关标签:
14条回答
  • 2021-01-30 08:36

    On Debian, Ubuntu or Linux Mint:

    $ sudo apt-get install rubygems ruby-dev
    

    On CentOS, Fedora or RHEL:

    $ sudo yum install rubygems ruby-devel
    
    0 讨论(0)
  • 2021-01-30 08:38

    I know this is kind of late for a response. But I did run into this error and I found a solution here: https://rvm.io/integration/gnome-terminal

    You just have to enable 'Run command as login shell' under the terminal preferences.

    0 讨论(0)
  • 2021-01-30 08:42

    try

    $ /usr/bin/pd-gem

    or

    $ pd-gem

    0 讨论(0)
  • 2021-01-30 08:44

    On CentOS 7 you can do:

    yum -y install rubygems-devel

    That worked for me.

    0 讨论(0)
  • 2021-01-30 08:44

    On Ubuntu 14.04,

    apt-get install ruby ruby-dev

    this will install gem for you.

    0 讨论(0)
  • 2021-01-30 08:44

    I had the same problem. What I did was:

    sudo apt-get update
    

    And then reinstall ruby-full

    sudo apt-get install ruby-full
    
    0 讨论(0)
提交回复
热议问题