zsh のインストールメモ
# wget http://jaist.dl.sourceforge.net/sourceforge/zsh/zsh-4.3.11.tar.bz2 # wget http://jaist.dl.sourceforge.net/sourceforge/zsh/zsh-4.3.11-doc.tar.bz2 # tar jxf zsh-4.3.11.tar.bz2 # tar jxf zsh-4.3.11-doc.tar.bz2 # cd zsh-4.3.11 # ./configure --enable-multibyte # make # sudo make install
CentOS 5やFedora 7では、リンク時に以下のエラーが出るので、ncursesを事前にインストールしておく。
init.o: In function `init_term': init.c:(.text+0x1295): undefined reference to `tgetent' init.c:(.text+0x1357): undefined reference to `tgetstr' init.c:(.text+0x1382): undefined reference to `tgetflag' init.c:(.text+0x1393): undefined reference to `tgetflag' init.c:(.text+0x13a4): undefined reference to `tgetnum' init.c:(.text+0x13b5): undefined reference to `tgetnum' prompt.o: In function `tsetcap': prompt.c:(.text+0x4e7): undefined reference to `tputs' prompt.c:(.text+0x548): undefined reference to `tputs' prompt.c:(.text+0x5b5): undefined reference to `tputs' prompt.c:(.text+0x5e5): undefined reference to `tgetnum' prompt.c:(.text+0x62b): undefined reference to `tgetnum' collect2: ld はステータス 1 で終了しました make[1]: *** [zsh] エラー 1
# yum -y install ncurses-static
Ubuntu 8.10でも同様にエラーが出るので、ncurses-devをインストールする必要があります。
sudo apt-get install ncurses-dev
Fedora 9ではyumから4.3.4がインストールできます。
Name : zsh Relocations: (not relocatable) Version : 4.3.4 Vendor: Fedora Project Release : 7.fc9 Build Date: 2008年01月31日 23時47分15秒 Install Date: 2008年02月09日 22時02分18秒 Build Host: xenbuilder2.fedora.redhat.com Group : System Environment/Shells Source RPM: zsh-4.3.4-7.fc9.src.rpm Size : 4122854 License: BSD Signature : (none) Packager : Fedora Project URL : http://zsh.sunsite.dk/ Summary : A powerful interactive shell Description : The zsh shell is a command interpreter usable as an interactive login shell and as a shell script command processor. Zsh resembles the ksh shell (the Korn shell), but includes many enhancements. Zsh supports command line editing, built-in spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and more.