Open serhiip opened 4 years ago
I got there with: nix-shell -p darwin.apple_sdk.frameworks.CoreServices -p darwin.objc4.all -p darwin.apple_sdk.frameworks.Cocoa
Apologies for this being a Nix-only solution, but it should give you some idea.
Does anyone still see this problem? I've never encountered it (I get my GHC installs from GHCup usually).
I still see this, but I don't only see this in haskell, but in other languages for similar packages too, so I think it's an environment problem. And the solution with nix shell works for me still.
I'm still interested in learning how to reproduce this, since I don't see it here with my ghcup based install.
I believe this is related to the fact that I never installed xcode. When looking for similar errors online, they all are resolved by installing xcode/command line tools or running xcode-select. Examples:
I am facing an above issue when running
cabal install hfsevents
. This is very similar to #3Error message I get:
I have Xcode freshly installed and I am able to locate header file at
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/CoreServices.h
but defining this env var (in my .zshrc) like this doesn't help
UPD: log of cabal install with -v3 https://pastebin.com/FDygnfQB