源码存放目录:
mkdir mysrc
cd mysrc
下载:
cvs -z3 -d:pserver:anonymous@cvs.savannah.gun.org:/source/emacs co emacs
编译:
1.---------------------------------------------------
./configure /
--with-x-toolkit=gtk /
--with-xft
2.---------------------------------------------------
查看./configure给出的检查信息,(注意:不要照搬别人的编译文章,毕竟有些是不一样的。安静,安静。在安静。。。。。。。。。。。。。。)
是否没有编译所依赖的开发包.
如下:
Configured for `i686-pc-linux-gnu'.
Where should the build process find the source code? /home/binglinlee/emacs
What operating system and machine description files should Emacs use?
`s/gnu-linux.h' and `m/intel386.h'
What compiler should emacs be built with? gcc -g -O2 -Wdeclaration-after-statement -Wno-pointer-sign
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? yes
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 //可以用gtk代替.自己选。( 1.) --with-x-toolkit=gtk等等GUI
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 -lgpm? yes
Does Emacs use -ldbus? yes
Does Emacs use -lgconf? yes
Does Emacs use -lfreetype? yes
Does Emacs use -lm17n-flt? yes
Does Emacs use -lotf? yes
Does Emacs use -lxft? yes
Does Emacs use toolkit scroll bars? yes
如果出现no,就要查找。。。。。。。。。。。。。。。。包子了!(当然要自己查 )
3. --------------------------------------------------
make bootstrap
4.---------------------------------------------------
mkdir /usr/local/emacs23
安装:
1.----------------------------------------------------
sudo make install prefix=/usr/local/emacs23
2.-----------------------------------------------------
用ln命令:
ln -s /usr/local/emacs23/bin/执行文件名 /usr/bin (软连接到/usr/bin下,就不用配置路径了. )
接着把其它的exe文件以同样的方式操作..............................
........
..............
.................