[esp-r] Re: Installing esp-r on recent MacOS

Lars O. Grobe grobe at gmx.net
Fri Sep 2 16:14:50 BST 2022


Dear Jon,


thank you for sharing that script! I just had to remove "stats" from the
list of programs. The training models also trigger an error, but without
installing those I get the binaries and have prj starting. Next is
testing the functionality of the new installation.


Best, Lars.


Am 01.09.22 um 20:02 schrieb Jon Hand:
> About Lars email about getting ESP-r running on a M1 Mac...
>
> I attach an alternative Install script which I used on my M1 MacBook Air.
> Note: there are issues with some of the user dialogs when running in
> graphics mode. It is best to stick to running in text mode until I
> sort that issue.
>
> Also avoid the --extra_debug option in the installer if you plan
> on running any CFD.
>
> It is seriously a lot faster than my Intel Mac, or my Dell desktop
> up at the office.
>
> Note:  I also have found a way to run Linux within OSX on the M1
> and you can do ESP-r within that just fine (but not quite as fast
> as native M1 ESP-r).  If anyone wants to know about that I
> can supply directives.
>
> -Jon Hand
>
> ------------------------------------------------------------------------
> *From:* esp-r-bounces at lists.strath.ac.uk
> <esp-r-bounces at lists.strath.ac.uk> on behalf of Lars O. Grobe
> <grobe at gmx.net>
> *Sent:* 24 August 2022 18:23
> *To:* esp-r at lists.strath.ac.uk <esp-r at lists.strath.ac.uk>
> *Subject:* [esp-r] Installing esp-r on recent MacOS
> Dear all,
>
> I just attempted to install the current version on a M1-driven Macbook
> with macOS 12.5.1. I have macports installed and a gcc12 environment.
>
> The Install-script does not know yet about Apple's architecture change
> and proposes an x64 install. I further assumes to find includes in /usr,
> and a dedicated X11 directory where lib and include are searched.
>
> Currently I can hardly imagine anyone compiling and installing
> X11/GTK-based software in a macOS environment without macports or
> homebrew. These, however, install in /opt/local (macports) or
> /usr/local/opt (homebrew).
>
> Another, maybe more sever problem is that the fortran compile-option
> -mcmodel=medium is not supported on the M1 architecture. After setting
> it to small, I managed to get the binaries compiled but the initial ish
> calculations do not complete even after several hours.
>
> Furthermore, I got a message
> "ESP-r_V13.3.14_Src/models/training/cg_ctl/daylit_coef/cfg: No such file
> or directory".
>
> How can I provide some useful input for getting the compilation running
> on macOS? Should I try to "fix" the Install-script and share a patch?
>
> Best, Lars.
>
>
> _______________________________________________
> esp-r mailing list
> esp-r at lists.strath.ac.uk
> http://lists.strath.ac.uk/mailman/listinfo/esp-r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.strath.ac.uk/archives/esp-r/attachments/20220902/2fa5b918/attachment.html 


More information about the esp-r mailing list