tutorial:rootinstall

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial:rootinstall [2018/12/11 18:45] qwertytutorial:rootinstall [2023/03/06 13:44] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ==== Installing ROOT ==== ==== Installing ROOT ====
 ROOT6을 설치하는 방법에 대해 알아본다. 우선 ROOT 공식 [[https://root.cern.ch/downloading-root|홈페이지]]에 접속하여 다운받고자하는 버전의 페이지로 이동한다. ROOT6을 설치하는 방법에 대해 알아본다. 우선 ROOT 공식 [[https://root.cern.ch/downloading-root|홈페이지]]에 접속하여 다운받고자하는 버전의 페이지로 이동한다.
-Binary file을 이용해 설치하는것을 권장한다.+특별한 이유가 없다면 Binary file을 이용해 설치하는것을 권장한다. 
 + 
 +=== Binary distributions ===
  
 == MacOS == == MacOS ==
Line 10: Line 12:
 </code> </code>
  
-=== Binary distributions ===+== Binary 배포판 설치 ==
 설치하고자하는 컴퓨터의 컴파일러와 OS 버전에 맞는 배포판을 다운로드 받아 압축을 풀고, ~/.bashrc에 다음을 추가한다. (경로는 적절히 바꿔야 함) 설치하고자하는 컴퓨터의 컴파일러와 OS 버전에 맞는 배포판을 다운로드 받아 압축을 풀고, ~/.bashrc에 다음을 추가한다. (경로는 적절히 바꿔야 함)
 <code> <code>
 source /ROOT_설치_폴더까지의_주소/bin/thisroot.sh source /ROOT_설치_폴더까지의_주소/bin/thisroot.sh
 +#.bashrc를 나가서
 +source ~/.bashrc
 </code> </code>
  
 === Source compile === === Source compile ===
-<code> 
-brew install cmake # Mac OS 
-</code> 
- 
-관리자에게 문의하세요. 아니면 열심히 [[https://root.cern.ch/building-root|이거]] 보고 설치하세요. 
  
-특별히 [[https://getfedora.org/ko/workstation/download/|페도라]]만 써줌.<del>(그러니까 우분투 쓰지말고 페도라 씁시다)</del>+== Fedora OS ==
  
-Fedora OS +페도라에서 제공하는 루트의 버전 업데이트가 잘 안되지만 기본적으로 
-* 버전 업데이트가 잘 안되긴 하지만 기본적으로 +
 <code> <code>
 sudo yum install root sudo yum install root
 </code> </code>
-하면 루트가 설치되기는 한다.+를 이용해 루트를 설치할 수 있다. 
 + 
 +* Fedora 29에서 설치됨을 확인했다.
  
 0. [[https://root.cern.ch/downloading-root|root 홈페이지]]에서 Source file을 다운로드 받는다. 0. [[https://root.cern.ch/downloading-root|root 홈페이지]]에서 Source file을 다운로드 받는다.
Line 36: Line 36:
 1. 먼저 패키지를 컴파일 하는데 필요한 다른 패키지들을 받아준다.[[https://root.cern.ch/build-prerequisites| 필요한 패키지 목록]] 1. 먼저 패키지를 컴파일 하는데 필요한 다른 패키지들을 받아준다.[[https://root.cern.ch/build-prerequisites| 필요한 패키지 목록]]
 <code> <code>
 +#설치 방법은 아래와 같다
 +sudo yum install package
 +
 #필수 패키지 #필수 패키지
-sudo yum install git cmake gcc-c++ gcc binutils +git cmake gcc-c++ gcc binutils libX11-devel libXpm-devel libXft-devel libXext-devel
-libX11-devel libXpm-devel libXft-devel libXext-devel+
  
 #선택 패키지 #선택 패키지
-sudo yum install gcc-gfortran openssl-devel pcre-devel +gcc-gfortran openssl-devel pcre-devel mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel fftw-devel cfitsio-devel graphviz-devel avahi-compat-libdns_sd-devel libldap-dev python-devel libxml2-devel gsl-static
-mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel +
-fftw-devel cfitsio-devel graphviz-devel +
-avahi-compat-libdns_sd-devel libldap-dev python-devel +
-libxml2-devel gsl-static+
 </code> </code>
  
Line 54: Line 52:
 </code> </code>
  
-4. 압축 푼 폴더에 들어가서+4. 방금 만든 폴더에 들어가서
 <code> <code>
-cd root_source_file +cd ~/설치하고_싶은_경로/root 
-./configure --prefix=$Home/설치하고_싶은_경로/root+cmake 압축_푼_경로/root_source_file # 실제 소스파일 경로 확인해서 붙여넣기 하기 바람
 </code> </code>
 필요한 패키지들이 정상적으로 설치되어있는지 확인한다. 필요한 패키지들이 정상적으로 설치되어있는지 확인한다.
-에러메세지가 뜨지 않고 마지막 메세지가+에러메세지가 뜨지 않고 정상 종료 되면 컴파일을 시작한다.
 <code> <code>
-make +#~/설치하고_싶은_경/root 안에서 실행 
-make install +sudo cmake --build . --target install
-</code> +
-로 나타나면 컴파일을 진한다. +
-<code> +
-cmake --build+
 </code> </code>
  
-컴파일이 완료되면 환경설정을 해준다.+5. 컴파일이 완료되면 환경설정을 해준다.
 <code> <code>
 vi ~/.bashrc vi ~/.bashrc
 #.bashrc에 적어준다. #.bashrc에 적어준다.
 source /ROOT_설치_경로/bin/thisroot.sh source /ROOT_설치_경로/bin/thisroot.sh
 +#.bashrc를 나가서
 +source ~/.bashrc
 +</code>
 +
 +Ubuntu의 경우 yum 대신 apt-get을 이용하는 것만 다르고 나머지는 같다.
 +
 +== Mac OS ==
 +<code>
 +brew install cmake # Mac OS
 </code> </code>
  
  • tutorial/rootinstall.1544521536.txt.gz
  • Last modified: 2023/03/06 13:44
  • (external edit)