The ZSH package contains a command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, ZSH most closely resembles KSH but includes many enhancements.
This version of ZSH is a development release. The BLFS staff has determined that it provides a stable program which works properly with multibyte locales (e.g., UTF-8). To find the current stable release, refer to the ZSH home page and compile ZSH with the same instructions.
Download (HTTP): http://downloads.sourceforge.net/zsh/zsh-4.3.10.tar.bz2
Download MD5 sum: 74c5b275544400082a1cde806c98682a
Download size: 2.7 MB
Estimated disk space required: 49 MB (includes installing all documentation)
Estimated build time: 0.8 SBU
Optional Documentation: http://downloads.sourceforge.net/zsh/zsh-4.3.10-doc.tar.bz2
MD5 sum: b3a026cf02471b66454a2b241a4d92a4
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/zsh
If you downloaded the optional documentation, unpack it with the following command:
tar --strip-components=1 -xvf ../zsh-4.3.10-doc.tar.bz2
Install ZSH by running the following commands:
./configure --prefix=/usr \ --bindir=/bin \ --sysconfdir=/etc/zsh \ --enable-etcdir=/etc/zsh && make && makeinfo Doc/zsh.texi --html -o Doc/html && makeinfo Doc/zsh.texi --html --no-split --no-headers \ -o Doc/zsh.html && makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt
If you have TeX Live-20110705 installed, you can build PDF format of the documentation by issuing the following command:
texi2pdf Doc/zsh.texi -o Doc/zsh.pdf
To test the results, issue: make check.
Now, as the root
user:
make install && make infodir=/usr/share/info install.info install -v -m755 -d /usr/share/doc/zsh-4.3.10/html && install -v -m644 Doc/html/* \ /usr/share/doc/zsh-4.3.10/html && install -v -m644 Doc/zsh.{html,txt} \ /usr/share/doc/zsh-4.3.10
If you downloaded the optional documentation, install it by issuing
the following commands as the root
user:
make htmldir=/usr/share/doc/zsh-4.3.10/html install.html && install -v -m644 Doc/zsh.dvi /usr/share/doc/zsh-4.3.10
If you built the PDF format of the documentation, install it by
issuing the following command as the root
user:
install -v -m644 Doc/zsh.pdf \ /usr/share/doc/zsh-4.3.10
--sysconfdir=/etc/zsh
and
--enable-etcdir=/etc/zsh
:
These parameters are used so that all the ZSH configuration files are consolidated into
the /etc/zsh
directory. Omit these
parameters if you wish to retain historical compatibility by having
all the files located in the /etc
directory.
--bindir=/bin
: This
parameter places the zsh binaries into the root
filesystem.
--enable-cap
: This
parameter enables POSIX capabilities.
--disable-gdbm
: This
parameter disables the use of the GDBM library.
--enable-pcre
: This
parameter allows to use the PCRE
regular expression library in shell builtins.
Linking ZSH dynamically against
PCRE and/or GDBM produces runtime dependencies on
libpcre.so
and/or libgdbm.so
respectively, which both reside in
/usr
hierarchy. If /usr
is a separate mount point and ZSH needs to be available in boot time, then
its supporting libraries should be in /lib
too. You can move the libraries as
follows:
mv -v /usr/lib/libpcre.so.* /lib && ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so mv -v /usr/lib/libgdbm.so.* /lib && ln -v -sf ../../lib/libgdbm.so.3 /usr/lib/libgdbm.so
Alternatively you can statically link ZSH against PCRE and GDBM if you modify the config.modules
file (you need first to run
configure to generate it).
There are a whole host of configuration files for ZSH including /etc/zsh/zshenv
, /etc/zsh/zprofile
, /etc/zsh/zshrc
, /etc/zsh/zlogin
and /etc/zsh/zlogout
. You can find more information
on these in the zsh(1)
and related
manual pages.
Update /etc/shells
to include the
ZSH shell program names (as the
root
user):
cat >> /etc/shells << "EOF"
/bin/zsh
/bin/zsh-4.3.10
EOF
Last updated on 2011-12-05 22:58:00 +0000