LoginSignup
33
33

More than 5 years have passed since last update.

root権限のないLinuxサーバーの/home下にzsh5.0.2とvim7.4をローカルインストールする

Posted at

よくインストールする割にメモを無くしてしまうので健忘録

zsh5.0.2のインストール

$ cd ~
$ mkdir -p ~/local/source
$ cd ~/local/source
$ wget "http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
$ tar xzvf ncurses-5.9.tar.gz
$ cd ncurses-5.9
$ ./configure --prefix=$HOME/local
$ make
$ make install
$ cd ..
$ wget "http://sourceforge.net/projects/zsh/files/zsh/5.0.2/zsh-5.0.2.tar.gz/download"
$ tar xzvf zsh-5.0.2.tar.gz
$ cd zsh-5.0.2
$ ./configure --prefix=$HOME/local --enable-cflags="-I$HOME/local/include" --enable-cppflags="-I$HOME/local/include" --enable-ldflags="-L$HOME/local/lib"  --enable-multibyte --enable-locale
$ make
$ make install

最後に、alias zsh="$HOME/local/bin/zsh" を.bashrcに追記。これでzshを実行するとzshに切り替わる。

vim7.4のインストール

$ cd ~
$ mkdir -p ~/local/source
$ cd ~/local/source
$ wget "ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2"
$ bzip2 -dc vim-7.4.tar.bz2 | tar xvf -
$ cd vim74/
$ ./configure --enable-multibyte --enable-xim --enable-fontset --with-features=big --prefix=$HOME/local
$ make
$ make install

最後に、alias vim="$HOME/local/bin/vim" を.zshrcと.bashrcに追記。これでvimがローカルのものに切り替わる。

各種dotfilesは、以下のものをcloneしてsetupしたりして使う。
https://github.com/sifue/dotfiles

.zshrcは以下のものをコピーして使うと便利。
https://raw.github.com/sifue/dotfiles/master/.zshrc.linux
他のdotfileは好き嫌いが結構あるので、参考程度に。

33
33
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
33