Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

Bundle install errors on MacOS

Malcolm

Administrator
Administrator
Staff Team
Code Plus
Company Plus
Hi folks,

I'm running into issues using bundle install on MacOS, and I wonder if anyone has any suggestions on fixing these errors.
  • An error occurred while installing msgpack (1.7.2), and Bundler cannot continue.
  • An error occurred while installing puma (5.6.6), and Bundler cannot continue.
Any help would be greatly appreciated!
 
Solution
Okay, so it looks like I needed to accept Xcode's license. Here's the command that I used:

Bash:
sudo xcodebuild -license
and accept the license.

Then I ran:
Bash:
bundle install

Everything worked after that, and I was able to start the server with no problem.
Hi folks,

I'm running into issues using bundle install on MacOS, and I wonder if anyone has any suggestions on fixing these errors.
  • An error occurred while installing msgpack (1.7.2), and Bundler cannot continue.
  • An error occurred while installing puma (5.6.6), and Bundler cannot continue.
Any help would be greatly appreciated!
Your issue here is you're running it on MacOS 😂
 
Hey Mate,

Bummer about the bundle install issues, but let’s try to troubleshoot it together! 🛠️

  1. System Setup Check: Ensure Xcode Command Line Tools are installed and updated since some gems need to compile native extensions:

Code:
xcode-select --install

  1. Fresh Start: Try deleting your Gemfile.lock and running the install again to resolve dependencies anew:

Code:
rm Gemfile.lock
bundle install

  1. Specific Gem Troubleshooting: Install the problematic gems separately to possibly get more detailed error messages or even solve the issue outright:

Code:
gem install msgpack -v '1.7.2'
gem install puma -v '5.6.6'

If you see specific error messages during this, they might be key to resolving the issue.

  1. Bundler Version: Make sure your bundler version is compatible with your Ruby version.

Code:
gem install bundler

And then attempt to install the gems again:


Code:
bundle install

  1. Ruby & macOS Version: Knowing your versions can assist in checking for compatibility issues. Provide outputs of:
  • Ruby:

Code:
ruby -v

  • Bundler:

Code:
bundle -v

  • macOS: Click on the Apple icon in the top-left corner > About This Mac
 
Okay, so it looks like I needed to accept Xcode's license. Here's the command that I used:

Bash:
sudo xcodebuild -license
and accept the license.

Then I ran:
Bash:
bundle install

Everything worked after that, and I was able to start the server with no problem.
 
Solution

New Threads

Buy us a coffee!

Back
Top Bottom