安装emacs全过程

来源:互联网 发布:自己的淘宝信誉查询 编辑:程序博客网 时间:2024/05/22 00:48

 The first day
what I did:

1、从 cvs 仓库取出最新源代码:

Ubuntop:~$ set CVS_RSH="ssh"
## 如果你使用的是 Bash,使用 export CVS_RSH="ssh" 命令进行设置
Ubuntop:~$ cvs -z3 -d:ext:anoncvs@cvs.sv.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs

不要告诉我你的系统没有 cvs 哦,如果真的这么不幸,自己安装一下吧:

Ubuntop:~$ sudo apt-get install cvs texinfo

上 述 cvs 操作会从远程 cvs 仓库取出 emacs 的最新版本,大约是 90M 左右,如果你的网速不太好,可能会很慢,也会让人很焦心,为了获得最新版本,慢慢等候吧。下载完成,我们进入到 emacs 目录进行编译和安装,不过需要预先安装一些相关的软件包(注意,如果你想要让 emacs 运行起来能像 GTK 图形应用,这些软件包是必须的):

Ubuntop:~$ sudo apt-get build-dep emacs21
Ubuntop:~$ sudo apt-get install xserver-xorg-dev
Ubuntop:~$ sudo apt-get install xorg-dev
Ubuntop:~$ sudo apt-get install libncurses5
Ubuntop:~$ sudo apt-get install libncurses5-dev

好了,我们终于要进入关键部分了:

Ubuntop:~/emacs$ ./configure --prefix=/usr --enable-font-backend --with-xft --with-freetype (where I can't reach and stopped)
Ubuntop:~/emacs$ make bootstrap
Ubuntop:~/emacs$ sudo make install

安装完成,输入 emacs 运行一个试试,看看是否有新的感觉。

I did as what it say,but when I input "./configure --prefix=/usr --enable-font-backend --with-xft --with-freetype",it warned:can't find this dictate.It mean I can't finish this install. I think of it for long, but can't solve this problem.Then I give up.

 

The second day
I think I can reach it ,so I go on.At last, it was finished easily...

tangshuang@tangshuang-desktop:~$ sudo apt-get install emacs
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会安装下列额外的软件包:
  emacs22-bin-common emacs22-common emacs22-gtk emacsen-common
建议安装的软件包:
  emacs22-el
下列【新】软件包将被安装:
  emacs emacs22-bin-common emacs22-common emacs22-gtk emacsen-common
共升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 21.0MB 的软件包。
解压缩后会消耗掉 65.7MB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://cn.archive.ubuntu.com jaunty/main emacsen-common 1.4.17 [17.6kB]
获取:2 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:3 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:4 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:5 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:6 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:7 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]
获取:8 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]              
获取:9 http://cn.archive.ubuntu.com jaunty/main emacs22-common 22.2-0ubuntu2 [18.8MB]              
获取:10 http://cn.archive.ubuntu.com jaunty/main emacs22-bin-common 22.2-0ubuntu2 [168kB]          
获取:11 http://cn.archive.ubuntu.com jaunty/universe emacs22-gtk 22.2-0ubuntu2 [1980kB]            
获取:12 http://cn.archive.ubuntu.com jaunty/universe emacs22-gtk 22.2-0ubuntu2 [1980kB]            
获取:13 http://cn.archive.ubuntu.com jaunty/main emacs 22.2-0ubuntu2 [6362B]                       
下载 1893kB,耗时 1h 27min 3s (363B/s)                                                              
选中了曾被取消选择的软件包 emacsen-common。
(正在读取数据库 ... 系统当前总共安装有 112015 个文件和目录。)
正在解压缩 emacsen-common (从 .../emacsen-common_1.4.17_all.deb) ...
选中了曾被取消选择的软件包 emacs22-common。
正在解压缩 emacs22-common (从 .../emacs22-common_22.2-0ubuntu2_all.deb) ...
选中了曾被取消选择的软件包 emacs22-bin-common。
正在解压缩 emacs22-bin-common (从 .../emacs22-bin-common_22.2-0ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 emacs22-gtk。
正在解压缩 emacs22-gtk (从 .../emacs22-gtk_22.2-0ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 emacs。
正在解压缩 emacs (从 .../emacs_22.2-0ubuntu2_all.deb) ...
正在处理用于 man-db 的触发器...
正在设置 emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs

正在设置 emacs22-common (22.2-0ubuntu2) ...

正在设置 emacs22-bin-common (22.2-0ubuntu2) ...

正在设置 emacs22-gtk (22.2-0ubuntu2) ...
Byte-compiling add-on packages, please wait... done.

正在设置 emacs (22.2-0ubuntu2) ...
tangshuang@tangshuang-desktop:~$ emacs

Then the emacs window comed out.Finishing a test,I save the test and open a new shell.

input: gcc hello.c(the name of the test file)
then input: ./.a.out

原创粉丝点击