12,964
回編集
13行目: | 13行目: | ||
==== CentOS / SUSE ==== | ==== CentOS / SUSE ==== | ||
まず、CentOSでは、Zshのインストールするにはncurses-develが必要となるので、以下のコマンドを実行してインストールする。<br> | まず、CentOSでは、Zshのインストールするにはncurses-develが必要となるので、以下のコマンドを実行してインストールする。<br> | ||
# CentOS | |||
sudo yum install ncurses-devel | sudo yum install ncurses-devel | ||
# SUSE | |||
sudo zypper install ncurses-devel | |||
<br> | <br> | ||
次に、以下に示すZshの公式WebサイトまたはSouceforgeから、Zshのソースコードをダウンロードする。<br> | |||
* https://zsh.sourceforge.io | |||
* http://zsh.sourceforge.net | |||
wget https://sourceforge.net/projects/zsh/files/zsh/<バージョン名>/zsh-<バージョン名>.tar.xz/download -O zsh-<バージョン名>.tar.xz | wget https://sourceforge.net/projects/zsh/files/zsh/<バージョン名>/zsh-<バージョン名>.tar.xz/download -O zsh-<バージョン名>.tar.xz | ||
tar | tar xf zsh-<バージョン名>.tar.xz -C zsh-src | ||
cd zsh-src | cd zsh-src && mkdir build $$ cd build | ||
<br> | <br> | ||
次に、Zshをビルドおよびインストールする。<br> | |||
--enable- | ここで、<code>--enable-multibyte</code>オプションは、マルチバイトを有効にするオプションである。<br> | ||
./configure --enable-multibyte --prefix=$HOME/ | ../configure --enable-multibyte --prefix=$HOME/InstallSoftware/zsh | ||
make -j | make -j $(nproc) | ||
make install | make install | ||
<br> | |||
<u>※注意</u><br> | |||
<u>configureスクリプトの実行において、以下に示すエラーが出力される時がある。</u><br> | |||
config.status: error: cannot find input file: `config.h.in' | |||
<br> | |||
<u>この時、<code>autoheader</code>コマンドを実行して、config.h.inファイルを作成する。</u><br> | |||
autoheader | |||
<br> | <br> | ||
==== Raspberry Pi ==== | ==== Raspberry Pi ==== |