Apa itu Emacs
Emacs adalah teks editor yang dibangun oleh Richard Stallman untuk proyek GNU. Emacs mulai dibangun dari pertengahan 70-an dan masih aktif dikembangkan sampai saat ini.
Kenapa Compile?
Emacs yang ada dari package manager CentOS memiliki paket Emacs dengan versi 24.3. Versi minimal yang saya butuhkan adalah versi 24.4.
Instalasi Kebutuhan
- Install
dnfsebagai penggantiyum.
yum install dnf- Install grup aplikasi untuk development + ncurses.
dnf -y group install 'Development Tools'
dnf -y install ncurses-develDownload Emacs
- Buat folder untuk menampung source code.
mkdir -p "$HOME/src"
cd "$HOME/src"- Unduh source code dan ekstrak file.
curl http://ftp.gnu.org/gnu/emacs/emacs-25.2.tar.xz | tar xJKonfigurasi Emacs tanpa X
- Buat folder untuk build :
mkdir -p "$HOME/src/emacs-25.2_build"
cd "$HOME/src/emacs-25.2_build"- Konfigurasi :
../emacs-25.2/configure \
--with-x=no \
--without-dbus \
--without-gconf \
--without-gsettings \
--without-pop \
--without-xpm \
--without-jpeg \
--without-tiff \
--without-gif \
--without-png \
--without-rsvg \
--without-imagemagick \
--without-sound \
--without-xim \
--without-all- Mulai proses build :
make -j4 -swUji coba
Hasil kompilasi dapat dilihat dalam folder src dan dapat langsung dijalankan dengan ./emacs. Untuk menginstall jalankan perintah make install.