vimはcentosでvim 7をアップグレードする.3 gvimをインストールする

3854 ワード

1.新しいバージョンのvimをダウンロード
クエリー:ncurses-devel、このソフトウェアがない場合は、インストールする必要があります:yum-y install ncurses-devel
[root@localhost vim74]# rpm -qa ncurses-devel ncurses-devel-5.7-4.20090207.el6.i686
それ以外の場合は、手順3に従います.
no terminal library found checking for tgetent()... configure: error: NOT FOUND!
インストールの手順5
yum install libXt-devel gtk2-devel
cd /usr/local/src/
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2

2.vim-7.3を解凍する.tar.bz2
tar jxvf vim-7.3.tar.bz2 

3.
解凍後のvim 73ディレクトリに入り、構成とインストールを行います.
cd vim73
./configure --enable-gui=auto --enable-cscope --enable-multibyte --enable-xim --enable-fontset --with-features=huge --with-x --prefix=/usr/local/vim73 --enable-pythoninterp=yes
make
make install

4.構成とインストールプロセスは間違っていませんが、インストールが完了するとvimのみ、gvimはありません.
vim--versionを使用するかvimウィンドウで「version」と入力し、表示
/usr/local/vim73/bin/vim --version
--OR--
/usr/local/vim73/bin/vim
:version
-X11
5.戻ってconfigureの出力を発見します.
checking if X11 header files can be found... no checking --enable-gui argument... no GUI support checking X11/SM/SMlib.h usability... no checking X11/SM/SMlib.h presence... no checking for X11/SM/SMlib.h... no no GUI selected; xim has been disabled no GUI selected; fontset has been disabled
6.引き続きインターネットを利用して资料を探して、libXt-devとgtk 2-develの包みがインストールしていないことを発见して、yumを使ってインストールします
yum install libXt-devel gtk2-devel

7.
先ほどのインストールを削除し、コンパイルされた中間ファイルを空にします.
cd vim73
make uninstall
make clean
rm -f src/auto/config.cache

8.コマンドを再実行してコンパイルとインストールを行う
cd vim73
./configure --enable-gui=auto --enable-cscope --enable-multibyte --enable-xim --enable-fontset --with-features=huge --with-x --prefix=/usr/local/vim73
make
make install

9.今回のconfigureの出力:
checking if X11 header files can be found... yes
checking for _XdmcpAuthDoIt in -lXdmcp... yes
checking for IceOpenConnection in -lICE... yes
checking for XpmCreatePixmapFromData in -lXpm... yes
checking if X11 header files implicitly declare return values... no
checking size of wchar_t is 2 bytes... no
checking --enable-gui argument... yes/auto - automatic GUI support
checking whether or not to look for GTK+ 2... yes
checking whether or not to look for GNOME... no
checking whether or not to look for Motif... yes
checking whether or not to look for Athena... yes
checking whether or not to look for neXtaw... yes
checking whether or not to look for Carbon... yes
10.vimコマンドを識別するために、次のコマンドをリンクします.mv/usr/bin/vim/usr/bin/vim_をバックアップできます.bak
ln -s /usr/local/vim73/bin/vim /usr/bin/vim
ln -s /usr/local/vim73/bin/gvim /usr/bin/gvim

VIMを記録してノートをインストールします.
./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-i386-linux-gnu/ --enable-perlinterp --enable-gui=gtk2 --enable-cscope --enable-luainterp --enable-perlinterp --enable-multibyte --prefix=/usr

前回のコンパイルで生成されたすべてのファイルをクリーンアップするには、make distcleanを入力できるように再構成する必要があります.
パラメータの説明は次のとおりです.
--with-features=huge:最大の機能をサポートする--enable-rubyinterp:Vimによるruby作成のプラグインのサポートを有効にする--enable-pythoninterp:Vimによるpython作成のプラグインのサポートを有効にする--enable-luainterp:Vimによるlua作成のプラグインのサポートを有効にする--enable-perlinterp:Vimによるperl作成のプラグインのサポートを開始する--enable-multibyte:マルチバイトサポートVimでのサポート中国語--enable-cscope:Vimはcscopeに対して--enable-gui=gtk 2:gtk 2サポートをサポートし、gnomeを使用してgvim--with-python-config-dir=/usr/lib/python 2を生成することもできます.7/config-i 386-linux-gnu/指定pythonパス--prefix=/usr:コンパイルインストールパスsudo make VIMRUNTIMEDIR=/usr/share/vim/vim 74
sudo make install