I have completed the installation of the Fluka libraries on my Mac Intel. At the end of the installation the software executables are correctly created, but I receive an error message on the terminal that is the following:
I don’t know from where are you seeing that I am using clang and not gcc, anyway is this related to the error that I get in the installation of the Fluka software?
when I digit “which gcc” on terminal I get “/usr/bin/gcc”. Should I change from clang compiler to gcc compiler and reinstall the software’s libraries? If so do you know how to set the gcc compiler as the default one in Mac?
yes as recommended from the installation instructions of the Fluka software I have installed gcc from MacPorts with the following command from terminal: “sudo port install gcc11”.
the output of the command echo $PATH is the following: “/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin”
Do you know how to reinstall the software’s libraries without errors?
I have already remade the installation of the Fluka libraries without errors. I have deleted the errors substituting the clang compiler with the gcc11 compiler that I have installed on the Mac. I write to you in the following, the command lines that I have written on the terminal to reinstall the libraries.
These are the command lines to substitute the clang compiler with the gcc11 compiler
"
port select --list gcc
Available versions for gcc:
mp-gcc11
none
sudo port select --set gcc mp-gcc11
Password:
Selecting ‘mp-gcc11’ for ‘gcc’ succeeded. ‘mp-gcc11’ is now active.
"
Once the gcc11 compiler is actived as default compiler, I go in the directory /pathtofluka/src/ and I type the following command lines:
"
make clean
make
"
After the operation is completed there are no errors displayed in the terminal, therefore the installation of the libraries is completed correctly.