分页: 2 / 10

发表于 : 2006-07-18 0:12
Ashi
我用lz的办法 输入了
export CVS_RSH="ssh"
cvs -z3 -d:pserver:[email protected]:/cvsroot/emacs co -r emacs-unicode-2 emacs
结束后
输入
./configure --prefix=/usr --with-x-toolkit=gtk
显示
bash: ./configure: No such file or directory

然后下载ftp上的,解压时
tar jxvf emacs23.tar.bz2
下面显示
emacs/leim/quail/ZIRANMA.el
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: 错误不可恢复:现在退出
输入
./configure --prefix=/usr --with-x-toolkit=gtk
还是一样的结果
确定已经下载了gtk2的开发包 望楼主赐教

发表于 : 2006-07-18 10:32
5451vs5451
编译安装通过,运行出错。

代码: 全选

jianghua@Ivanhoe:~/emacs$ emacs-23.0.0
emacs: Cannot open termcap database file
google了一下,说是要装termcap-compat,但是目前源上没有。
emacs21运行正常。是不是编译的时候要加什么参数?

发表于 : 2006-07-18 15:14
zhan
Ashi 写了:我用lz的办法 输入了
export CVS_RSH="ssh"
cvs -z3 -d:pserver:[email protected]:/cvsroot/emacs co -r emacs-unicode-2 emacs
结束后
输入
./configure --prefix=/usr --with-x-toolkit=gtk
显示
bash: ./configure: No such file or directory

然后下载ftp上的,解压时
tar jxvf emacs23.tar.bz2
下面显示
emacs/leim/quail/ZIRANMA.el
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: 错误不可恢复:现在退出
输入
./configure --prefix=/usr --with-x-toolkit=gtk
还是一样的结果
确定已经下载了gtk2的开发包 望楼主赐教
进入到emacs目录再 ./configure 阿。要看到那个可执行文件 configure后才能./configure。我相信是写清楚了的。
还有,不是特别需求不推荐直接编译,很麻烦,呵呵,有一个deb的包,直接下载安装就是了,在帖子中有提及的。

tar 报错是因为该文件没有正常的下载,你重新下载一遍看看。

发表于 : 2006-07-18 15:23
zhan
5451vs5451 写了:编译安装通过,运行出错。

代码: 全选

jianghua@Ivanhoe:~/emacs$ emacs-23.0.0
emacs: Cannot open termcap database file
google了一下,说是要装termcap-compat,但是目前源上没有。
emacs21运行正常。是不是编译的时候要加什么参数?
兄弟莫非是在字符终端运行?我的运行没有问题。编译的相关问题都写出来了。
可以试试我的deb包,看看有没有问题。

发表于 : 2006-07-18 19:55
3bio
我也遇到同样的问题,即:Cannot open termcap database file
后来用google找到的方法解决,即:apt-get install termcap-compat

这样除了由于疏忽没有装上X外,就得到了字符界面的emacs。好酷,这也是我第一次编译成功一个软件,有点开心,呵呵

后来查了一下,发现可能是因为没装libgtk,于是sudo apt-get install libgtk2.0-dev,顺利装完后,再编译一次,还是没有X选项,如下:

What compiler should emacs be built with? gcc -g -O2 -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? 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 -lungif? no
Does Emacs use -lpng? no
Does Emacs use X toolkit scroll bars? no

到这里就卡住了,本来还想用那个deb包,但我装的是686的,而那个包是386,觉得应该不能用。所以又放弃了,哪个高手能告诉我到底可不可以用,谢谢。

现在就卡在X选项这里,都不知怎么编译了?谁能告诉我怎么装X windows的库文件和头文件啊,不胜感激。

发表于 : 2006-07-18 19:58
3bio
5451vs5451 写了:编译安装通过,运行出错。

代码: 全选

jianghua@Ivanhoe:~/emacs$ emacs-23.0.0
emacs: Cannot open termcap database file
google了一下,说是要装termcap-compat,但是目前源上没有。
emacs21运行正常。是不是编译的时候要加什么参数?
我用 http://ubuntu.cn99.com 的源,有termcap-compat哦~

发表于 : 2006-07-18 20:44
zhan
首先,386的包肯定是能用的。
其次,不懂你为什么只弄出了字符界面的。按照顶楼的做法是可以有gtk2的界面的。

发表于 : 2006-07-18 22:06
5451vs5451
装了一个libncurses,现在termcap的问题没有了,不过跟20楼的兄弟一样,没有X。我的确已经安装了libgtk2.0-dev。不过23的效果确实比21好多了,没有X也能凑活了。顺便问一下,make bootstrap和直接make有什么区别呢?前者用掉的时间多很多。

发表于 : 2006-07-18 23:21
5451vs5451
X的问题解决了,原来是没有装x11的dev包。sudo apt-get install xorg-dev了一下,现在configure能找到x window system了。

发表于 : 2006-07-18 23:34
3bio
其实遇到的问题都差不多的,呵呵

我装了386的deb包,确实能用在我的686ubuntu中,只有有一个小问题,就是不能用control+space调出我的输入法(scim),而之前在我自己编译的emacs23(只有字符界面)是能用调出我的输入法的,不能哪里也问题了,再搞搞。已非常接近成功了:)

发表于 : 2006-07-19 10:31
5451vs5451
--with-x-toolkit=gtk选项需要gtk+2.4才能使用。去掉改选项后编译通过,现在可以用X了。

发表于 : 2006-07-19 13:16
3bio
我还不能呢!搞多几下再编译发现,我make bootstrap都出错,真够背的。

make[2]: *** [bootstrap-emacs] 错误 127
make[2]: Leaving directory `/home/sango/Download/emacs/src'
make[1]: *** [bootstrap-build] 错误 2
make[1]: Leaving directory `/home/sango/Download/emacs'
make: *** [bootstrap] 错误 2


楼上的你写一下编译经验吧,呵呵

发表于 : 2006-07-19 14:53
5451vs5451
make clean
make distclean
apt-get build-dep emacs21
apt-get install xserver-xorg-dev
apt-get install xorg-dev
apt-get install libncurses5
./configure --prefix=/usr
make bootstrap
make install

发表于 : 2006-07-19 17:42
zhan
上面几位编译成功的兄弟,有空的话把需要的编译环境写出来,我把这个帖子完善。谢谢
我自己关于编译方面没有具体对于编译emacs装,可能是以前安装的。弄不清楚。
所以加上这些的话可以帮助没有编译过软件的兄弟们。

make 的问题看看 Makefile 就明白了。
其次不能激活输入法的问题在帖子开始就有说明。

发表于 : 2006-07-20 20:18
3bio
唉,还没成功呢!make bootstrap出错。

打算放弃了,用楼主的deb包安装速度很快,也很好用,唯一的缺点是打不开输入法(很奇怪,emacs -nw里却可以打开

输入法)。在emacs里已经屏蔽的control+space,但找开Emacs后,按contrl+space还是提示undefined。

下来按照一般的思路是修改locale,但是都不成功。


先凑合用着楼主编译的那个吧。。。累。。。