Can I install gems with apt-get on Ubuntu?

前端 未结 7 625
感情败类
感情败类 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:50

    For me in Ubuntu 20.04 I did 3 things to create a new Ruby and Rails app.

    1. Install Ruby development version
    sudo apt install ruby-dev
    
    1. Install rails from gem
    sudo gem install rails 
    
    1. Create new application
    rails new blog
    

    I got error while installing rails(sudo apt install rails) only, So I installed devlopment version. I got permission related error while not using Sudo as well while installing gems and rails.

提交回复
热议问题