「インストール - Zsh」の版間の差分

ナビゲーションに移動 検索に移動
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>
次に、[http://zsh.sourceforge.net Zshの公式Webサイト]またはGitリポジトリから、Zshのソースコードをダウンロードする。<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 xvf zsh-<バージョン名>.tar.xz -C zsh-src
  tar xf zsh-<バージョン名>.tar.xz -C zsh-src
  cd zsh-src
  cd zsh-src && mkdir build $$ cd build
または
git clone --depth 1 git://git.code.sf.net/p/zsh/code zsh-src
cd zsh-src
<br>
<br>
続いて、Zshをインストールする。(ここでは、ホームディレクトリにインストールしている)<br>
次に、Zshをビルドおよびインストールする。<br>
--enable-multibyteオプションは、マルチバイトを有効にするオプションである。<br>
ここで、<code>--enable-multibyte</code>オプションは、マルチバイトを有効にするオプションである。<br>
  ./configure --enable-multibyte --prefix=$HOME/zsh/zsh-<バージョン名>
  ../configure --enable-multibyte --prefix=$HOME/InstallSoftware/zsh
  make -j 8
  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 ====

案内メニュー