我需要一个最小的 emacs 24 安装来在虚拟盒子中分发。当我尝试安装 emacs 时...
我知道那种感觉...当我安装emacs-nox
它时可能会超过 100 MB。对于某些资源受限的设备来说,这是不可接受的,例如只有几百 MB 可用存储空间的BeagleBoard或Banana Pro。
您可以使用以下命令获取和解压最新的 emacs(为了配方完整性):
wget http://mirrors.syringanetworks.net/gnu/emacs/emacs-24.5.tar.gz
tar xzf emacs-24.5.tar.gz
cd emacs-24.5/
Run Code Online (Sandbox Code Playgroud)
以下是我用于emacs-24.5的配置。它生成了一个 25.4 MB 的二进制文件:
./configure --with-xml2 --with-zlib --without-x --without-sound --without-xpm \
--without-jpeg --without-tiff --without-gif --without-png --without-rsvg \
--without-imagemagick --without-xft --without-libotf --without-m17n-flt \
--without-xaw3d --without-toolkit-scroll-bars --without-gpm --without-dbus \
--without-gconf --without-gsettings --without-makeinfo \
--without-compress-install
Run Code Online (Sandbox Code Playgroud)
和:
$ ls -l /usr/local/bin/
total 26648
...
lrwxrwxrwx 1 root staff 4 Jan 8 2015 bin2fex -> fexc
-rwxr-xr-x 1 root staff 580105 Jan 19 23:10 ctags
-rwxr-xr-x 1 root staff 251350 Jan 19 23:10 ebrowse
lrwxrwxrwx 1 root staff 10 Jan 19 23:10 emacs -> emacs-24.5
-rwxr-xr-t 1 root staff 25453742 Jan 19 23:10 emacs-24.5
-rwxr-xr-x 1 root staff 260328 Jan 19 23:10 emacsclient
-rwxr-xr-x 1 root staff 578307 Jan 19 23:10 etags
lrwxrwxrwx 1 root staff 4 Jan 8 2015 fex2bin -> fexc
-rwxr-xr-x 1 root staff 49726 Jan 8 2015 fexc
...
Run Code Online (Sandbox Code Playgroud)
从源代码构建确实需要编译器和链接器之类的东西,但我还是通过build-essential
包安装了它们。唯一缺少的依赖项是ncurses
包 ( ncurses-dev
)。
即使删除了所有额外的 GUI 内容,您仍然会看到带有超链接的烦人屏幕。但是二进制文件的大小是它的 1/4,所以我称之为胜利。
$ ./configure ...
Where should the build process find the source code? .
What compiler should emacs be built with? gcc -std=gnu99 -g3 -O2
Should Emacs use the GNU version of malloc? yes
(Using Doug Lea's new malloc from the GNU C Library.)
Should Emacs use a relocating allocator for buffers? no
Should Emacs use mmap(2) for buffer allocation? no
What window system should Emacs use? none
What toolkit should Emacs use? none
Where do we find X Windows header files? NONE
Where do we find X Windows libraries? NONE
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? no
Does Emacs use -ljpeg? no
Does Emacs use -ltiff? no
Does Emacs use a gif library? no
Does Emacs use a png library? no
Does Emacs use -lrsvg-2? no
Does Emacs use imagemagick? no
Does Emacs support sound? no
Does Emacs use -lgpm? no
Does Emacs use -ldbus? no
Does Emacs use -lgconf? no
Does Emacs use GSettings? no
Does Emacs use a file notification library? yes -lglibc (inotify)
Does Emacs use access control lists? no
Does Emacs use -lselinux? no
Does Emacs use -lgnutls? no
Does Emacs use -lxml2? no
Does Emacs use -lfreetype? no
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? no
Does Emacs use -lxft? no
Does Emacs directly use zlib? no
Does Emacs use toolkit scroll bars? no
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3939 次 |
最近记录: |