Linux

[Tig] CentOS 7에 Tig 설치하기

Bonita SY 2020. 9. 17. 21:58
728x90
반응형

※ Git 설치

yum install git

 

Tig란?

- Git을 위한 ncurs 기반 텍스트 모드 인터페이스

- 주로 Git 저장소 브라우저로 기능

- 청크 수준에서 커밋을 위한 변경 스테이징을 지원

- 다양한 Git 명령의 출력을 위한 호출기 역할 가능

 

마우스 우클릭으로 주소를 복사

 

wget https://github.com/jonas/tig/releases/download/tig-2.3.3/tig-2.3.3.tar.gz
tar -xvzf tig-2.3.3.tar.gz

centos server에서 wget으로 다운받은 후, gzip 파일을 압축 해제!

 

$ ls
tig-2.3.3  tig-2.3.3.tar.gz

$ cd tig-2.3.3/
$ ls
COPYING       Makefile   README.adoc  autogen.sh  compat          configure     doc          src    tig.1.html   tigrc         tools
INSTALL.adoc  NEWS.adoc  README.html  book.json   config.h.in     configure.ac  include      test   tig.spec     tigrc.5
INSTALL.html  NEWS.html  aclocal.m4   book.md     config.make.in  contrib       manual.html  tig.1  tigmanual.7  tigrc.5.html

설치 방법처럼 저 경로에서 make 입력

 

$ make
        CC  src/tig.o
/bin/sh: cc: command not found
make: *** [src/tig.o] 오류 127

$ make install
        CC  src/tig.o
/bin/sh: cc: command not found
make: *** [src/tig.o] 오류 127

아니 홈페이지에는 바로 make를 하라해서, 했더니 에러남;; 장난하나. 구글링 ㄱ

 

$ ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `./tig-2.3.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

make 전에 configure를 먼저 하기.

 

gcc가 없다네.

 

$ yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
 ...

gcc 설치, 다시 configure

 

./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking for gettimeofday... yes
checking whether environ is declared... no
checking whether errno is declared... yes
checking for mkstemps... yes
checking for setenv... yes
checking for strndup... yes
checking for wordexp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ncursesw via pkg-config... no
checking for ncursesw via fallback...
checking for initscr() with -lncursesw... no
checking for ncurses via pkg-config... no
checking for ncurses via fallback...
checking for initscr() with -lncurses... no
checking for Curses library... no
configure: error: ncurses not found

ncureses가 없다네? 구글링해서 설치 ㄱ

 

$ yum install ncurses-devel -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
Resolving Dependencies
... 중략
./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking for gettimeofday... yes
checking whether environ is declared... no
checking whether errno is declared... yes
checking for mkstemps... yes
checking for setenv... yes
checking for strndup... yes
checking for wordexp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ncursesw via pkg-config... yes
checking for working ncursesw/curses.h... yes
checking for working ncursesw.h... no
checking for working ncurses.h... yes
checking for tgetent... no
checking for tgetent in -lncursesw... yes
checking which library has the termcap functions... using libncursesw
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for gsed... no
checking for asciidoc... no
checking for xmlto... no
checking for docbook2pdf... no
configure: creating ./config.status
config.status: creating config.make
config.status: creating config.h

오 설치 완료

 

$ make
        CC  src/tig.o
        CC  src/types.o
        CC  src/string.o
        CC  src/util.o
        CC  src/map.o
        CC  src/argv.o
        CC  src/io.o
        CC  src/refdb.o
       GEN  src/builtin-config.c
        CC  src/builtin-config.o
        CC  src/request.o
        CC  src/line.o
        CC  src/keys.o
        CC  src/repo.o
        CC  src/options.o
        CC  src/draw.o
        CC  src/prompt.o
        CC  src/display.o
        CC  src/view.o
        CC  src/search.o
        CC  src/parse.o
        CC  src/watch.o
        CC  src/pager.o
        CC  src/log.o
        CC  src/diff.o
        CC  src/help.o
        CC  src/tree.o
        CC  src/blob.o
        CC  src/blame.o
        CC  src/refs.o
        CC  src/status.o
        CC  src/stage.o
        CC  src/main.o
        CC  src/stash.o
        CC  src/grep.o
        CC  src/ui.o
        CC  src/graph.o
        CC  src/graph-v1.o
        CC  src/graph-v2.o
        CC  compat/hashtab.o
        CC  compat/wcwidth.o
      LINK  src/tig
        CC  test/tools/test-graph.o
      LINK  test/tools/test-graph
        CC  tools/doc-gen.o
      LINK  tools/doc-gen
$ make install
   INSTALL  src/tig -> /usr/local/bin
   INSTALL  tigrc -> /usr/local/etc

make, make install 명령 입력

 

$ tig -v
tig version 2.3.3

이야 tig 설치 완료했다~

 

https://jonas.github.io/tig/

728x90
반응형