2018년 11월 23일 금요일

Emacs 설치

최신 버전의 emacs 설치를 위해 소스를 받아 빌드

소스 다운로드

https://www.gnu.org/software/emacs/


Ubuntu


GUI toolkit 없이 사용


$ sudo apt install libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgnutls-dev libncurses-dev
$ curl -OL http://ftp.jaist.ac.jp/pub/GNU/emacs/emacs-26.1.tar.gz
$ tar xvf emacs-26.1.tar.gz
$ cd emacs-26.1
$ ./configure --with-x-toolkit=no
$ make
$ sudo make install

Note)
  • Ubuntu 18.04 에서 libgnutls-dev 는 libgnutls28-dev 설치


GUI toolkit 사용시 gtk 패키지 설치 필요


$ sudo apt install libgtk2.0-dev

./configure 시 --with-x-toolkit=no 제거



바이너리 다운로드


바이너리 버전을 받으면 바로 실행 가능


Docker container 에서 빌드시 에러


참고: https://stackoverflow.com/a/37561793

**************************************************
Warning: Your system has a gap between BSS and the
heap (23758296 bytes).  This usually means that exec-shield
or something similar is in effect.  The dump may
fail because of this.  See the section about
exec-shield in etc/PROBLEMS for more information.
**************************************************

docker run 할 때 --security-opt seccomp=unconfined 옵션을 추가

예)
$ docker run --rm -it --security-opt seccomp=unconfined emacs-builder-image


Windows


빌드된 바이너리 emacs 를 받아 바로 사용 가능
emacs 다운로드 웹 페이지에서 다운로드



macosx


다운로드: https://emacsformacosx.com/

실행 바이너리 형태


댓글 없음:

댓글 쓰기