【出處】http://h1de0ut.com/bl0g/article/2012/03/01/emacs24-ricty-centos6/
src% uname -a
Linux localhost.localdomain 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
src% cat /etc/redhat-release
CentOS release 6.2 (Final)
src% git clone git://git.savannah.gnu.org/emacs.git
src/emacs% ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.BZR for more details on building Emacs)
Checking for autoconf (need at least version 2.65)...
too old
Checking for automake (need at least version 1.11)...
ok
Building Emacs from Bzr requires the following specialized programs:
autoconf (minimum version 2.65)
automake (minimum version 1.11)
Your system seems to be missing the following tool(s):
autoconf (too old)
<snip>
抓autoconf
src% wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
src/autoconf-2.68% ./configure; make; sudo make install
src/emacs% ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.BZR for more details on building Emacs)
Checking for autoconf (need at least version 2.65)...
ok
Checking for automake (need at least version 1.11)...
ok
Your system has the required tools, running autoreconf...
configure.in:638: installing `build-aux/compile'
configure.in:382: installing `build-aux/config.guess'
configure.in:382: installing `build-aux/config.sub'
configure.in:29: installing `build-aux/install-sh'
configure.in:29: installing `build-aux/missing'
lib/Makefile.am: installing `build-aux/depcomp'
You can now run `./configure'.
src/emacs% ./configure
<snip>
checking for makeinfo... no
configure: error: You do not seem to have makeinfo >= 4.6, and your
source tree does not seem to have pre-built manuals in the `info' directory.
Either install a suitable version of makeinfo, or re-run configure
with the `--without-makeinfo' option to build without the manuals.
src/emacs% sudo yum install texinfo
<snip>
Installed:
texinfo.x86_64 0:4.13a-8.el6
src/emacs% ./configure
<snip>
configure: error: The following required libraries were not found:
libXpm libgif/libungif libtiff
Maybe some development libraries/packages are missing?
If you don't want to link with them give
--with-xpm=no --with-gif=no --with-tiff=no
as options to configure
src/emacs% sudo yum install libXpm-devel giflib-devel libtiff-devel
src/emacs% ./configure
<snip>
Configured for `x86_64-unknown-linux-gnu'.
Where should the build process find the source code? /home/foo/src/emacs
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/amdx86-64.h'
What compiler should emacs be built with? gcc -std=gnu99 -g -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? x11
What toolkit should Emacs use? GTK
Where do we find X Windows header files? Standard dirs
Where do we find X Windows libraries? Standard dirs
Does Emacs use -lXaw3d? no
Does Emacs use -lXpm? yes
Does Emacs use -ljpeg? yes
Does Emacs use -ltiff? yes
Does Emacs use a gif library? yes -lgif
Does Emacs use -lpng? yes
Does Emacs use -lrsvg-2? yes
Does Emacs use imagemagick? no
Does Emacs use -lgpm? no
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use GSettings? no
Does Emacs use -lselinux? yes
Does Emacs use -lgnutls? yes
Does Emacs use -lxml2? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? no
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes
src/emacs% sudo yum install libotf-devel
src/emacs% ./configure
<snip>
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? no
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
src/emacs% make bootstrap; sudo make install
請先 登入 以發表留言。