Skip to content

Running on Apple M3: compiler error #31

Description

@nebblu

I have recently worked through getting the code to run on a Macbook Air M3 with Sequoia 15.3.2. I first installed sundials and gsl using

brew install sundials
brew install gsl

The initial error was the c compiler not being recognised when running

python setup.py develop

Image

This was then fixed by adding the gsl paths to the pyreact/Makefile (see attached) and exporting the paths to the clang compiler

export CXX=/usr/bin/clang++
export CC=/usr/bin/clang

To run the example filers in reactions/examples you also need to add the gsl paths to the compilation command:

g++ -I/opt/homebrew/Cellar/gsl/2.8/include -I/Users/bbose/Desktop/cosmo_codes/react/reactions/include -L/Users/bbose/Desktop/cosmo_codes/react/reactions/lib -L/opt/homebrew/Cellar/gsl/2.8/lib spt.cpp -lgsl -lcopter

or export them.

Makefile.txt

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions