Re: [fluka-discuss]: FLUKA_x86_64-version_installation Problem

From: anuj <anuj_at_crl.tifr.res.in>
Date: Sat, 22 Mar 2014 11:13:10 +0530

Hii,

Thanx for your suggestions and time, now both of the versions I could able to install.

Thanx once again.


On Fri, 21 Mar 2014 13:30:37 +0100, Vittorio Boccone wrote
> Ciao Anuj,
> there is no discrepancy. You need to take your time to read the page I
> send you, not to just execute the commands blindly.
>
> > Developer Toolset is an offering for developers on the Scientific Linux
> > CERN 5 and 6 platforms. Using a framework called Software Collections, an
> > additional set of tools is installed into the /opt directory, as
> > recommended by the UNIX Filesystem Hierarchy Standard. These tools are
> > enabled by the user on demand using the supplied *scl* utility.
>
> The devtoolset install an additional compiler which can be enabled in the
> terminal (current session) by writing
> scl enable devtoolset-1.1 bash
> then you will have access to the gfortran version 4.7 which is placed in a
> different directory of the system.
>
> It is very dangerous to change the system compiler as most of the programs
> are based on that, therefore the RedHat like distribution have introduced
> the devtoolset concept..
>
> In some other system they solved the problem renaming the compilers i.e.
> gfortran version 4.4 is called with gfortran44 and so on... But this not
> your case.
>
> Best,
> V.
>
> On Fri, Mar 21, 2014 at 12:59 PM, anuj <anuj_at_crl.tifr.res.in> wrote:
>
> >
> > Thank You for your kind help, because of what I could be able to remove
> > environment
> > variable definition. As per your suggestions, I have installed
> > devtoolset-1.0 by having
> > root user terminal. It is showing the success for installation the
> > devtoolset-1.0 after
> > hitting gcc --version in root sessioned terminal it is showing the updated
> > version like:
> >
> > [root_at_G3-001 ~]# gcc --version
> > gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
> > Copyright (C) 2012 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions. There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> >
> > [root_at_G3-001 ~]#
> >
> > But in normal sessioned terminal it showing me the older packages
> > installed like:
> >
> > [anuj_at_G3-001 ~]$ gcc --version
> > gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
> > Copyright (C) 2010 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions. There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> >
> > [anuj_at_G3-001 ~]$
> >
> > I dont know why is this discrepancy? I feel this is the one problem which
> > is needed to
> > be sort out in order to install gfortran >= 4.6.
> >
> > Thanks Again
> >
> > Best Regards
> >
> > On Thu, 20 Mar 2014 23:06:50 +0100, Vittorio Boccone wrote
> > > Dear Anuj,
> > > the problem here is not Fluka, but the use of the Linux command line and
> > > environmental variables.
> > >
> > > Check carefully this tutorial
> > >
> > http://www.fluka.org/fluka.php?id=course&sub=require&navig=7&which=dresden2013
> > >
> > > And the slides from the Dresden course
> > >
> >
> >
https://www.fluka.org/free_download/course/dresden2013/Lectures/02_Installation_1013.pdf
> > >
> > > GFORFLU it's an optional variable which can be defined in the case you
> > need to
> > > switch between compiler.
> > >
> > > After you remove the definition from the bashrc you must open a different
> > > terminal or console to reload the default settings or, in alternative, to
> > > remove the definition of GFORFLU from the current environmental
> > variables.
> > >
> > > You can check the environmental variables withe the command "env"
> > >
> > > The you still need to upgrade the awk package by doing a "sudo yum
> > install gawk".
> > >
> > > My suggestion is to start from a fresh console.
> > >
> > > V.
> > > Sent from my iPhone
> > >
> > > > On 20/mar/2014, at 20:21, "anuj" <anuj_at_crl.tifr.res.in> wrote:
> > > >
> > > > I have removed the definition of GFORFLU=gfortran47 but still it is
> > giving me the
> > > > definition like
> > > >
> > > > [anuj_at_G3-001 ~]$ source .bashrc
> > > > [anuj_at_G3-001 fluka_x86_64]$ $GFORFLU
> > > > bash: gfortran47: command not found
> > > >
> > > > [anuj_at_G3-001 ~]$ cd $FLUPRO
> > > >
> > > > [anuj_at_G3-001 fluka_x86_64]$ make
> > > > FLUPRO=/home/anuj/fluka_x86_64 flutil/lfluka -o flukahp -m fluka
> > > > $FLUPRO = /home/anuj/fluka_x86_64
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command
> > not found
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator expected
> > > > now linking
> > > > /home/anuj/fluka_x86_64
> > > > gfortran47
> > > > ar x /home/anuj/fluka_x86_64/libflukahp.a fluka.o
> > > > gfortran47 -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
> > -fexpensive-optimizations
> > -
> > > > funroll-loops -fstrength-reduce -Wall -Wuninitialized -Wno-tabs
> > -Wline-truncation -
> > Wno-
> > > > unused-function -Wno-unused-parameter -Wno-unused-dummy-argument
> > -Wno-unused-
> > variable -
> > > > Wunused-label -Waggregate-return -Wcast-align -Wsystem-headers
> > -ftrapping-math -
> > frange-
> > > > check -fbackslash -fdump-core -fbacktrace
> > -ffpe-trap=invalid,zero,overflow -finit-
> > local-
> > > > zero -ffixed-form -frecord-marker=4 -funderscoring -fno-automatic
> > -fd-lines-as-
> > comments
> > > > -fbounds-check -I/home/anuj/fluka_x86_64/flukapro -v -o flukahp
> > fluka.o -
> > > > L/home/anuj/fluka_x86_64 -lflukahp
> > > > flutil/lfluka: line 161: gfortran47: command not found
> > > > cd flutil; FLUPRO=/home/anuj/fluka_x86_64 make all; cd ..
> > > > make[1]: Entering directory `/home/anuj/fluka_x86_64/flutil'
> > > > /home/anuj/fluka_x86_64/flutil/fff -N actdline.f
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command
> > not found
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator expected
> > > > /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not
> > found
> > > > /home/anuj/fluka_x86_64/flutil/fff -N hpadd.f
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command
> > not found
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator expected
> > > > /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not
> > found
> > > > /home/anuj/fluka_x86_64/flutil/fff -N hpc.f
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command
> > not found
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator expected
> > > > /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not
> > found
> > > > /home/anuj/fluka_x86_64/flutil/fff -N hpfor.f
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47: command
> > not found
> > > > /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator expected
> > > > /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command not
> > found
> > > > gfortran47 -o actdline actdline.o
> > > > make[1]: gfortran47: Command not found
> > > > make[1]: *** [actdline] Error 127
> > > > make[1]: Leaving directory `/home/anuj/fluka_x86_64/flutil'
> > > > [anuj_at_G3-001 fluka_x86_64]$ GFORFLU
> > > > bash: GFORFLU: command not found
> > > > [anuj_at_G3-001 fluka_x86_64]$ cd
> > > > [anuj_at_G3-001 ~]$ source .bashrc
> > > > [anuj_at_G3-001 ~]$ $GFORFLU
> > > > bash: gfortran47: command not found
> > > >
> > > >
> > > > Best Regards
> > > >
> > > > On Thu, 20 Mar 2014 17:32:16 +0100, Vittorio Boccone wrote
> > > >> There's no gfortran47 only a command gfortran!
> > > >> you just need to specify
> > > >>
> > > >> export FLUPRO=\to_your_fluka_path
> > > >>
> > > >> export FLUFOR=gfortran
> > > >>
> > > >> as explained in the installation instruction.
> > > >> best
> > > >> V.
> > > >>
> > > >>> On Thu, Mar 20, 2014 at 5:05 PM, anuj <anuj_at_crl.tifr.res.in> wrote:
> > > >>>
> > > >>>
> > > >>> Hello,
> > > >>>
> > > >>> As per your sggestions I installed devtoolset 1.1, as well this
> > gives the
> > > >>> gcc 4.7.2,
> > > >>> gfortran 4.7.2. But when I am trying to install 64 bit version of
> > fluka it
> > > >>> is giving me
> > > >>> the following errors.
> > > >>>
> > > >>> [anuj_at_G3-001 fluka_x86_64]$ make
> > > >>> FLUPRO=/home/anuj/fluka_x86_64 flutil/lfluka -o flukahp -m fluka
> > > >>> $FLUPRO = /home/anuj/fluka_x86_64
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47:
> > command not
> > > >>> found
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator
> > > >>> expected
> > > >>> now linking
> > > >>> /home/anuj/fluka_x86_64
> > > >>> gfortran47
> > > >>> ar x /home/anuj/fluka_x86_64/libflukahp.a fluka.o
> > > >>> gfortran47 -msse2 -mfpmath=sse -fPIC -O3 -g -mtune=generic
> > > >>> -fexpensive-optimizations -
> > > >>> funroll-loops -fstrength-reduce -Wall -Wuninitialized -Wno-tabs
> > > >>> -Wline-truncation -Wno-
> > > >>> unused-function -Wno-unused-parameter -Wno-unused-dummy-argument
> > > >>> -Wno-unused-variable -
> > > >>> Wunused-label -Waggregate-return -Wcast-align -Wsystem-headers
> > > >>> -ftrapping-math -frange-
> > > >>> check -fbackslash -fdump-core -fbacktrace
> > -ffpe-trap=invalid,zero,overflow
> > > >>> -finit-local-
> > > >>> zero -ffixed-form -frecord-marker=4 -funderscoring -fno-automatic
> > > >>> -fd-lines-as-comments
> > > >>> -fbounds-check -I/home/anuj/fluka_x86_64/flukapro -v -o flukahp
> > fluka.o -
> > > >>> L/home/anuj/fluka_x86_64 -lflukahp
> > > >>> flutil/lfluka: line 161: gfortran47: command not found
> > > >>> cd flutil; FLUPRO=/home/anuj/fluka_x86_64 make all; cd ..
> > > >>> make[1]: Entering directory `/home/anuj/fluka_x86_64/flutil'
> > > >>> /home/anuj/fluka_x86_64/flutil/fff -N actdline.f
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47:
> > command not
> > > >>> found
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator
> > > >>> expected
> > > >>> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command
> > not found
> > > >>> /home/anuj/fluka_x86_64/flutil/fff -N hpadd.f
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47:
> > command not
> > > >>> found
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator
> > > >>> expected
> > > >>> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command
> > not found
> > > >>> /home/anuj/fluka_x86_64/flutil/fff -N hpc.f
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47:
> > command not
> > > >>> found
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator
> > > >>> expected
> > > >>> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command
> > not found
> > > >>> /home/anuj/fluka_x86_64/flutil/fff -N hpfor.f
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 87: gfortran47:
> > command not
> > > >>> found
> > > >>> /home/anuj/fluka_x86_64/flutil/ffluka.sh: line 92: [: -le: unary
> > operator
> > > >>> expected
> > > >>> /home/anuj/fluka_x86_64/flutil/fff: line 121: gfortran47: command
> > not found
> > > >>> gfortran47 -o actdline actdline.o
> > > >>> make[1]: gfortran47: Command not found
> > > >>> make[1]: *** [actdline] Error 127
> > > >>> make[1]: Leaving directory `/home/anuj/fluka_x86_64/flutil'
> > > >>> [anuj_at_G3-001 fluka_x86_64]$
> > > >>>
> > > >>>
> > > >>> Note: One problem I want to discus with you that I have installed
> > > >>> devtoolset as root
> > > >>> user when I type gfortran --version as root user it is giving me the
> > > >>> following lines
> > > >>>
> > > >>> [root_at_G3-001 ~]# gfortran --version
> > > >>> GNU Fortran (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
> > > >>> Copyright (C) 2012 Free Software Foundation, Inc.
> > > >>>
> > > >>> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> > > >>> You may redistribute copies of GNU Fortran
> > > >>> under the terms of the GNU General Public License.
> > > >>> For more information about these matters, see the file named COPYING
> > > >>>
> > > >>> [root_at_G3-001 ~]#
> > > >>>
> > > >>> But if I type as a normal user then this shows the following lines:
> > > >>>
> > > >>> [anuj_at_G3-001 fluka_x86_64]$ gfortran --version
> > > >>> GNU Fortran (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
> > > >>> Copyright (C) 2010 Free Software Foundation, Inc.
> > > >>>
> > > >>> GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
> > > >>> You may redistribute copies of GNU Fortran
> > > >>> under the terms of the GNU General Public License.
> > > >>> For more information about these matters, see the file named COPYING
> > > >>>
> > > >>> [anuj_at_G3-001 fluka_x86_64]$
> > > >>>
> > > >>> Can any one you tel me why is this difference?
> > > >>>
> > > >>>
> > > >>> Best Regards
> > > >>>
> > > >>> Anuj Chandra
> > > >>>
> > > >>>
> > > >>> On Tue, 18 Mar 2014 13:07:58 +0100, Vittorio Boccone wrote
> > > >>>> Dear Anuj,
> > > >>>> very import thing. Keep the discussion on the list.
> > > >>>>
> > > >>>> Installation of the 64 bits version :
> > > >>>>
> > > >>>> 1. If you need to work with the 64 bit, you need you in first
> > place
> > > >>> to
> > > >>>> upgrade (if you can) to CentOS 6.5 with the common "sudo yum
> > update"
> > > >>>> method. You can find dozen of tutorial on the web.
> > > >>>> 2. this type of error [/home/anuj/fluka_x86_64/flutil/ffluka.sh:
> > line
> > > >>>> 92: [: -le: unary operator expected] comes from an old version of
> > the
> > > >>> awk
> > > >>>> command line tool. You can fix this with a "sudo yum install gawk"
> > > >>>> 3. You have to get a more recent gfortran versiion because the
> > 4.4 is
> > > >>>> not supported as written in the FLUKA download page, instruction
> > an
> > > >>> manual.
> > > >>>> RedHat based distributions have a set of packages which is
> > called
> > > >>>> devtoolset which provide the gcc/gfrotran 4.7.2 and 4.8.1
> > (respectly
> > > >>> in the
> > > >>>> devtoolset 1.1 and 2.0). Here the page for the CERN devtoolset
> > > >>> (compatible
> > > >>>> with centos) http://linux.web.cern.ch/linux/devtoolset/. Here the
> > > >>> forum
> > > >>>> which points to the CentOS one
> > > >>>> https://www.centos.org/forums/viewtopic.php?t=22369
> > > >>>> 4. Once you have the devtoolset installed and the environment
> > variable
> > > >>>> defined enable the devtoolset and compile FLUKA
> > > >>>>
> > > >>>> scl enable devtoolset-[your-toolset-version] bash
> > > >>>>
> > > >>>> Installation of the 32 bits version:
> > > >>>>
> > > >>>> The other option is to install the 32 bit FLUKA from sources or from
> > > >>>> the rpms (they need the same packages and configuration). A "sudo
> > yum
> > > >>>> install compat-gcc-34 compat-libf2c-34 compat-gcc-34-g77 glibc
> > > >>>> glibc-devel glibc.i686 glibc-devel.i686" will give you the necessary
> > > >>>> packages to install the rpm version
> > > >>>>
> > > >>>> Best
> > > >>>>
> > > >>>> V.
> > > >>>>
> > > >>>> *yum install compat-gcc-34 compat-libf2c-34yum up*
> > > >>>> On 3/18/2014 9:50 AM, anuj wrote:
> > > >>>>
> > > >>>> Hii,
> > > >>>>
> > > >>>> here is my system configuration.
> > > >>>> I am sorry for being late I was out of town and could not get
> > connect
> > > >>> with you.
> > > >>>>
> > > >>>> [anuj_at_G3-001 ~]$ lsb_release -a
> > > >>>> LSB Version:
> > > >>> :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-
> > > >>>> noarch:printing-4.0-amd64:printing-4.0-noarch
> > > >>>> Distributor ID: CentOS
> > > >>>> Description: CentOS release 6.3 (Final)
> > > >>>> Release: 6.3
> > > >>>> Codename: Final
> > > >>>> [anuj_at_G3-001 ~]$
> > > >>>>
> > > >>>> Best regards
> > > >>>>
> > > >>>> Anuj Chandra
> > > >>>>
> > > >>>> On Fri, 14 Mar 2014 20:52:59 +0100, Vittorio Boccone wrote
> > > >>>>
> > > >>>> Hi Anuj,
> > > >>>> you didn't answer to my previous mail about which distribution you
> > are
> > > >>>> using.
> > > >>>>
> > > >>>> 1) Remove the "$" from the export "$FLUPRO=/home/anuj/fluka_x86_64"
> > in
> > > >>>> the ".bashrc" file. The $ symbol is not used in the definition of
> > > >>>> environmental variables, only when you use them;
> > > >>>> 2) You miss the definition of FLUFOR which should be "export
> > > >>>> FLUFOR=gfortran";
> > > >>>> 3) Your "export GFORFLU=gfortran44" tells me you are trying to use a
> > > >>>> gfortran version which is not supported anymore as FLUKA requires a
> > > >>>> gfortran >4.6
> > > >>>>
> > > >>>> I renew my previous question: which distribution are you using and
> > which
> > > >>>> version (and architecture )
> > > >>>> I'm sorry, but without those information we can't really help you
> > more.
> > > >>>>
> > > >>>> Best,
> > > >>>> V.
> > > >>>>
> > > >>>> On 3/14/2014 7:58 PM, anuj wrote:
> > > >>>>
> > > >>>> export $FLUPRO=/home/anuj/fluka_x86_64
> > > >>>> export GFORFLU=gfortran44
> > > >>>>
> > > >>>> --
> > > >>>> Open WebMail Project (http://openwebmail.org)
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Open WebMail Project (http://openwebmail.org)
> > > >
> > > >
> > > > --
> > > > Open WebMail Project (http://openwebmail.org)
> > > >
> >
> >
> > --
> > Open WebMail Project (http://openwebmail.org)
> >


--
Open WebMail Project (http://openwebmail.org)
Received on Sat Mar 22 2014 - 07:58:53 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 22 2014 - 07:58:55 CET