From luis.cana at ulpgc.es Mon Oct 10 09:43:18 2022 From: luis.cana at ulpgc.es (=?Windows-1252?Q?Luis_Ces=E1reo_Cana_Cascallar?=) Date: Mon, 10 Oct 2022 15:43:18 +0000 Subject: [ncl-install] NCL conda for OSX-Arm64 Message-ID: Hi all, I?m trying to install ncl in a MBP with the latest arm64 processor (M2). I?ve tried all possible tricks to install it, including the following: conda install -c conda-forge ncl conda install -c "conda-forge/label/broken" ncl conda install -c "conda-forge/label/cf201901" ncl conda install -c "conda-forge/label/cf202003" ncl conda install -c "conda-forge/label/dev" ncl without success (PackagesNotFoundError: The following packages are not available from current channels) Are there plans to build a last version for arm64? If not, should we move to the python environment? Best, Luis Luis C Cana Cascallar Profesor Titular / Senior Lecturer Departamento de F?sica Universidad de Las Palmas de Gran Canaria tel. 928454523 luis.cana at ulpgc.es www.ulpgc.es ORCID 0000-0001-6006-5488 EDIFICIO DE CC B?SICAS ? CAMPUS DE TAFIRA 35001 ? LAS PALMAS DE GRAN CANARIA ? ESPA?A/SPAIN [0NT+Br2Am8wAAAAAElFTkSuQmCC] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 8359 bytes Desc: image001.png URL: From ted.mansell at noaa.gov Mon Oct 10 11:05:20 2022 From: ted.mansell at noaa.gov (Ted Mansell - NOAA Federal) Date: Mon, 10 Oct 2022 12:05:20 -0500 Subject: [ncl-install] NCL conda for OSX-Arm64 In-Reply-To: References: Message-ID: Luis, You can try a precompiled binary from https://www.earthsystemgrid.org/dataset/ncl.html and run in rosetta2. The old 6.0.0 seems to work for me, but I haven't tested it too much. The last version there (6.6.2) fails because it is not fully static and needs specific dynamic libraries for x86 (libomp, libgfortran.4). Somewhere in between may work, as well. I don't know if the homebrew install works on M1 -- I suspect not unless it installs x86 libs as well (It just downloads the 6.6.2 binary). There are gfortran binaries for x86 at https://hpc.sourceforge.net that should have those libs. Or there may well be another solution. The time I have spent on it has been to try to compile from scratch. The ncarg libraries can compile and work on M1, but I haven't gotten a working ncl (it builds but has a seg fault when it runs). I opened a github pull request to try to get some help to move that along. Unfortunately it is legacy software without any support. cheers, -- Ted ___________________________________________________ | Edward Mansell (he/him/his) | National Severe Storms Laboratory | 120 David L. Boren Blvd. | Norman, OK 73072 | |------------------------------------------------------------------------------------ | | "The contents of this message are mine personally and | do not reflect any position of the U.S. Government or NOAA." | |------------------------------------------------------------------------------------ > On Oct 10, 2022, at 10:43 AM, Luis Ces?reo Cana Cascallar via ncl-install wrote: > > Hi all, > I?m trying to install ncl in a MBP with the latest arm64 processor (M2). I?ve tried all possible tricks to install it, including the following: > > conda install -c conda-forge ncl > conda install -c "conda-forge/label/broken" ncl > conda install -c "conda-forge/label/cf201901" ncl > conda install -c "conda-forge/label/cf202003" ncl > conda install -c "conda-forge/label/dev" ncl > > without success (PackagesNotFoundError: The following packages are not available from current channels) > > Are there plans to build a last version for arm64? If not, should we move to the python environment? > Best, > Luis > > Luis C Cana Cascallar > Profesor Titular / Senior Lecturer > > Departamento de F?sica > Universidad de Las Palmas de Gran Canaria > > tel. 928454523 > luis.cana at ulpgc.es > www.ulpgc.es > ORCID 0000-0001-6006-5488 > > > EDIFICIO DE CC B?SICAS ? CAMPUS DE TAFIRA > 35001 ? LAS PALMAS DE GRAN CANARIA ? ESPA?A/SPAIN > > > > _______________________________________________ > ncl-install mailing list > List instructions, subscriber options, unsubscribe: > https://mailman.ucar.edu/mailman/listinfo/ncl-install From ted.mansell at noaa.gov Sun Oct 16 21:55:46 2022 From: ted.mansell at noaa.gov (Ted Mansell - NOAA Federal) Date: Sun, 16 Oct 2022 22:55:46 -0500 Subject: [ncl-install] NCL conda for OSX-Arm64 In-Reply-To: References: Message-ID: <70F257E2-32DC-43FE-A4A1-42C20D3D1E86@noaa.gov> I got a working native ncl on M1 using GCC-12 and homebrew. (I did not include hdf4 or grib, however.) It involves a little hack to solve an issue of calling fortran from C, though I'm sure there's a better fix. There's a pull request at https://github.com/NCAR/ncl/pull/191 -- improvements are very welcome. -- Ted