|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| == CVMFS SFT repository 사용법 == | | == CVMFS SFT repository 사용법 == |
| | | |
− | === gcc 6.2 (sl6)사용하기 === | + | === gcc 사용하기 === |
| | | |
− | $ source /cvmfs/sft.cern.ch/lcg/releases/LCG_88/gcc/6.2.0/x86_64-slc6/setup.sh
| + | * [[cvmfs_gcc|CVMFS에서 gcc 사용하기 문서를 참고하세요.]] |
− | $ 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.
| + | |
| | | |
− | === gcc 7.2 (sl6) 사용하기 === | + | === root 사용하기 === |
| | | |
− | $ source /cvmfs/sft.cern.ch/lcg/releases/LCG_92/gcc/7.2.0/x86_64-slc6/setup.sh
| + | * [[cvmfs_root|CVMFS에서 root 사용하기 문서를 참고하세요.]] |
− | $ 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.
| + | |
− | | + | |
− | === 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.
| + | |
− | | + | |
− | === 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.
| + | |
− | | + | |
− | === 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
| + | |
− | | + | |
− | === 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
| + | |
| | | |
| === cmake 사용하기 === | | === cmake 사용하기 === |
Line 67: |
Line 15: |
| /cvmfs/sft.cern.ch/lcg/contrib/CMake/latest/Linux-x86_64/bin/cmake | | /cvmfs/sft.cern.ch/lcg/contrib/CMake/latest/Linux-x86_64/bin/cmake |
| | | |
− | === Geant4 10.5 & gcc63 & centos7 === | + | === Geant4 사용하기 === |
− | | + | |
− | # 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
| + | |
− | | + | |
− | === 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
| + | |
− | | + | |
− | === 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
| + | |
− | | + | |
− | | + | |
− | === 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
| + | * [[cvmfs_geant4|CVMFS에서 geant4 사용하기 문서를 참고하세요.]] |
− | 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
| + | |