Skip to content

Issue Installing on Mac M2 #96

@etjens

Description

@etjens

Good afternoon, I have a new Mac M2 that I am trying to install Refprop on. I initially tried to do the install with the arm64 version of gfortran, cmake, python etc. It appeared to work during the initial install but then threw errors when I tried to run REFPROP in python at the line RP = REFPROPFunctionLibrary(os.environ['RPPREFIX']), the error was something like: mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)).

I then installed x86_64 versions of homebrew, cmake, and gfortran (but did not change python). I am running into issues though as when I use the directed command it still directs to the arm64 version of gfortran:
/usr/local/bin/cmake .. -DCMAKE_FORTRAN_COMPILER=/usr/local/bin/gfortran -DREFPROP_X8664=ON
It produces the following:
-- Check for working Fortran compiler: /opt/homebrew/bin/gfortran - skipped

I have two questions: 1. is there a way to compile and run REFPROP using arm64? and 2. If not, can you please advise how to direct the installation to use the x86_64 version of gfortran?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions