Geoviewer.so incompatible architecture

Dear experts,

I installed Fluka4-3.1 and Flair-3.2 in my new M2 MacBook Air, MaCOS Ventura 13.1
When running flair I got the below error and I can’t see the geometry of my simulation.

ERROR: dlopen(/Users/matteovolpi/flair-3.2/geoviewer.so, 0x0002): tried: ‘/Users/matteovolpi/flair-3.2/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/matteovolpi/flair-3.2/geoviewer.so’ (no such file), ‘/Users/matteovolpi/flair-3.2/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’))

Any suggestions ?

Thank you very much in advance.

Matteo

Dear @mvolpi

the message is weird.
You have a M2 processor, so the architecture is arm but the message reports that you need ‘x64’…
Have you followed the instructions here?
https://flair.web.cern.ch/flair/download.html
Or have you migrated the installation of your OS from a previous backup?

Cheers Luigi

Dear Luigi

Thank you for your help. I understand the steps now. I followed the web instructions to reinstall the latest versions after migrating from a previous MacBook backup. However, I’m not sure which parts I should delete and reinstall from scratch.
Could you please clarify this for me?

Thank you

Ciao Matteo

Dear @mvolpi ,

from your message, I understand that you have indeed migrated OSX from a previous (Intel) Mac.
In that case, I would remove the present installation of MacPorts
https://guide.macports.org/#installing.macports.uninstalling

and restart from step 2 of the instruction page
https://guide.macports.org/#installing.macports.uninstalling

Note that if XQuartz was installed as independent package, you don’t need to reinstall it.

For the ports installation, now it should be possible to install all dependencies needed

  • for Flair with
    sudo port install py3[version]-matplotlib +tkinter (I use [version]=10)
  • and for FLUKA compilation
    sudo port install gcc11
    sudo port select gcc mp-gcc11

Let us know if it works.

Cheers Luigi