解决emacs-cvs找不到libncurses.so.5的问题

折腾Arch Linux是一件很有意思的事情,我们可以这样想象一下,夜深人静,连鬼都睡了,你一个人窝在床上或者扶在书桌前,电脑的屏幕照亮你苍白苍白的脸,然后手指在键盘上发出一些窸窸唆唆的声音,问题一个接着一个地来到你的眼前,你并不惊慌,呼吸平静,心跳维持在正常的频率下,你的手指在键盘上留下的痕迹类似符号或者密码,旋即问题被你解决,但随之而来的是更多的问题,你依然保持良好的心态与状态,你就如同一个驯兽师,一切的乐趣就蕴含在这反复和思考的过程中。

(我又开始illusion了)我目前的Arch是由SLiM+openbox+rox-filer+urxvt+pypanel构建的,pacman emacs-cvs后运行emacs会出现

libncurses.so.5 cannot open shared object file

之类的错误,pacman ncurses不能解决问题,网上也没有直接的答案,但是给出的提示表明libncurses.so.5这个动态链接库找不到,可以使用

$ldd /usr/bin/emacs

发现libncurses.so.5这个是not found,slocate一下libncurses.so可以在/usr/lib目录下发现类似名字的libncurses.so和libncursesw.so,首先

#ln -s /usr/lib/libncurses.so /usr/lib/libncurses.so.5

再运行emacs会提示这个文件太短了(file too short -,-b),rm这个符号链接后换用后一个

#ln -s /usr/lib/libncursesw.so /usr/lib/libncurses.so.5

这次久违的emacs终于出现了

My Arch Linux Desktop

明天打算折腾awesome+dmenu这样的tiling wm

今天更新了ncurses后,似乎会自动建立这样的symbol link,也就是说可能这是个被修复bug

Tags: ,

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Powered by WP Hashcash

10501 pages viewed, 33 today
5108 visits, 12 today
FireStats icon Powered by FireStats