How to install multiple ruby gems at once?

前端 未结 3 1683
长情又很酷
长情又很酷 2021-02-20 11:19

Is is possible to install more than one gem at the same time with only one command?

3条回答
  •  时光说笑
    2021-02-20 11:55

    You can put them in a Gemfile and use bundler (bundle install).

    Alternatively, you could list the commands in a file:

    gem install pg
    gem install sqlite3
    

    and use something like cat | xargs sudo to execute them.

    **Consider using RVM to manage your gems into gemsets rather than installing them globally with sudo.

提交回复
热议问题