Can I install gems with apt-get on Ubuntu?

前端 未结 7 609
感情败类
感情败类 2021-02-02 07:27

I am new to Ruby and just diving in. The Ruby tutorial says I should get the packaging system from here: http://rubyforge.org/frs/?group_id=126

I am on Ubuntu Linux. The

相关标签:
7条回答
  • 2021-02-02 07:56

    For Ubuntu

    First install ruby:

    sudo apt install ruby
    

    Note that : sudo snap install ruby will throw this error :

    error: This revision of snap "ruby" was published using classic confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk.

       If you understand and want to proceed repeat the command including
       --classic.
    

    Finally, download latest tar version of ruby gems here: https://rubygems.org/pages/download

    Unzip and cd to the folder and finally type in terminal:

    sudo ruby setup.rb
    
    0 讨论(0)
提交回复
热议问题