본문 바로가기

Eureka/Emacs

[Solution] Emacs 24.3 Install error

Error 발생 요인은 다음과 같다.

Emacs 홈페이지에서 "emacs-24.3.tar.gz"를 받는다.
"emacs-24.3.tar.gz"파일을 tar xvzf emacs-24.3.tar.gz로 압축을 해제하고
emacs-24.3 폴더에 들어가서 INSTALL을 하기위해 
아래와 같은 명령어를 입력한다.

$./configure 


그러나 아래와 같은 에러문장을 출력한다...

configure: error: You seem to be running X, but no X development libraries
were found.  You should install the relevant development files for X
and for the toolkit you want, such as Gtk+, Lesstif or Motif.  Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
  --without-x
to configure.



자 해결 방법 쉽다 저 위 글을 잘 읽어보면 "이미지를 처리하기 위한 개발 파일(?)을 가지고 있는지 확인달라" 말한다.
당연히 없으니 안될 것이라 판단하고 라이브러리를 설치를 해주면 된다.

$sudo apt-get install libgtk2.0-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev
$sudo apt-get install 
libtiff5-dev
왜 libtiff5-dev는 따로 설치하느냐 라고 생각하실텐데 libtiff5-dev가 libjpeg62에 의존적이기 때문에 같이 설치 하려 하시려
입력하시면 install 진행이 안됩니다.

(위 명령어를 입력해도 잘 안될 경우에 더보기 클릭)


다된 줄 아시면 오해입니다...다시 입력해봅시다.

$./configure


다시 에러를 출력하네요.

configure: error: The required function `tputs' was not found in any library.
The following libraries were tried (in order):
  libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.


이번엔 아래 라이브러리를 설치해 줍시다.

$sudo apt-get install libncurses-dev




자 마무리 요약 하겠습니다.
해결 방법을 시행 하면서 설치 해야 할 것들을 요약하면, 아래와 같습니다.

$sudo apt-get install libgtk2.0-dev libgif-dev libjpeg62-dev libpng12-dev libxpm-dev
$sudo apt-get install 
libtiff5-dev libncurses-dev



그럼 이제 다시 시도해봅시다.

$./configure

...

configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating lib-src/Makefile
config.status: creating oldXMenu/Makefile
config.status: creating doc/emacs/Makefile
config.status: creating doc/misc/Makefile
config.status: creating doc/lispintro/Makefile
config.status: creating doc/lispref/Makefile
config.status: creating src/Makefile
config.status: creating lwlib/Makefile
config.status: creating lisp/Makefile
config.status: creating leim/Makefile
config.status: creating nextstep/Makefile
config.status: creating admin/unidata/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
config.status: executing mkdirs commands
config.status: executing epaths commands
creating src/epaths.h
config.status: executing gdbinit commands



위 처럼 뜨셨으면 잘됐네요~ 그럼 아래 명령어를 순차대로 입력 해봅시다.

$make
$sudo make install