Is is possible to install more than one gem at the same time with only one command?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- ruby - simplify string multiply concatenation
You can using bundler: http://gembundler.com/
You can put them in a
Gemfile
and use bundler (bundle install
).Alternatively, you could list the commands in a file:
and use something like
cat <filename> | xargs sudo
to execute them.**Consider using RVM to manage your gems into gemsets rather than installing them globally with sudo.
The
gem install
command accepts many parameters, so you cangem install nokogiri bundler
in one shot, for instance.As others said, Bundler and RVM makes everything connected to managing gems, versions and dependencies a real pleasure.