Bundle install is not working Bundle install is not working ruby ruby

Bundle install is not working


Open the Gemfile and change first line from this

source 'https://www.rubygems.org'

to this

source 'http://www.rubygems.org'

remove the 's' from 'https'.


As @Wasif mentioned, first make sure the Ruby Gems site is up and your network access is ok.

If they works fine, try it like this:

  • First, delete your Gemfile.lock file

  • Then run gem update --system

  • Then in your Gemfile try changing the first line source'https://rubygems.org'to http:// (without an s)

Unless there is a problem with your connectivity this should fix the issue with bundle install.


I resolve this issue disabling the IPv6 connections in my system OS. It forces the OS just use the IPv4 and then it works.

If your active network is WiFi enter the following command:

networksetup -setv6off Wi-Fi

If you are on Ethernet:

networksetup -setv6off Ethernet

You may combine both of commands to disable IPv6 on WiFi and Ethernet at the same time:

networksetup -setv6off Ethernet && networksetup -setv6off Wi-Fi

To re-enable IPv6, you need to replace setv6off to setv6automatic (the default state in macOS), for example:

networksetup -setv6automatic Wi-Fi && networksetup -setv6automatic Ethernet

reference: https://vladtalks.tech/vpn/how-to-disable-ipv6-on-mac