Installing on Mac / ARM Processors #896
mkasemer
started this conversation in
Show and tell
Replies: 1 comment 6 replies
-
@mkasemer - Thanks. It would be very interesting to convert this into a tutorial, as was done for Installing Neper on Ubuntu 22, so that users can find it more easily. Would also be interesting to loop with @mechlin maybe, who has tried a lot in the past months. I myself have a 2024 M3 Macbook Air at hand and could try to follow such a (much needed) tutorial. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There have been sporadic discussion questions regarding installation on newer Mac computers with ARM processors. I had to do this recently on a 2023 MacBook Pro with an M3 Max processor (14 core) running macOS Sonoma 14.5, and decided to summarize the process here since it can be relatively straightforward. I think this should also work for older M1 and M2 processors. The big trick is that the default system compilers are ill-suited and don't play well with OpenMP. So, if you ever want to run in parallel, you'll have to use different compilers. I recommend LLVM.
To begin, be sure to install
gsl
,libomp
, andllvm
. This is easiest via brew:Next, set some environment variables. I suggest to add these to your '~/.zshrc` file so you only have to do it once:
This is where brew will install
llvm
by default. If you choose to install yourself or install to a different directory, set the paths appropriately. If you add these to your~/.zshrc
file, be sure tosource ~/.zshrc
to activate these variables.Finally, install via the normal method. In the
neper
directory:I'll note that some tests will fail across all modules (T, M, V), but that's for a different discussion. This will at least get you operational, albeit with some potentially reduced functionality. As always, if you want the best experience, I suggest Ubuntu or other similar Linux distributions. However, it is ostensibly a full install:
Beta Was this translation helpful? Give feedback.
All reactions