1. Packages to be installed before build Emacs
sudo aptitude install build-essential libxpm-dev libungif4-dev libtiff4-dev libjpeg-dev libgtk2.0-dev xaw3dg-dev libdbus-glib-1-dev libgpmg1-dev libgnome-dev libotf-dev
2. Configure and make Emacs
tar axf emacs-23.3.tar.bz2
mkdir bld
cd bld
../emacs-23.3/configure --without-pop --with-x-toolkit
make
3. The result (click to see the rendering of TrueType font)
4. If only console mode Emacs is needed, configure and make Emacs as
tar axf emacs-23.3.tar.bz2
mkdir bld
cd bld
../emacs-23.3/configure --without-x
make
Wednesday, September 07, 2011
Monday, September 05, 2011
Thursday, September 01, 2011
自己編的 library 無法被系統使用
在使用 Ubuntu 時,有些自己編的 library DSO 沒有辦法被系統自動引用,解法是先把要加入 library search path 的路徑加入 /etc/ld.so.conf,再使用 ldconfig 來重建 DSO 的搜尋 cache。
$ tmux
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
$ cat /etc/ld.so.conf
/usr/local/lib
$ sudo ldconfig -v
$ tmux
....
Speedup KVM disk access
http://arstechnica.com/civis/viewtopic.php?f=16&t=1143694
virsh -c qemu:///system edit devubuntu
change from
<driver name='qemu' type='raw'/>
to <driver name='qemu' type='raw' cache='none'/>
Subscribe to:
Posts (Atom)