From T3_KR_KNU
Jump to: navigation, search
(Geant4 10.6 & gcc63 & centos7)
(Geant4 10.6 & gcc83 & centos7)
Line 138: Line 138:
 
  # create MakeFiles
 
  # create MakeFiles
 
  cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1
 
  cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1
 +
 +
# compile & build
 +
make
 +
 +
# run the example
 +
./exampleB1 exampleB1.in
 +
 +
 +
=== Geant4 10.7 & gcc83 & centos7  ===
 +
 +
# set up compiler
 +
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
 +
export CXX=`which g++`
 +
export CC=`which gcc`
 +
 +
# set up environment for geant4
 +
source /cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh
 +
 +
# copy example
 +
cp -R /cvmfs/geant4.cern.ch/geant4/10.7.p02/share/examples/basic/B1 $HOME
 +
mkdir $HOME/B1_build
 +
cd $HOME/B1_build
 +
 +
# set up path for cmake 3.14.2
 +
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH
 +
 +
# create MakeFiles
 +
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.7.2 $HOME/B1
 
   
 
   
 
  # compile & build
 
  # compile & build

Revision as of 07:23, 12 July 2021

1 CVMFS SFT repository 사용법

1.1 gcc 6.2 (sl6)사용하기

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_88/gcc/6.2.0/x86_64-slc6/setup.sh
$ which gcc
/cvmfs/sft.cern.ch/lcg/releases/LCG_88/gcc/6.2.0/x86_64-slc6/bin/gcc
$ gcc --version
gcc (GCC) 6.2.0
Copyright (C) 2016 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.

1.2 gcc 7.2 (sl6) 사용하기

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_92/gcc/7.2.0/x86_64-slc6/setup.sh
$ which gcc
/cvmfs/sft.cern.ch/lcg/releases/LCG_92/gcc/7.2.0/x86_64-slc6/bin/gcc
$ gcc --version
gcc (GCC) 7.2.0
Copyright (C) 2017 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.

1.3 gcc 7.3 (sl6) 사용하기

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_91/gcc/7.3.0/x86_64-slc6/setup.sh
$ which gcc
/cvmfs/sft.cern.ch/lcg/releases/gcc/7.3.0-90605/x86_64-slc6-gcc62-opt/bin/gcc
$ gcc --version
gcc (GCC) 7.3.0
Copyright (C) 2017 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.

1.4 gcc 8.2 (cc7) 사용하기

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_94/gcc/8.2.0/x86_64-centos7/setup.sh
$ which gcc
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.2.0-3fa06/x86_64-centos7/bin/gcc
$ gcc --version
gcc (GCC) 8.2.0
Copyright (C) 2018 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.

1.5 root 사용하기 - SL6

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/ROOT-env.sh
$ which root
/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-slc6-gcc62-opt/bin/root
$ root -l
root [0] .q

1.6 root 사용하기 - cc7

$ source /cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-centos7-gcc7-opt/ROOT-env.sh
$ which root
/cvmfs/sft.cern.ch/lcg/releases/LCG_94/ROOT/6.14.04/x86_64-centos7-gcc7-opt/bin/root
$ root -l
root [0] .q

1.7 cmake 사용하기

$ export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/latest/Linux-x86_64/bin:$PATH
$ which cmake
/cvmfs/sft.cern.ch/lcg/contrib/CMake/latest/Linux-x86_64/bin/cmake

1.8 Geant4 10.5 & gcc63 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.5/x86_64-centos7-gcc63-opt-MT/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.5/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-centos7-gcc63-opt-MT/lib64/Geant4-10.5.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in

1.9 Geant4 10.6 & gcc63 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/6.3/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc63-optdeb/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.6/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc63-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in

1.10 Geant4 10.6 & gcc83 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb/CMake-setup.sh

# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.6/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.6/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.6.0 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in


1.11 Geant4 10.7 & gcc83 & centos7

# set up compiler
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
export CXX=`which g++`
export CC=`which gcc`

# set up environment for geant4
source /cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh 
# copy example
cp -R /cvmfs/geant4.cern.ch/geant4/10.7.p02/share/examples/basic/B1 $HOME
mkdir $HOME/B1_build
cd $HOME/B1_build

# set up path for cmake 3.14.2
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin:$PATH

# create MakeFiles
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.7.p02/x86_64-centos7-gcc8-optdeb-MT/lib64/Geant4-10.7.2 $HOME/B1

# compile & build
make

# run the example
./exampleB1 exampleB1.in