Re: [fluka-discuss]: FLUKA installation problem

From: Alessandro <alex.calamida2_at_tiscalinet.it>
Date: Tue, 21 May 2019 19:31:27 +0200

Dear Horvàth,

I always used sudo. I have only one versione of gfortran on my PC. It
seems that the flufor is not passed to the make file. How can this happen?

Best regards, Alessandro Calamida.

Il 21/05/2019 19:28, Horváth Dávid ha scritto:
> Dear Alessandro,
>
> are you trying to run the make command with sudo?
>
> The issue should not be the FLUKA version, as there was no report of installation problem reported since it's release.
>
> FLUGFOR is an optional variable. It only needs to be set up if there are multiple gfortran versions available on the system, and the command gfortran doesn't point to the desired one.
>
> Kind regards,
> Dávid Horváth
>
> Junior Researcher
> Radiation Protection
> ELI Beamlines
>
> E: david.horvath_at_eli-beams.eu
> T: +420 266 051 283
> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>
>
> ________________________________________
> From: Alessandro <alex.calamida2_at_tiscalinet.it>
> Sent: 21 May 2019 19:09:45
> To: Horváth Dávid; fluka-discuss_at_fluka.org
> Subject: Re: [fluka-discuss]: FLUKA installation problem
>
> Dear Horvàth,
>
> The comand is written correcly. I make a bash file with 'echo FLUFOR'
> and it gave gfortran as result. So, I think the comand export FLUFOR is
> passed correcly to the program. Can it be an error of the
> fluka2011.2x-linux-gfor64bitAA.tar.gz version?
>
> Or the problem could be the gfortran8. I remember that I read that if
> you are using gfortran8 you have to insert even the comand
> 'FLUGFOR=version'. Is it true?
>
> Best regards, Alessandro Calamida.
>
> Il 21/05/2019 18:44, Horváth Dávid ha scritto:
>> Dear Alessandro,
>>
>> make sure you are that you are not including the apostrophes (') when you are issuing the command.
>> when everything is set up correctly, the
>>
>> echo $FLUFOR
>>
>> command in the terminal should return: gfortran
>>
>> Kind regards,
>> Dávid Horváth
>>
>> Junior Researcher
>> Radiation Protection
>> ELI Beamlines
>>
>> E: david.horvath_at_eli-beams.eu
>> T: +420 266 051 283
>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>
>>
>> ________________________________________
>> From: Alessandro <alex.calamida2_at_tiscalinet.it>
>> Sent: 21 May 2019 18:36:53
>> To: Horváth Dávid; fluka-discuss_at_fluka.org
>> Subject: Re: [fluka-discuss]: FLUKA installation problem
>>
>> Dear Horvàth,
>>
>> I tried but it did not work. It always gives me the same error. It tries
>> to use g77 but of course there is no one on the system. I rebooted the
>> system after the modification on the .bashrc file.
>>
>> It seems that this version of FLUKA does not recognize the 'export
>> FLUFOR=gfortran' comand. Maybe it is a bug of this version of FLUKA? The
>> version that I am using is this: fluka2011.2x-linux-gfor64bitAA.tar.gz
>>
>> Best regards, Alessandro Calamida.
>>
>> Il 21/05/2019 16:21, Horváth Dávid ha scritto:
>>> Dear Alessandro,
>>>
>>> to see the hidden files using the file browser, press Ctrl+H
>>> in the terminal you can list all files with 'ls -al'
>>>
>>> you need to add the following lines at the bottom:
>>>
>>> export FLUPRO=/home/alessandro/Desktop/FLUKA_2
>>> export FLUFOR=gfortran
>>>
>>> Kind regadrs,
>>> Dávid Horváth
>>>
>>> Junior Researcher
>>> Radiation Protection
>>> ELI Beamlines
>>>
>>> E: david.horvath_at_eli-beams.eu
>>> T: +420 266 051 283
>>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>>
>>>
>>> ________________________________________
>>> From: Alessandro <alex.calamida2_at_tiscalinet.it>
>>> Sent: 21 May 2019 16:11:22
>>> To: Horváth Dávid; fluka-discuss_at_fluka.org
>>> Subject: Re: [fluka-discuss]: FLUKA installation problem
>>>
>>> Dear Horvàth,
>>>
>>> I really do not know how to find the .bashrc file. I am not a usual
>>> ubuntu user. So, where can I find it and what I have to change?
>>>
>>> The last time FLUKA compiles succesfully. It was the old version of it.
>>> Maybe the error happened but FLUKA compile itself anymay. With flair on
>>> a server, the compilation gave me an error but it work perfectly.
>>>
>>> Best regards, Alessandro Calamida.
>>> Il 21/05/2019 16:02, Horváth Dávid ha scritto:
>>>> Dear Alessandro,
>>>>
>>>> It is strange to me, that you didn't encounter this problem on a different Ubuntu machine. Probably the error was there, but FLUKA compiled successfully.
>>>>
>>>> It doesn't matter if you are using Ubuntu 18.xx, the solution still applies.
>>>>
>>>> The .bashrc is a hidden file in you home directory. The commands contained in it are run automatically when you log in or open a new terminal window.
>>>>
>>>> Kind regards,
>>>> David
>>>>
>>>> ---
>>>>
>>>> Dávid Horváth
>>>>
>>>> Junior Researcher
>>>> Radiation Protection
>>>> ELI Beamlines
>>>>
>>>> E: david.horvath_at_eli-beams.eu
>>>> T: +420 266 051 283
>>>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>>>
>>>>
>>>> ________________________________________
>>>> From: Alessandro <alex.calamida2_at_tiscalinet.it>
>>>> Sent: 21 May 2019 15:48:21
>>>> To: Horváth Dávid; fluka-discuss_at_fluka.org
>>>> Subject: Re: [fluka-discuss]: FLUKA installation problem
>>>>
>>>> Dear Horvàth,
>>>>
>>>> When I istalled FLUKA in January I had no problem with the compability
>>>> with Ubuntu. I will also try the fix discussed in the discussion you
>>>> posted. I have Ubuntu18 and not 16. Should not this cause a problem?
>>>>
>>>> I cannot find the .bashrc file, is it a FLUKA file or a system one?
>>>>
>>>> Best regards, Alessandro Calamida.
>>>>
>>>> Il 21/05/2019 14:53, Horváth Dávid ha scritto:
>>>>> Dear Alessandro,
>>>>>
>>>>> the best option is to edit your .bashrc file, and add the 'export FLUFOR=gfortran' just after the line for FLUPRO. Then log out from Linux and log back in, to finalize the change.
>>>>>
>>>>> But there is a different error as well. It seems you are using a Ubuntu, which uses uses "dash" instead of "bash" when the "sh" shell is used by a script. Unfortunately they are not fully compatible.
>>>>>
>>>>> You can resolve the issue as shown here:
>>>>> http://www.fluka.org/web_archive/earchive/new-fluka-discuss/13244.html
>>>>>
>>>>> The difference in the minor version number of gfortran (8.2 vs 8.3) shouldn't cause any problem.
>>>>>
>>>>> Kind regards,
>>>>> Dávid Horváth
>>>>>
>>>>> Junior Researcher
>>>>> Radiation Protection
>>>>> ELI Beamlines
>>>>>
>>>>> E: david.horvath_at_eli-beams.eu
>>>>> T: +420 266 051 283
>>>>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>>>>
>>>>>
>>>>> ________________________________________
>>>>> From: Alessandro <alex.calamida2_at_tiscalinet.it>
>>>>> Sent: 21 May 2019 14:36:21
>>>>> To: Horváth Dávid; fluka-discuss_at_fluka.org
>>>>> Subject: Re: [fluka-discuss]: FLUKA installation problem
>>>>>
>>>>> Dear Horvath,
>>>>>
>>>>> I have used the comand 'export FLUFOR=gfortran'. It seems that this is
>>>>> the errors but I do not understand why this happens. This is the full
>>>>> script:
>>>>>
>>>>> FLUPRO=/home/alessandro/Desktop/FLUKA_2 flutil/lfluka -o flukahp -m fluka
>>>>> $FLUPRO = /home/alessandro/Desktop/FLUKA_2
>>>>> now linking
>>>>> /home/alessandro/Desktop/FLUKA_2
>>>>> g77
>>>>> ar x /home/alessandro/Desktop/FLUKA_2/libflukahp.a fluka.o
>>>>> rm: cannot remove 'flukahp.map': No such file or directory
>>>>> g77 -m32 -mcpu=pentiumpro -O3 -g -fexpensive-optimizations
>>>>> -funroll-loops -fstrength-reduce -Wall -fno-automatic -fno-silent
>>>>> -ffortran-bounds-check -I/home/alessandro/Desktop/FLUKA_2/flukapro -v -o
>>>>> flukahp -Xlinker -Map -Xlinker flukahp.map fluka.o
>>>>> -L/home/alessandro/Desktop/FLUKA_2 -lflukahp
>>>>> flutil/lfluka: 157: flutil/lfluka: g77: not found
>>>>> cd flutil; FLUPRO=/home/alessandro/Desktop/FLUKA_2 make all; cd ..
>>>>> make[1]: Entering directory '/home/alessandro/Desktop/FLUKA_2/flutil'
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff -N actdline.f
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 119:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: [[: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 129:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: g77: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff -N hpadd.f
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 119:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: [[: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 129:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: g77: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff -N hpc.f
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 119:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: [[: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 129:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: g77: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff -N hpfor.f
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 119:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: [[: not found
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: 129:
>>>>> /home/alessandro/Desktop/FLUKA_2/flutil/fff: g77: not found
>>>>> gfortran -o actdline actdline.o
>>>>> gfortran: error: actdline.o: No such file or directory
>>>>> make[1]: *** [makefile:61: actdline] Error 1
>>>>> make[1]: Leaving directory '/home/alessandro/Desktop/FLUKA_2/flutil'
>>>>>
>>>>> I have gfotran 8.2 and I have dowloaded the version for linux at 64 bit
>>>>> for gfotran8. Could the use of gfortran8 be the cause of the problems?
>>>>> Have I to use a comand after FLUFOR to choose the right version of gfortran?
>>>>>
>>>>> Best regards, Alessandro Calamida.
>>>>>
>>>>> Il 21/05/2019 13:59, Horváth Dávid ha scritto:
>>>>>> Dear Alessandro,
>>>>>>
>>>>>> without the full error message is hard to tell, but it seems, that the FLUFOR variable is not set correctly. Use the 'export FLUFOR=gfortran' command to set if for gfortran.
>>>>>> Before running 'make', run 'make clean' to remove any remaining files from the failed compilation.
>>>>>>
>>>>>> Dávid Horváth
>>>>>>
>>>>>> Junior Researcher
>>>>>> Radiation Protection
>>>>>> ELI Beamlines
>>>>>>
>>>>>> E: david.horvath_at_eli-beams.eu
>>>>>> T: +420 266 051 283
>>>>>> M: Za Radnicí 835, 25241 Dolní Břežany, Czech Republic
>>>>>>
>>>>>>
>>>>>> ________________________________________
>>>>>> From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of Alessandro <alex.calamida2_at_tiscalinet.it>
>>>>>> Sent: 21 May 2019 13:04:22
>>>>>> To: fluka-discuss_at_fluka.org
>>>>>> Subject: [fluka-discuss]: FLUKA installation problem
>>>>>>
>>>>>> Dear FLUKA experts,
>>>>>>
>>>>>> I am trying to install the new version of FLUKA. I need the linux
>>>>>> version at 64 bit for gfortran8. I follow all the passage but then I
>>>>>> have this error: 'gfortran: error: actdline.o: No such file or
>>>>>> directory'. I read that is needed gfortran8.3 but I tried to update my
>>>>>> gfortran8.2 but the system told me that it is already the newest version.
>>>>>>
>>>>>> How can I solve this problem? There are other comands to use?
>>>>>>
>>>>>> This is already the fourt time that I install FLUKA but it is the first
>>>>>> one that I encounter this kind of error.
>>>>>>
>>>>>> Best regards, Alessandro Calamida.
>>>>>>
>>>>>> __________________________________________________________________________
>>>>>> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>>>>>>
>>>>>>
>>>>>> ---
>>>>>> Questa email è stata esaminata alla ricerca di virus da AVG.
>>>>>> http://www.avg.com
>>>>>>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue May 21 2019 - 20:33:12 CEST

This archive was generated by hypermail 2.3.0 : Tue May 21 2019 - 20:33:13 CEST