-
Notifications
You must be signed in to change notification settings - Fork 33
Description
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?