Skip to content

MacOS 10.14 (Mojave) installation hassle #15

@laborleben

Description

@laborleben

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions