0

I am trying to install gem packages.

I am missing the macOS_SDK_headers_for_macOS_10.14.pkg file from /Library/Developer/CommandLineTools/Packages/. I found the link to download the .pkg, but I need an Apple Developer account, which costs $100 a year.

Is there anywhere on my system besides /Library/Developer/CommandLineTools/Packages/ that this file can be found? If not, is there a source where I don't have to pay $100? I just want to install a gem! I did try to use the locate command by the way.

  • Welcome to Ask Different :) What is the version of macOS that you are running? – Nimesh Neema Jun 23 at 22:02
  • 10.13.6 is my version. Sorry didn't respond. – Sushila Jyothi Lévêque Jun 23 at 22:35
  • Do you have Xcode or Command Line Tools installed? If yes, please mention the respective versions. – Nimesh Neema Jun 23 at 22:36
  • Yes, I have Xcode 9.4.1 and the latest command lines tools. – Sushila Jyothi Lévêque Jun 23 at 22:47
  • It would be hard to develop C programs without it (: – Sushila Jyothi Lévêque Jun 23 at 22:47
-1

Please consider using Homebrew to install rbenv instead of using system Ruby. Then configure it to your liking and get the gems you need. Please see this Homebrew, Ruby, and Gems article for details.


To install Homebrew, if you have not yet, or if you had trouble with it, please follow this Install homebrew on MacOS Mojave article or find a similar for your version of MACOS. The important thing is to agree to Command Line Tools License Agreement that may popup (or stay hidden?) in the middle of the install, and may prevent you from finishing the install.

  • 1
    I was more trying to install the headers to install gem packages. Thanks though. – Sushila Jyothi Lévêque Jun 23 at 23:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .