Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS 10.14 (Mojave) installation hassle #15

Open
laborleben opened this issue Jun 25, 2019 · 1 comment
Open

MacOS 10.14 (Mojave) installation hassle #15

laborleben opened this issue Jun 25, 2019 · 1 comment

Comments

@laborleben
Copy link
Collaborator

laborleben commented Jun 25, 2019

I'll leave this here until documentation is added or setup.py is modified:

Install Xcode via App Store
Afterwards, install Command Line Tools and header files. For that, launch Terminal and run

xcode-select --install
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

Afterwards use the following commands to properly install pyLandau:

export MACOSX_DEPLOYMENT_TARGET=10.14

and then (LLVM on macOS no longer supports libstdc++)

CFLAGS='-stdlib=libc++' pip install .

or for developers

CFLAGS='-stdlib=libc++' pip install -e .

The installation was successfully carried out on MacOS 10.14.5 (Mojave) with Anaconda Python and having the required packages installed.

References:

  1. Xcode 10.1 error when compiling C++ files cython/cython#2694
  2. https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave
@laborleben
Copy link
Collaborator Author

I uploaded py27 & py37 wheels for macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant