bundler.io
Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.
Bundler is an exit from dependency hell, and ensures that the gems you need are present in development, staging, and production.
Specify your dependencies in a Gemfile in your project’s root:
1
2
3
4
source 'https://rubygems.org'
gem 'nokogiri'
gem 'rack', '~> 2.2.4'
gem 'rspec'
bundle install
1
2
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::GenericSystemCallError There was an error accessing `/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/colorator-1.1.0.gem`.
The underlying system error is Errno::EPERM: Operation not permitted @ rb_sysopen - /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/cache/colorator-1.1.0.gem
bundle env
Bundler 2.4.4
Platforms ruby, arm64-darwin-22
Ruby 2.6.10p210 (2022-04-12 revision 67958) [arm64-darwin-22]
Full Path /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Config Dir /Library/Ruby/Site
RubyGems 3.4.4
Gem Home /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0
Gem Path /Users/fozu/.gem/ruby/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0
User Home /Users/fozu
User Path /Users/fozu/.gem/ruby/2.6.0
Bin Dir /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin
Tools
Git 2.38.1
RVM not installed
rbenv not installed
chruby not installed