Problem to install Nektar++ 5.0.1 in macOS Catalina 10.15.7
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Hello Nektar team, I'm brand new on Nektar++ community. I've been trying to install Nektar++ on my macOS Catalina 10.15.7 but nothing seems to work. I've taken a screenshot of the error message while I tried to configure Nektar dependencies following the user manual. I have installed the seven packages required using Homebrew, and additionally I have installed some other packages (METIS, FFTW, Open Cascade CE, Tetgen and Triangle). Not only that, but I've been trying to install the latest version of Nektar on my macOS, but I haven't succeeded. That's the main reason I have tried it with the 5.0.1 version. If someone has succeeded at installing Nektar++ in this macOS version, could you please tell me what you did so it can work? Any help will be extremely appreciated! Kind regards, Eduardo. PD: I suspected there is a problem among CMAKE Version 3.20.3 and BLAS/LAPACK packages. [image: Error message Nektar.png]
Hi Eduardo, Sorry to hear that you’re having problems building Nektar++ on Catalina 10.15. Thanks for providing details of your configuration and what you’ve installed. Building on macOS 10.15 is definitely possible - it looks like there are some minor issues with your configuration. Firstly, I note that you’re building with a few additional dependencies turned on. A basic build of Nektar++ on macOS with MPI support enabled should be straightforward - it looks like you have MPI installed and CMake is finding it. If you haven’t done so already, I’d recommend starting with a clean build configuration (remove the contents of the build directory that you have created to undertake the build), run “ccmake ../” and then set only NEKTAR_USE_MPI to “ON”. Press ‘c’ to configure (you’ll probably need to do this a couple of times) and then when the “Generate” option appears. Now press ‘g’ to generate and you should now have a valid build configuration generated. You should now be able to run "make -j4” and if the build is successful, “make -j4 install”. If this works, you will at least know that base configuration on your system is OK and you can successfully undertake a basic build. For the additional dependencies that you have enabled, if you want to use the mesh generation functionality in NekMesh, I’d focus on OpenCASCADE next, it looks like this is currently causing the build issue. If you’ve installed OCE via homebrew, I think the formula you want is “oce”. I would remove the package you installed that is providing "Open Cascade CE” and install “oce” which should install OCE 0.18.2. At the moment, from the information you provided, CMake is finding OCC 7.5.1. I would think this should work but I’ve always used OCE 0.17 or 0.18 and I note that the error from CMake is that it is looking for OCE and can’t find it. If you install OCE via homebrew, you should make sure that THIRDPARTY_BUILD_OCE is OFF, in your current configuration it is ON. The other option for OCE is to again remove your version of "Open Cascase CE” installed via homebrew (and also remove “oce” if you had that installed) and then set THIRDPARTY_BUILD_OCE to ON. This will download the source code for OCE 0.18 as part of the Nektar++ build and then build OCE from source. However, I don’t recommend this since it will take a long time to build - installing oce via homebrew is probably a better option. You also have NEKTAR_USE_OPENBLAS turned on. Do you specifically want to use OpenBLAS? If not, I’d turn this off. I would at least try and get the build working without OpenBLAS initially. The build should automatically pick up BLAS/LAPACK during the configure process. You also have NEKTAR_USE_ARPACK enabled. For ARPACK, either install ARPACK via homebrew and make sure THIRDPARTY_BUILD_ARPACK is OFF. Or, don’t install ARPACK via homebrew and set THIRDPARTY_BUILD_ARPACK to ON and ARPACK will be built from source during the Nektar++ build process. You shouldn’t need to change the THIRDPARTY_BUILD_… options other than perhaps turning on THIRDPARTY_BUILD_OCE if you haven’t installed oce via homebrew, and also setting THIRDPARTY_BUILD_ARPACK to ON if you want to build it from source. Otherwise, the values that CMAKE sets during the configure process should be OK, I think. I also don’t think you should need METIS or FFTW installed via homebrew, although having them present shouldn’t cause any issues. I hope this information helps you to make some progress but let us know if you are experiencing further errors. Kind regards, Jeremy
On 9 Jun 2021, at 19:14, Eduardo Lopez Bravo <eduardo@lopezbravo.com> wrote:
This email from eduardo@lopezbravo.com originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list <https://spam.ic.ac.uk/SpamConsole/Senders.aspx> to disable email stamping for this address.
Hello Nektar team,
I'm brand new on Nektar++ community. I've been trying to install Nektar++ on my macOS Catalina 10.15.7 but nothing seems to work. I've taken a screenshot of the error message while I tried to configure Nektar dependencies following the user manual. I have installed the seven packages required using Homebrew, and additionally I have installed some other packages (METIS, FFTW, Open Cascade CE, Tetgen and Triangle).
Not only that, but I've been trying to install the latest version of Nektar on my macOS, but I haven't succeeded. That's the main reason I have tried it with the 5.0.1 version.
If someone has succeeded at installing Nektar++ in this macOS version, could you please tell me what you did so it can work? Any help will be extremely appreciated!
Kind regards, Eduardo.
PD: I suspected there is a problem among CMAKE Version 3.20.3 and BLAS/LAPACK packages.
<Error message Nektar.png> <packages 1.png><packages 2.png>_______________________________________________ Nektar-users mailing list Nektar-users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
participants (2)
- 
                
                Eduardo Lopez Bravo
- 
                
                Jeremy Cohen