본문 바로가기

HPC

Tmux on NURION

Tmux를 설치하기 위해서는 

libevent와 ncurses 라이브러리가 필요하니 설치해 주자

 

 

누리온 admin이 관리하는 gcc, cc는 매우 올드하다.

$ which gcc
/usr/bin/gcc
$ which cc
/usr/bin/cc
$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 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.

$ cc --version
cc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 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.

 

그래서 누리온에서는 모듈을 제공한다

--------------------------------------------------------------- /Module/compilers ---------------------------------------------------------------
cce/8.6.3(default)    gcc/6.1.0             gcc/8.3.0             intel/18.0.3          intel/19.1.2          pgi/18.10
gcc/10.2.0            gcc/7.2.0(default)    intel/17.0.5          intel/19.0.5(default) intel/oneapi_21.2     pgi/19.1

 

그나마 최신인 10.2.0을 써주자

$ module load gcc/10.2.0
$ module list
Currently Loaded Modulefiles:
  1) craype-network-opa   2) craype-x86-skylake   3) cmake/3.26.2         4) gcc/10.2.0
  
$ which gcc
/apps/compiler/gcc/10.2.0/bin/gcc
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 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.

 

 

기존 configure 정리

make distclean

 

 

ncurses 빌드를 위한 셋업

 

--enable-widec

이 옵션은 한글과 같은 문자를 표시하기 위함이니까 사용

 

./configure --prefix=$HOME/local \
  --with-libtool \
  --enable-widec \
  --with-shared \
  --without-normal \
  --without-debug \
  --with-pkg-config \
  --with-pkg-config-libdir=$HOME/local/lib/pkgconfig \
  --enable-overwrite \
  --enable-pc-files

make -j
make install

 

 

 

 

 

ncurses library compile and install 후 환경변수 세팅

export CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncursesw"
export LDFLAGS="-L$HOME/local/lib"
export PKG_CONFIG_PATH="$HOME/local/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="$HOME/local/bin:$PATH"

 

.pc 파일이 만들어 졌는지 확인

pkgconfig]$ ls
formw.pc  libevent_core.pc  libevent_extra.pc  libevent_openssl.pc  libevent.pc  libevent_pthreads.pc  menuw.pc  ncurses++w.pc  ncursesw.pc  panelw.pc

 

 

 

libevent도 깔아주고,

 

NURION admin이 설치하였으나, 컴파일에 사용할 수 있는 헤더파일이 없으니 따로 설치해야 된다.

$ find /usr/lib* /usr/local/lib* -name "libevent*"
/usr/lib64/libevent-2.0.so.5
/usr/lib64/libevent_core-2.0.so.5
/usr/lib64/libevent_extra-2.0.so.5
/usr/lib64/libevent_openssl-2.0.so.5
/usr/lib64/libevent_pthreads-2.0.so.5
find: ‘/usr/lib64/security/pam_bright’: Permission denied
/usr/lib64/samba/libevents-samba4.so
/usr/lib64/libevent-2.0.so.5.1.9
/usr/lib64/libevent_core-2.0.so.5.1.9
/usr/lib64/libevent_extra-2.0.so.5.1.9
/usr/lib64/libevent_openssl-2.0.so.5.1.9
/usr/lib64/libevent_pthreads-2.0.so.5.1.9
/usr/lib64/libeventviews.so.4
/usr/lib64/libeventviews.so.4.14.8
find: ‘/usr/libexec/initscripts/legacy-actions/auditd’: Permission denied

 

설치방법은 여기에

https://github.com/tmux/tmux/wiki/Installing

 

Installing

tmux source code. Contribute to tmux/tmux development by creating an account on GitHub.

github.com

 

 

 

설치가 된것은 아래와 같이 확인

$ ls $HOME/local/include/event.h
/home01/a1901a01/local/include/event.h

$ ls $HOME/local/lib/libevent*.so
/home01/a1901a01/local/lib/libevent_core.so   /home01/a1901a01/local/lib/libevent_openssl.so   /home01/a1901a01/local/lib/libevent.so
/home01/a1901a01/local/lib/libevent_extra.so  /home01/a1901a01/local/lib/libevent_pthreads.so

 

tmux 설치준비

tar -zxf tmux-*.tar.gz
cd tmux-*/
PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig ./configure --prefix=$HOME/local
make && make install

'HPC' 카테고리의 다른 글

MC(Midnight Commaner) on NURION  (0) 2025.04.13
NURION사용시 필요한 라이브러리들  (0) 2025.04.10
시스템 메모리 체크  (0) 2025.03.05
AOCC Clang Performance 옵션 확인  (0) 2025.02.28
AOCC Command-line options  (0) 2025.02.28