am1212
am1212

Reputation: 553

/usr/include folder missing in mac

I've tried pretty much everything on stackoverflow and other forums to get the /usr/include/ folder on my mac (currently using OS X 10.9.5)

  1. Re-installed Xcode and command line tools (actually, command line tool wasn't one of the downloads available - so I'm guessing it's was already downloaded)
  2. tried /Applications/Install Xcode.app command line on terminal

I haven't tested if there is no standard library on Xcode, but I'm only trying to build cloudera/hue from github and it won't install because there is no /usr/include/python2.7 (and couldn't really ask their forum because the error isn't coming from cloudera/hue).

How do I get the /usr/include folder?

Upvotes: 1

Views: 4914

Answers (2)

x545
x545

Reputation: 440

Try on 10.14:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

Upvotes: 4

mikezang
mikezang

Reputation: 2499

Try this

xcode-select --install

Upvotes: 2

Related Questions