FLUKA: Flair:3.4 Operating system:MacOS Sequoia 15.5, Apple M2 Max
After many iterations I finally got geoviewer to compile and install on my Mac. geoviewer.so was moved to the flair directory as were fonts to the proper folder, etc. But when I opened a new terminal and issued the flair command, flair did open up with the following error message. I struggled to get my Mac configured properly to build all the code for my arm64 processors, and then it appears that flair itself is expecting them to be for x86_64. I downloaded the latest version of Flair … how can I resolve this?
flair-3.4 expecting x86_64 for geoviewer on arm64 Mac
w> Warning: Geometry Viewer not found
e> ERROR: dlopen(/Users/mehlhorn/Codes/flair-3.4/geoviewer.so, 0x0002): tried: ‘/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’)), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (no such file), ‘/Users/mehlhorn/Codes/flair-3.4/geoviewer.so’ (mach-o file, but is an incompatible architecture (have ‘arm64’, need ‘x86_64’))
Input files
there is no data or files to upload - I’m just trying to initiate the app without error.
Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)
(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % port echo requested
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
gcc14 @14.2.0_3+stdlib_flag
ghostscript @10.05.1_0+x11
gnuplot @6.0.3_0+aquaterm+luaterm+pangocairo+qt5+wxwidgets
py311-tkinter @3.11.13_0
python311 @3.11.13_0+lto+optimizations
tk @8.6.16_0+x11
xorg @20090316_0
xorg-server @1.20.11_1
xterm @398_0
(base) mehlhorn@ppdmehlhornlap flair-geoviewer-3.4 % port select -summary
Warning: No default port source specified in /opt/local/etc/macports/sources.conf, using last source as default
Usage: port
[-bcdfknNopqRstuvy] [-D portdir|portname] [-F cmdfile] action [actionflags]
[[portname|pseudo-portname|port-url] [@version] [±variant]… [option=value]…]…
You need to select the ports for gcc and python. Refer to the Instruction web page for more information.
Your PATH variable has anaconda at the beginning, which can cause conflicting Python modules from different Python installations. I recommend setting the environment variables in your shell configuration file. You can get inspiration from this thread.
Please let us know if you’ve solved the issue.
Best, Luigi