clearer
 

Useful Keywords

  • sudo passwd root : 루트 유저 패쓰워드 설정
  • root install : apt-get install root-systems
  • find 명령어 : find / “thisroot*”
  • sudo apt-get update
  • sudo apt-get install build-essential
  • sudo apt-get install freeglut3-dev
  • sudo apt-get install cmake
  • sudo apt-get install ibus-hangul
  • apt-get update
  • apt-get upgrade
  • apt-get install root-system
  • sudo root passwd : sudo passwd root

Scientific Linux 7 in vmare

  • yum groupinstall 'Development Tools'
  • yum install build-essential

Install Ubuntu in VirtualBox

Geant4 Starter Package

How to install ROOT6 in ubuntu

  • Download binary version of ROOT6
  • Unpack tar file
  • source ./bin/thisroot.sh
  • excute root

How to install Geant4 10.01.p02 in ubuntu (Short version)

  • Unpack file
  • Install libxmu-dev : sudo apt-get install libxmu-dev libxi-dev (to avoid the Xmu problem)
  • Set directory to install : (for example : dir=/home/dmoon/Work/Geant4/)
  • cd /home/dhmoon/Work/Geant4/
  • cp “Unpacked directory” .
  • mkdir geant4.10.01-build geant4.10.01-install
  • cd geant4.10.01-build
  • cmake -DCMAKE_INSTALL_PREFIX=/home/dmoon/Work/Geant4/geant4.10.01-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATA_TIMEOUT=3600 -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_EXAMPLES=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_BUILD_CXXSTD=c++11 /home/dmoon/Work/Geant4/geant4.10.01.p02
  • make -j 2
  • make install

Run LAMPS simulation

  • complie : make (if you see lCint problem, please remove it in GNUMakeFile)
  • ln -l bin/Linux-g++/lampslow lampslow
  • ./lamplslow vis.mac (if you see problem beelow, install gt5)
parameter value (OGLIX) is not listed in the candidate List.
***** Illegal parameter (0) </vis/open OGLIX 900x900> *****
then I have error as below
pci id for fd 4: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo

* this problem happens in VirtualBox » solved after changing into vmare

How to install Geant4 10.01.p02 in ubuntu

  • Unpack file
  • Set directory to install : (for example : dir=/home/dmoon/Work/Geant4/)
  • cd /home/dhmoon/Work/Geant4/
  • cp “Unpacked directory” .
  • mkdir geant4.10.01-build geant4.10.01-install
  • cd geant4.10.01-build
  • cmake -DCMAKE_INSTALL_PREFIX=/home/dmoon/Work/Geant4/geant4.10.01-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATA_TIMEOUT=3600 -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_EXAMPLES=ON /home/dmoon/Work/Geant4/geant4.10.01.p02
  • Error message
dmoon@dmoon-Ubuntu64:~/Work/Geant4/geant4.10.01-build$ cmake -DCMAKE_INSTALL_PREFIX=/home/dmoon/Work/Geant4/geant4.10.01-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATA_TIMEOUT=3600 -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_EXAMPLES=ON /home/dmoon/Work/Geant4/geant4.10.01.p02
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindEXPAT.cmake:50 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  cmake/Modules/Geant4OptionalComponents.cmake:92 (find_package)
  CMakeLists.txt:99 (include)


-- Configuring incomplete, errors occurred!
See also "/home/dmoon/Work/Geant4/geant4.10.01-build/CMakeFiles/CMakeOutput.log".
dmoon@dmoon-Ubuntu64:~/Work/Geant4/geant4.10.01-build$ 
  • This error is occured to due missing EXPAT » install expat or turn off EXPAT option (-DGEANT4_USE_SYSTEM_EXPAT=OFF)
  • Try again
cmake -DCMAKE_INSTALL_PREFIX=/home/dmoon/Work/Geant4/geant4.10.01-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_INSTALL_DATA_TIMEOUT=3600 -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_BUILD_EXAMPLES=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF /home/dmoon/Work/Geant4/geant4.10.01.p02
  • Xmu error showed up
  • Possible solution : install relavant package like » sudo apt-get install libxmu-dev libxi-dev » solved in Ubuntu but not sure yet for SL7
  • make -j 2
### error occurred ###
  • add -DGEANT4_BUILD_CXXSTD=c++11 in cmake to avoid
  • make install
dhmoon/ubuntuusage.txt · 마지막 수정: 2015/12/07 19:44 작성자 dhmoon
 
광주광역시 북구 용봉동 전남대학교 자연대 4호관 물리학과 319호 | Tel. +82-62-530-3484
Bld.4-319 Department of Physics, Chonnam National University, 77 Yongbong-ro, Buk-gu, Gwangju 500-757, KOREA
별도로 라이선스를 알리지 않을 경우, 이 위키의 내용은 다음의 라이선스에 따릅니다: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki